Skip to main content
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
Message · object[]
required
model
string
required
max_completion_tokens
integer | null
max_tokens
integer | null
stream
boolean
default:false
response_format
Response Format · object | null

Response

Successful Response

choices
Choice · object[]
required
usage
Usage · object
required
id
string
created
integer
model
default:fortytwo-prime
Available options:
fortytwo-prime
object
string
default:chat.completion
Allowed value: "chat.completion"