OpenAI Compatibility
Create chat completion
POST
/
v1
/
openai
/
chat
/
completions
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
id
string
model
string
default: vlm-1messages
object[]
requiredmax_tokens
integer
default: 250n
integer | null
default: 1temperature
number
default: 0.7top_p
number
default: 1top_k
integer | null
logprobs
integer | null
stream
boolean
default: falseresponse_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
id
string
object
enum<string>
default: chat.completionAvailable options:
chat.completion
, chat.completion.chunk
created
integer
model
string
requiredchoices
any[]
requiredusage
object | null
system_fingerprint
string | null
default: 2024-08-01