Skip to main content
POST
Create a completion

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
assistant_id
string

The ID of the assistant to use to execute this run.

thread_id
string

The ID of the thread to use to execute this run.

messages
object[]

A list of messages to include in the completion request.

max_tokens
integer

The maximum number of tokens to generate in the completion.

Response

200 - application/json

Successful response

completion
object

A completion object.