Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Developer-provided instructions that the model should follow, regardless of
messages sent by the user. With o1 models and newer, developer messages
replace the previous system messages.
Parameters for audio output.
Required when audio output is requested with
modalities: ["audio"]. Learn more.
none, auto text, audio Static predicted output content, such as the content of a text file that is being regenerated.
in-memory, 24h none, minimal, low, medium, high, xhigh Default response format. Used to generate text responses.
auto, default, flex, scale, priority Options for streaming response. Only set this when you set stream: true.
none, auto, required A function tool that can be used to generate a response.
low, medium, high This tool searches the web for relevant results to use in a response. Learn more about the web search tool.
Successful Response
Represents a chat completion response returned by model, based on the provided input.
"chat.completion"auto, default, flex, scale, priority Usage statistics for the completion request.