POST
/
chat
/
completions

Authorizations

Authorization
string
headerrequired

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

Body

application/json
model
string
required
messages
object[]
required
function_call
Available options:
none
functions
object[]
tool_choice
Available options:
none
tools
object[]
n
number
max_tokens
number | null
max_completion_tokens
number | null
temperature
number
top_p
number | null
presence_penalty
number | null
frequency_penalty
number | null
stop
response_format
object
logprobs
boolean
top_logprobs
number | null
stream_options
object
store
boolean
metadata
object | null
stream
boolean
default: false

Response

200 - application/json
id
string
required
object
enum<string>
required
Available options:
chat.completion
created
number
required
model
string
required
choices
object[]
required
usage
object