Create Chat Completions
Returns a chat.completion
object with the generated response.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The id of the model to use for the generation
The list of messages to generate a response for. The last message is the prompt.
The maximum number of tokens to generate
The temperature of the sampling distribution
The cumulative probability of the top tokens to keep in the nucleus of the distribution
The list of tools to use for the generation
Defaults to auto
for automatic tool choice
Whether to use the internet for the generation > Model limitations apply, defaults to true
for bing models.
Whether to include citations in the generation > For use in owned_by: bing/openai
models only, defaults to true
.
The tone of the generation > For use in owned_by: bing/openai
models only, defaults to precise
.
Whether to return the raw response > For use in owned_by: bing/openai
models only! Returns Bing AI Suggestions and Search Results, defaults to false
.
The url of the image to use for the generation > Model limitations apply