stream=false is set in the request.
Request Headers
The API key to use for the request.
The content type of the request. Should be
application/json.Request Body
An array of messages of the conversation so far.
The model to use for the UI completion. Should be one of the models listed in the Models page.
The temperature to use for the UI completion. Should be between 0 and 1.
The top-p value to use for the UI completion. Should be between 0 and 1.
The maximum number of tokens to use for the UI completion.
The number of completions to generate.
Should be unset or set to 1.
Whether to stream the response. Should be unset or
false.The parameters above are commonly used with the Messages API. For a
comprehensive list of all supported parameters and their compatibility across
different model providers (OpenAI vs Anthropic), see the Supported API
Parameters table.
Response
A unique identifier for the UI completion
An array of completions. Will always contain exactly one object.
The timestamp when the UI completion was created
The model used to generate the UI completion
The object type, which is always
chat.completionAn object containing the usage statistics for the UI completion