POST
/
v1
/
openai
/
chat
/
completions

Authorizations

Authorization
string
headerrequired

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

Body

application/json
messages
object[]
required
id
string
model
string
default: vlm-1
max_tokens
integer
default: 1024
n
integer | null
default: 1
temperature
number
default: 0.7
top_p
number
default: 1
top_k
integer | null
logprobs
integer | null
stream
boolean
default: false
response_format
object | null

Format of the response

domain
string | null

Domain of the request

schema
object | null

Schema of the request

metadata
object

Metadata of the request

Response

201 - application/json

https://platform.openai.com/docs/api-reference/chat/object

model
string
required
choices
any[]
required
id
string
object
enum<string>
default: chat.completion
Available options:
chat.completion,
chat.completion.chunk
created
integer
usage
object | null
system_fingerprint
string | null
default: 2024-08-01