Endpoint Examples
/v1/chat/completions
Creates a completion for the chat message
POST
Body
application/json
A list of messages comprising the conversation so far.
ID of the model to use.
What sampling temperature to use, between 0 and 2.
Required range:
0 <= x <= 2
An alternative to sampling with temperature, called nucleus sampling
Required range:
0 <= x <= 1
If set, partial message deltas will be sent.
Response
200 - application/json
OK
Represents a chat completion response returned by model, based on the provided input.
The object type, which is always "chat.completion"
Available options:
chat.completion
A list of chat completion choices.
A unique identifier for the chat completion.
The Unix timestamp (in seconds) of when the chat completion was created.
The model used for the chat completion.