POST
/
chat
/
completion

Authorizations

Authorization
string
headerrequired

API Key

Body

application/json
messages
object[]
required
model
any
required
frequency_penalty
number | null
default: 0
max_tokens
integer | null
n
integer | null
default: 1
temperature
number | null
default: 1
top_p
number | null
default: 1
tools
object[] | null
tool_choice
Available options:
none,
auto
stream
boolean | null
default: false
moderate_before
boolean

Response

200 - application/json
id
string
required
choices
object[]
required
created
integer
required
model
string
required
object
any
required
system_fingerprint
string | null
usage
object | null