Chat API
post
Authorizations
Body
modelstringOptional
ID of the model to use.
temperaturenumber · max: 2 · nullableOptionalDefault:
What sampling temperature to use, between 0 and 2.
1Example: 0max_tokensinteger · min: 1 · nullableOptionalDefault:
The maximum number of tokens to generate in the chat completion.
1Example: 0streamboolean · nullableOptionalDefault:
If set, partial message deltas will be sent.
falseExample: falseResponses
200
OK
application/json
idstringRequiredExample:
A unique identifier for the chat completion.
chatcmpl-prLvANKtOJErUM8VivHyUvhJYm2jHobjectstring · enumRequiredExample:
The object type, which is always 'chat.completion'.
chat.completionPossible values: createdintegerRequiredExample:
The Unix timestamp (in seconds) of when the chat completion was created.
1745995327modelstringOptional
The model used for the chat completion.
post
/v1/chat/completions200
OK
Last updated
Was this helpful?