Create chat completion
Creates a model response for the given chat conversation
Authorizations
Bearer token authentication. Get your API key from the dashboard.
Body
ID of the model to use
A list of messages comprising the conversation so far
1The maximum number of tokens to generate in the chat completion
x >= 1300
If set, partial message deltas will be sent as data-only server-sent events
A list of tools the model may call
Controls which (if any) tool is called by the model
none, auto Whether to return log probabilities of the output tokens
An integer between 0 and 20 specifying the number of most likely tokens to return at each token position
0 <= x <= 20Output types the model should generate for this request
text, audio Parameters for audio output. Required when modalities includes audio
Response
Successful response
A unique identifier for the chat completion
chat.completion The Unix timestamp (in seconds) of when the chat completion was created
The model used for the chat completion
This fingerprint represents the backend configuration that the model runs with