Chat completions
Create Chat Completion
Send a chat completion request to a selected model
POST
Authorizations
Authentication using a bearer token
Body
application/json
Chat completion request parameters
The model ID to use
A list of messages comprising the conversation so far
Whether to stream the response
A list of tools the model may use
Controls which tool is used by the model
What sampling temperature to use
Required range:
0 <= x <= 2
The maximum number of tokens to generate
Required range:
x >= 1