POST
/
chat
/
completions

Authorizations

Authorization
string
header
required

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

Body

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

Response

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