Create Chat Completion
Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
Corresponds to args to OpenAI client.chat.completions.create(...)
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.
- ChatCompletionDeveloperMessageParam
- ChatCompletionSystemMessageParam
- ChatCompletionUserMessageParam
- ChatCompletionAssistantMessageParam
- ChatCompletionToolMessageParam
- ChatCompletionFunctionMessageParam
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.
none, minimal, low, medium, high, xhigh Default response format. Used to generate text responses.
- ResponseFormatText
- ResponseFormatJSONSchema
- ResponseFormatJSONObject
auto, default, flex, scale, priority Options for streaming response. Only set this when you set stream: true.
none, auto, required This tool searches the web for relevant results to use in a response. Learn more about the web search tool.
Response
Successful Response