{
"error": {
"code": "not_found",
"http_status": 404,
"message": "The requested model was not found.",
"request_id": "req_3f9a1c2b7d4e5f60718293a4",
"type": "invalid_request_error"
}
}
Creates a model response for the given chat conversation. Learn more in the
text generation, vision,
and audio guides.
Parameter support can differ depending on the model used to generate the
response, particularly for newer reasoning models. Parameters that are only
supported for reasoning models are noted below. For the current state of
unsupported parameters in reasoning models,
refer to the reasoning guide.
Returns a chat completion object, or a streamed sequence of chat completion
chunk objects if the request is streamed.
POST
/
v1
/
chat
/
completions
curl --request POST \ --url https://api.dreamto.ai/v1/chat/completions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt-6.2-sol", "messages": [ { "role": "system", "content": "You are a concise, professional assistant." }, { "role": "user", "content": "Explain quantum computing in three sentences." } ]}'
{
"error": {
"code": "not_found",
"http_status": 404,
"message": "The requested model was not found.",
"request_id": "req_3f9a1c2b7d4e5f60718293a4",
"type": "invalid_request_error"
}
}
Send your DreamTo API Key in the Authorization header: Authorization: Bearer <API Key>.
Body
application/json
messages
(Developer message · object | System message · object | User message · object | Assistant message · object | Tool message · object | Function message · object)[]
required
A list of messages comprising the conversation so far. Depending on the
model you use, different message types (modalities) are
supported, like text,
images, and audio.
Minimum array length: 1
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.
Developer message
System message
User message
Assistant message
Tool message
Function message
Show child attributes
model
string
required
ID of the model to use, for example gpt-6.2-sol. See Models for the available models.
Example:
"gpt-6.2-sol"
metadata
object | null
Set of 16 key-value pairs that can be attached to an object. This can be
useful for storing additional information about the object in a structured
format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings
with a maximum length of 512 characters.
Show child attributes
top_logprobs
integer
An integer between 0 and 20 specifying the maximum number of most likely
tokens to return at each token position, each with an associated log
probability. In some cases, the number of returned tokens may be fewer than
requested.
logprobs must be set to true if this parameter is used.
Required range: 0 <= x <= 20
temperature
number | null
default:1
What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
We generally recommend altering this or top_p but not both.
Required range: 0 <= x <= 2
Example:
1
top_p
number | null
default:1
An alternative to sampling with temperature, called nucleus sampling,
where the model considers the results of the tokens with top_p probability
mass. So 0.1 means only the tokens comprising the top 10% probability mass
are considered.
We generally recommend altering this or temperature but not both.
Required range: 0 <= x <= 1
Example:
1
user
string | null
deprecated
This field is being replaced by safety_identifier and prompt_cache_key. Use prompt_cache_key instead to maintain caching optimizations.
A stable identifier for your end-users.
Used to boost cache hit rates by better bucketing similar requests and to help OpenAI detect and prevent abuse. Learn more.
Example:
"user-1234"
safety_identifier
string | null
A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.
The IDs should be a string that uniquely identifies each user, with a maximum length of 128 characters. We recommend hashing their username or email address, in order to avoid sending us any identifying information. Learn more.
Maximum string length: 128
Example:
"safety-identifier-1234"
prompt_cache_key
string | null
Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the user field. Learn more.
Example:
"prompt-cache-key-1234"
prompt_cache_retention
enum<string> | null
deprecated
Deprecated. Use prompt_cache_options.ttl instead.
The retention policy for the prompt cache. Set to 24h to enable extended prompt caching, which keeps cached prefixes active for longer, up to a maximum of 24 hours. Learn more.
This field expresses a maximum retention policy, while
prompt_cache_options.ttl expresses a minimum cache lifetime. The two
fields are independent and do not interact.
For gpt-5.5, gpt-5.5-pro, and future models, only 24h is supported.
For older models that support both in_memory and 24h, the default depends on your organization's data retention policy:
Organizations without ZDR enabled default to 24h.
Organizations with ZDR enabled default to in_memory when prompt_cache_retention is not specified.
Available options:
in_memory,
24h
prompt_cache_options
Prompt cache options · object
Options for prompt caching. Supported for gpt-5.6 and later models. By default, OpenAI automatically chooses one implicit cache breakpoint. You can add explicit breakpoints to content blocks with prompt_cache_breakpoint. Each request can write up to four breakpoints. For cache matching, OpenAI considers up to the latest 80 breakpoints in the conversation, without a content-block lookback limit. Set mode to explicit to disable the implicit breakpoint. The ttl defaults to 30m. Supported lifetimes depend on the API. See the prompt caching guide for current details.
Show child attributes
service_tier
enum<string> | null
default:auto
Specifies the processing type used for serving the request.
If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.
If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.
If set to 'flex', then the request will be processed with the Flex Processing service tier.
To opt-in to Fast mode at the request level, include the service_tier=fast or service_tier=priority parameter for Responses or Chat Completions. The response will show service_tier=priority regardless of if you specify service_tier=fast or priority in your request.
When not set, the default behavior is 'auto'.
When the service_tier parameter is set, the response body will include the service_tier value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.
Available options:
auto,
default,
flex,
scale,
priority,
fast
modalities
enum<string>[] | null
Output types that you would like the model to generate.
Most models are capable of generating text, which is the default:
["text"]
The gpt-4o-audio-preview model can also be used to
generate audio. To request that this model generate
both text and audio responses, you can use:
["text", "audio"]
Available options:
text,
audio
verbosity
enum<string> | null
default:medium
Constrains the verbosity of the model's response. Lower values will result in
more concise responses, while higher values will result in more verbose responses.
Currently supported values are low, medium, and high. The default is
medium.
Available options:
low,
medium,
high
reasoning_effort
enum<string> | null
default:medium
Constrains effort on reasoning for reasoning models. Currently supported
values are none, minimal, low, medium, high, xhigh, and max.
Reducing reasoning effort can result in faster responses and fewer tokens
used on reasoning in a response. Not all reasoning models support every
value. See the
reasoning guide
for model-specific support.
Available options:
none,
minimal,
low,
medium,
high,
xhigh,
max
max_completion_tokens
integer | null
An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens.
frequency_penalty
number | null
default:0
Number between -2.0 and 2.0. Positive values penalize new tokens based on
their existing frequency in the text so far, decreasing the model's
likelihood to repeat the same line verbatim.
Required range: -2 <= x <= 2
presence_penalty
number | null
default:0
Number between -2.0 and 2.0. Positive values penalize new tokens based on
whether they appear in the text so far, increasing the model's likelihood
to talk about new topics.
Required range: -2 <= x <= 2
web_search_options
Web search · object
This tool searches the web for relevant results to use in a response.
Learn more about the web search tool.
Show child attributes
response_format
Text · object
An object specifying the format that the model must output.
Setting to { "type": "json_schema", "json_schema": {...} } enables
Structured Outputs which ensures the model will match your supplied JSON
schema. Learn more in the Structured Outputs
guide.
Setting to { "type": "json_object" } enables the older JSON mode, which
ensures the message the model generates is valid JSON. Using json_schema
is preferred for models that support it.
Text
JSON schema
JSON object
Show child attributes
audio
object | null
Parameters for audio output. Required when audio output is requested with
modalities: ["audio"]. Learn more.
Show child attributes
store
boolean | null
default:false
Whether or not to store the output of this chat completion request for
use in our model distillation or
evals products.
Supports text and image inputs. Note: image inputs over 8MB will be dropped.
moderation
object | null
Configuration for running moderation on the request input and generated output.
Show child attributes
stream
boolean | null
default:false
If set to true, the model response data will be streamed to the client
as it is generated using server-sent events.
See the Streaming section below
for more information, along with the streaming responses
guide for more information on how to handle the streaming events.
stop
stringstring[]
default:<|endoftext|>
Not supported with latest reasoning models o3 and o4-mini.
Up to 4 sequences where the API will stop generating further tokens. The
returned text will not contain the stop sequence.
Example:
"\n"
logit_bias
object | null
Modify the likelihood of specified tokens appearing in the completion.
Accepts a JSON object that maps tokens (specified by their token ID in the
tokenizer) to an associated bias value from -100 to 100. Mathematically,
the bias is added to the logits generated by the model prior to sampling.
The exact effect will vary per model, but values between -1 and 1 should
decrease or increase likelihood of selection; values like -100 or 100
should result in a ban or exclusive selection of the relevant token.
Show child attributes
logprobs
boolean | null
default:false
Whether to return log probabilities of the output tokens or not. If true,
returns the log probabilities of each output token returned in the
content of message.
max_tokens
integer | null
deprecated
The maximum number of tokens that can be generated in the
chat completion. This value can be used to control
costs for text generated via API.
This value is now deprecated in favor of max_completion_tokens, and is
not compatible with o-series models.
n
integer | null
default:1
How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
Required range: 1 <= x <= 128
Example:
1
prediction
Static Content · object | null
Configuration for a Predicted Output,
which can greatly improve response times when large parts of the model
response are known ahead of time. This is most common when you are
regenerating a file with only minor changes to most of the content.
Show child attributes
seed
integer<int64> | null
deprecated
This feature is in Beta.
If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
Determinism is not guaranteed, and you should refer to the system_fingerprint response parameter to monitor changes in the backend.
Required range: -9223372036854776000 <= x <= 9223372036854776000
stream_options
object | null
Options for streaming response. Only set this when you set stream: true.
Controls which (if any) tool is called by the model.
none means the model will not call any tool and instead generates a message.
auto means the model can pick between generating a message or calling one or more tools.
required means the model must call one or more tools.
Specifying a particular tool via {"type": "function", "function": {"name": "my_function"}} forces the model to call that tool.
none is the default when no tools are present. auto is the default if tools are present.
Controls which (if any) function is called by the model.
none means the model will not call a function and instead generates a
message.
auto means the model can pick between generating a message or calling a
function.
Specifying a particular function via {"name": "my_function"} forces the
model to call that function.
none is the default when no functions are present. auto is the default
if functions are present.
Available options:
none,
auto
functions
object[]
deprecated
Deprecated in favor of tools.
A list of functions the model may generate JSON inputs for.
Required array length: 1 - 128 elements
Show child attributes
Response
Returns a Chat Completion object for a non-streaming request.
If stream is true, returns server-sent events (text/event-stream).
Successful chunk frames contain a JSON Chat Completion chunk matching
CreateChatCompletionStreamResponse. On normal completion, the final
frame is:
data: [DONE]
The final frame ends with a blank line. [DONE] is literal text, not a
JSON chunk, and this frame has no event: done field.
If a failure occurs after streaming has started, a data frame may
contain a JSON object with an error field instead of a completion
chunk. The streaming schema describes successful JSON chunks, not
error frames or the completion marker. An interrupted stream may end
without the marker.
Represents a chat completion response returned by model, based on the provided input.
id
string
required
A unique identifier for the chat completion.
choices
object[]
required
A list of chat completion choices. Can be more than one if n is greater than 1.
Show child attributes
created
integer<unixtime>
required
The Unix timestamp (in seconds) of when the chat completion was created.
model
string
required
The model used for the chat completion.
object
string
required
The object type, which is always chat.completion.
Allowed value: "chat.completion"
metadata
object | null
Set of 16 key-value pairs that can be attached to an object. This can be
useful for storing additional information about the object in a structured
format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings
with a maximum length of 512 characters.
Show child attributes
service_tier
enum<string> | null
default:auto
Specifies the processing type used for serving the request.
If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.
If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.
If set to 'flex', then the request will be processed with the Flex Processing service tier.
To opt-in to Fast mode at the request level, include the service_tier=fast or service_tier=priority parameter for Responses or Chat Completions. The response will show service_tier=priority regardless of if you specify service_tier=fast or priority in your request.
When not set, the default behavior is 'auto'.
When the service_tier parameter is set, the response body will include the service_tier value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.
Available options:
auto,
default,
flex,
scale,
priority,
fast
system_fingerprint
string
deprecated
This fingerprint represents the backend configuration that the model runs with.
Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism.
usage
object
Usage statistics for the completion request.
Show child attributes
moderation
object | null
Moderation results for the request input and generated output, if moderated
completions were requested.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"DreamTo API","description":"DreamTo 开放平台 API 对接文档:大模型、图像生成、视频生成、素材库与回调通知。","colors":{"primary":"#3E3E3F","light":"#D9D9D9","dark":"#363637"},"logo":{"light":"https://mintcdn.com/dreamto/qdi4xMMMFQC2W0qR/logo/light.png?fit=max\u0026auto=format\u0026n=qdi4xMMMFQC2W0qR\u0026q=85\u0026s=34f5db7a934e6d8d4723f28e3524c21a","dark":"https://mintcdn.com/dreamto/qdi4xMMMFQC2W0qR/logo/dark.png?fit=max\u0026auto=format\u0026n=qdi4xMMMFQC2W0qR\u0026q=85\u0026s=e9e91d5623ae6cf20295add0e33604b6","href":"https://www.dreamto.ai"},"favicon":"https://mintcdn.com/dreamto/Ph_X0c0GH3e_Oc4M/logo/favicon.png?fit=max\u0026auto=format\u0026n=Ph_X0c0GH3e_Oc4M\u0026q=85\u0026s=a962c369d147adc379d19082b3761244","api":{"examples":{"languages":["curl","python","javascript","node","go","java","php","ruby","csharp","swift","kotlin","rust"],"prefill":true}},"appearance":{"default":"dark"},"navbar":{"primary":{"type":"button","label":"Console","href":"https://www.dreamto.ai"}},"footer":{"socials":{"website":"https://www.dreamto.ai"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode","download-pdf","download-spec","assistant","grok","aistudio","devin","windsurf","add-mcp","devin-mcp"],"display":"header"},"styling":{"latex":true},"navigation":{"languages":[{"language":"zh","default":true,"href":""},{"language":"en","href":"en"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dreamto","hasAudioNarration":false,"actualSubdomain":"dreamto","customDomains":["docs.dreamto.ai"],"gitSource":{"type":"github","owner":"dreamtoai","repo":"dreamtoai-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6af54bcfc07174dae1a336e3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b13fb2c585955f128114e94","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"zh","tag":"音乐生成","count":94},{"language":"zh","tag":"Suno","count":94},{"language":"en","tag":"Music generation","count":94},{"language":"en","tag":"Suno","count":94},{"language":"zh","tag":"Seedance 视频生成","count":82},{"language":"en","tag":"Seedance video","count":82},{"language":"zh","tag":"使用示例","count":63},{"language":"en","tag":"Examples","count":63},{"language":"zh","tag":"图像生成","count":50},{"language":"zh","tag":"歌曲生成与编辑","count":50},{"language":"en","tag":"Image generation","count":50},{"language":"en","tag":"Songs","count":50},{"language":"zh","tag":"PixVerse 视频生成","count":28},{"language":"en","tag":"PixVerse video","count":28},{"language":"zh","tag":"Wan 视频生成","count":27},{"language":"en","tag":"Wan video","count":27},{"language":"zh","tag":"工具接入","count":16},{"language":"zh","tag":"Seedance 2.5","count":16},{"language":"en","tag":"Integrations","count":16},{"language":"en","tag":"Seedance 2.5","count":16}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#navbar img.nav-logo,.nav-logo{height:2.5rem;max-height:2.5rem;width:auto}@media (max-width: 1024px){#navbar img.nav-logo,.nav-logo{height:2rem;max-height:2rem}}"}]}
{"page":{"pagePath":"en/api-reference/openai-chat-completions/create-chat-completion","slug":"/en/api-reference/openai-chat-completions/create-chat-completion","pageMetadata":{"title":"Create chat completion","description":"**Starting a new project?** We recommend trying [Responses](https://developers.openai.com/api/reference/resources/responses)\nto take advantage of the latest OpenAI platform features. Compare\n[Chat Completions with Responses](https://developers.openai.com/api/docs/guides/migrate-to-responses?api-mode=responses).\n\n---\n\nCreates a model response for the given chat conversation. Learn more in the\n[text generation](https://developers.openai.com/api/docs/guides/text), [vision](https://developers.openai.com/api/docs/guides/images-vision),\nand [audio](https://developers.openai.com/api/docs/guides/audio) guides.\n\nParameter support can differ depending on the model used to generate the\nresponse, particularly for newer reasoning models. Parameters that are only\nsupported for reasoning models are noted below. For the current state of\nunsupported parameters in reasoning models,\n[refer to the reasoning guide](https://developers.openai.com/api/docs/guides/reasoning).\n\nReturns a chat completion object, or a streamed sequence of chat completion\nchunk objects if the request is streamed.\n","deprecated":null,"version":null,"sidebarTitle":"Create chat completion","openapi":"/openapi/en/openai-chat-completions.json post /v1/chat/completions","href":"/en/api-reference/openai-chat-completions/create-chat-completion","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n hr: \"hr\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Starting a new project?\"\n }), \" We recommend trying \", _jsx(_components.a, {\n href: \"https://developers.openai.com/api/reference/resources/responses\",\n children: \"Responses\"\n }), \"\\nto take advantage of the latest OpenAI platform features. Compare\\n\", _jsx(_components.a, {\n href: \"https://developers.openai.com/api/docs/guides/migrate-to-responses?api-mode=responses\",\n children: \"Chat Completions with Responses\"\n }), \".\"]\n }), \"\\n\", _jsx(_components.hr, {}), \"\\n\", _jsxs(_components.p, {\n children: [\"Creates a model response for the given chat conversation. Learn more in the\\n\", _jsx(_components.a, {\n href: \"https://developers.openai.com/api/docs/guides/text\",\n children: \"text generation\"\n }), \", \", _jsx(_components.a, {\n href: \"https://developers.openai.com/api/docs/guides/images-vision\",\n children: \"vision\"\n }), \",\\nand \", _jsx(_components.a, {\n href: \"https://developers.openai.com/api/docs/guides/audio\",\n children: \"audio\"\n }), \" guides.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Parameter support can differ depending on the model used to generate the\\nresponse, particularly for newer reasoning models. Parameters that are only\\nsupported for reasoning models are noted below. For the current state of\\nunsupported parameters in reasoning models,\\n\", _jsx(_components.a, {\n href: \"https://developers.openai.com/api/docs/guides/reasoning\",\n children: \"refer to the reasoning guide\"\n }), \".\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Returns a chat completion object, or a streamed sequence of chat completion\\nchunk objects if the request is streamed.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create chat completion","description":"**Starting a new project?** We recommend trying [Responses](https://developers.openai.com/api/reference/resources/responses)\nto take advantage of the latest OpenAI platform features. Compare\n[Chat Completions with Responses](https://developers.openai.com/api/docs/guides/migrate-to-responses?api-mode=responses).\n\n---\n\nCreates a model response for the given chat conversation. Learn more in the\n[text generation](https://developers.openai.com/api/docs/guides/text), [vision](https://developers.openai.com/api/docs/guides/images-vision),\nand [audio](https://developers.openai.com/api/docs/guides/audio) guides.\n\nParameter support can differ depending on the model used to generate the\nresponse, particularly for newer reasoning models. Parameters that are only\nsupported for reasoning models are noted below. For the current state of\nunsupported parameters in reasoning models,\n[refer to the reasoning guide](https://developers.openai.com/api/docs/guides/reasoning).\n\nReturns a chat completion object, or a streamed sequence of chat completion\nchunk objects if the request is streamed.\n","deprecated":null,"version":null,"sidebarTitle":"Create chat completion","openapi":"/openapi/en/openai-chat-completions.json post /v1/chat/completions","href":"/en/api-reference/openai-chat-completions/create-chat-completion","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createChatCompletion","summary":"Create chat completion","description":"**Starting a new project?** We recommend trying [Responses](https://developers.openai.com/api/reference/resources/responses)\nto take advantage of the latest OpenAI platform features. Compare\n[Chat Completions with Responses](https://developers.openai.com/api/docs/guides/migrate-to-responses?api-mode=responses).\n\n---\n\nCreates a model response for the given chat conversation. Learn more in the\n[text generation](https://developers.openai.com/api/docs/guides/text), [vision](https://developers.openai.com/api/docs/guides/images-vision),\nand [audio](https://developers.openai.com/api/docs/guides/audio) guides.\n\nParameter support can differ depending on the model used to generate the\nresponse, particularly for newer reasoning models. Parameters that are only\nsupported for reasoning models are noted below. For the current state of\nunsupported parameters in reasoning models,\n[refer to the reasoning guide](https://developers.openai.com/api/docs/guides/reasoning).\n\nReturns a chat completion object, or a streamed sequence of chat completion\nchunk objects if the request is streamed.\n","tags":["Chat Completions"],"requestBody":"4a986bb8-4a49-49ae-a085-d3e47a4eb242","responses":{"200":"15f93229-84e9-4648-9777-9b1228383f5b","400":"eeed92f8-643b-45e5-bb5f-eb1fec78ff8e","401":"12b0e929-8b12-4f75-92ab-f6a0722934f7","402":"36a95c18-3ce7-4fc0-bc12-b67bd886662c","403":"07cad0a9-230d-447a-8fde-68f9ec39e797","404":"d29d8712-ea41-4a6c-987b-b2e6838c293d","429":"09c17f82-9aad-4e82-8b75-7892a12e6a64","500":"89a9e374-46f0-4a55-a0b8-e04c7b64e376","503":"1e340a37-1fdb-439c-9530-0d8e805f4cef"},"x-mint":{"href":"/en/api-reference/openai-chat-completions/create-chat-completion","metadata":{"title":"Create chat completion","sidebarTitle":"Create chat completion"}},"method":"post","type":"path","servers":["24f8f9f5-bc19-4acc-be0d-16bd06900caa"],"security":["11b2749e-32a5-4071-ae44-e4c4cd8524e3"],"path":"/v1/chat/completions","baseUrlOptions":["https://api.dreamto.ai"],"title":"Create chat completion","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","node","go","java","php","ruby","csharp","swift","kotlin","rust"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.messages.items.0.oneOf.0.content.oneOf.0":"You are a concise, professional assistant.","body.messages.items.0.oneOf.0.role":"system","body.messages.items.1.oneOf.0.content.oneOf.0":"Explain quantum computing in three sentences.","body.messages.items.1.oneOf.0.role":"user","body.model":"gpt-6.2-sol"},{"body.messages.items.0.oneOf.0.content.oneOf.0":"Write a four-line poem about autumn.","body.messages.items.0.oneOf.0.role":"user","body.model":"gpt-6.2-sol","body.stream.oneOf.0":true,"body.stream_options.oneOf.0.include_usage":true},{"body.messages.items.0.oneOf.0.content.oneOf.0":"Suggest a name for a coffee shop.","body.messages.items.0.oneOf.0.role":"user","body.messages.items.1.oneOf.0.content.oneOf.0":"How about \"Morning Light Coffee\"?","body.messages.items.1.oneOf.0.role":"assistant","body.messages.items.2.oneOf.0.content.oneOf.0":"Now add a tagline for that name.","body.messages.items.2.oneOf.0.role":"user","body.model":"kimi-k3.1-pro"},{"body.messages.items.0.oneOf.0.content.oneOf.1.items.0.type":"text","body.messages.items.0.oneOf.0.content.oneOf.1.items.0.text":"What is in this image?","body.messages.items.0.oneOf.0.content.oneOf.1.items.1.type":"image_url","body.messages.items.0.oneOf.0.role":"user","body.model":"gpt-6.1-terra"},{"body.messages.items.0.oneOf.0.content.oneOf.0":"What's the weather like in Hangzhou today?","body.messages.items.0.oneOf.0.role":"user","body.model":"gpt-6.2-sol","body.tools.items.0.oneOf.0.type":"function","body.tools.items.0.oneOf.0.function.name":"get_weather","body.tools.items.0.oneOf.0.function.description":"Get the current weather for a city","body.tools.items.0.oneOf.0.function.parameters":{"type":"object","properties":{"city":{"type":"string","description":"City name, e.g. Hangzhou"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["city"]},"body.tool_choice.oneOf.0":"auto"},{"body.messages.items.0.oneOf.0.content.oneOf.0":"Extract the contact from this sentence: I'm Li Lei from Galaxy Tech, lilei@example.com.","body.messages.items.0.oneOf.0.role":"user","body.model":"gpt-6.2-sol","body.response_format.oneOf.1.type":"json_schema","body.response_format.oneOf.1.json_schema.name":"contact","body.response_format.oneOf.1.json_schema.schema":{"type":"object","properties":{"name":{"type":"string"},"company":{"type":"string"},"email":{"type":"string"}},"required":["name","company","email"],"additionalProperties":false},"body.response_format.oneOf.1.json_schema.strict.oneOf.0":true},{"body.messages.items.0.oneOf.0.content.oneOf.0":"A tank has two inlet pipes and one outlet. Pipe A fills it in 6 hours, pipe B in 8 hours, and the outlet empties it in 12 hours. With all three open, how long does it take to fill?","body.messages.items.0.oneOf.0.role":"user","body.model":"gpt-6.2-sol","body.reasoning_effort.oneOf.0":"high"}]},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","messages"],"properties":{"messages":{"description":"A list of messages comprising the conversation so far. Depending on the\n[model](https://developers.openai.com/api/docs/models) you use, different message types (modalities) are\nsupported, like [text](https://developers.openai.com/api/docs/guides/text),\n[images](https://developers.openai.com/api/docs/guides/images-vision), and [audio](https://developers.openai.com/api/docs/guides/audio).\n","type":"array","minItems":1,"items":{"oneOf":[{"type":"object","title":"Developer message","description":"Developer-provided instructions that the model should follow, regardless of\nmessages sent by the user. With o1 models and newer, `developer` messages\nreplace the previous `system` messages.\n","required":["content","role"],"properties":{"content":{"oneOf":[{"type":"string","title":"Text content","description":"The contents of the developer message.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","title":"Text content part","description":"Learn about [text inputs](https://developers.openai.com/api/docs/guides/text).\n","properties":{"type":{"type":"string","const":"text","description":"The type of the content part.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].type","typeLabel":"string"},"text":{"type":"string","description":"The text content.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].text","typeLabel":"string"},"prompt_cache_breakpoint":{"properties":{"mode":{"type":"string","enum":["explicit"],"description":"The breakpoint mode. Always `explicit`.","default":"explicit","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].prompt_cache_breakpoint.mode","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["30m","12h"],"description":"The minimum lifetime of this cache breakpoint. Defaults to the request TTL.","uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].prompt_cache_breakpoint.ttl","typeLabel":"enum\u003cstring>"}},"type":"object","required":["mode"],"title":"Prompt cache breakpoint","description":"Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.","uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].prompt_cache_breakpoint","typeLabel":"Prompt cache breakpoint · object"}},"required":["type","text"],"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX]","typeLabel":"Text content part · object"},"title":"Array of content parts","description":"The contents of the developer message.","minItems":1,"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1","typeLabel":"Text content part · object[]"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.content","typeLabel":"string | Text content part · object[]"},"role":{"type":"string","const":"developer","description":"The role of the messages author, in this case `developer`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.role","typeLabel":"string"},"name":{"type":"string","description":"An optional name for the participant. Provides the model information to differentiate between participants of the same role.","uniqueKey":"messages.items.[INDEX].oneOf.0.name","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].oneOf.0","typeLabel":"Developer message · object"},{"type":"object","title":"System message","description":"Developer-provided instructions that the model should follow, regardless of\nmessages sent by the user. With o1 models and newer, use `developer` messages\nfor this purpose instead.\n","required":["content","role"],"properties":{"content":{"oneOf":[{"type":"string","title":"Text content","description":"The contents of the system message.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","title":"Text content part","description":"Learn about [text inputs](https://developers.openai.com/api/docs/guides/text).\n","required":["type","text"],"properties":{"type":{"type":"string","const":"text","description":"The type of the content part.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].type","typeLabel":"string"},"text":{"type":"string","description":"The text content.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].text","typeLabel":"string"},"prompt_cache_breakpoint":{"properties":{"mode":{"type":"string","enum":["explicit"],"description":"The breakpoint mode. Always `explicit`.","default":"explicit","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].prompt_cache_breakpoint.mode","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["30m","12h"],"description":"The minimum lifetime of this cache breakpoint. Defaults to the request TTL.","uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].prompt_cache_breakpoint.ttl","typeLabel":"enum\u003cstring>"}},"type":"object","required":["mode"],"title":"Prompt cache breakpoint","description":"Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.","uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].prompt_cache_breakpoint","typeLabel":"Prompt cache breakpoint · object"}},"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX]","typeLabel":"Text content part · object"},"title":"Array of content parts","description":"The contents of the system message.","minItems":1,"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1","typeLabel":"Text content part · object[]"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content","typeLabel":"string | Text content part · object[]"},"role":{"type":"string","const":"system","description":"The role of the messages author, in this case `system`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.role","typeLabel":"string"},"name":{"type":"string","description":"An optional name for the participant. Provides the model information to differentiate between participants of the same role.","uniqueKey":"messages.items.[INDEX].oneOf.1.name","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].oneOf.1","typeLabel":"System message · object"},{"type":"object","title":"User message","description":"Messages sent by an end user, containing prompts or additional context\ninformation.\n","required":["content","role"],"properties":{"content":{"oneOf":[{"type":"string","title":"Text content","description":"The contents of the user message.\n","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"oneOf":[{"type":"object","title":"Text content part","description":"Learn about [text inputs](https://developers.openai.com/api/docs/guides/text).\n","required":["type","text"],"properties":{"type":{"type":"string","const":"text","description":"The type of the content part.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.type","typeLabel":"string"},"text":{"type":"string","description":"The text content.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.text","typeLabel":"string"},"prompt_cache_breakpoint":{"properties":{"mode":{"type":"string","enum":["explicit"],"description":"The breakpoint mode. Always `explicit`.","default":"explicit","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.prompt_cache_breakpoint.mode","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["30m","12h"],"description":"The minimum lifetime of this cache breakpoint. Defaults to the request TTL.","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.prompt_cache_breakpoint.ttl","typeLabel":"enum\u003cstring>"}},"type":"object","required":["mode"],"title":"Prompt cache breakpoint","description":"Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.prompt_cache_breakpoint","typeLabel":"Prompt cache breakpoint · object"}},"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0","typeLabel":"Text content part · object"},{"type":"object","title":"Image content part","description":"Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).\n","required":["type","image_url"],"properties":{"type":{"type":"string","const":"image_url","description":"The type of the content part.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.type","typeLabel":"string"},"image_url":{"type":"object","properties":{"url":{"type":"string","description":"Either a URL of the image or the base64 encoded image data.","format":"uri","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.image_url.url","typeLabel":"string\u003curi>"},"detail":{"type":"string","description":"Specifies the detail level of the image. Learn more in the [Vision guide](https://developers.openai.com/api/docs/guides/images-vision#choose-an-image-detail-level).","enum":["auto","low","high","original"],"default":"auto","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.image_url.detail","typeLabel":"enum\u003cstring>"}},"required":["url"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.image_url","typeLabel":"object"},"prompt_cache_breakpoint":{"properties":{"mode":{"type":"string","enum":["explicit"],"description":"The breakpoint mode. Always `explicit`.","default":"explicit","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.prompt_cache_breakpoint.mode","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["30m","12h"],"description":"The minimum lifetime of this cache breakpoint. Defaults to the request TTL.","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.prompt_cache_breakpoint.ttl","typeLabel":"enum\u003cstring>"}},"type":"object","required":["mode"],"title":"Prompt cache breakpoint","description":"Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.prompt_cache_breakpoint","typeLabel":"Prompt cache breakpoint · object"}},"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1","typeLabel":"Image content part · object"},{"type":"object","title":"Audio content part","description":"Learn about [audio inputs](https://developers.openai.com/api/docs/guides/audio).\n","required":["type","input_audio"],"properties":{"type":{"type":"string","const":"input_audio","description":"The type of the content part. Always `input_audio`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.2.type","typeLabel":"string"},"input_audio":{"type":"object","properties":{"data":{"type":"string","description":"Base64 encoded audio data.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.2.input_audio.data","typeLabel":"string"},"format":{"type":"string","enum":["wav","mp3"],"description":"The format of the encoded audio data. Currently supports \"wav\" and \"mp3\".\n","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.2.input_audio.format","typeLabel":"enum\u003cstring>"}},"required":["data","format"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.2.input_audio","typeLabel":"object"},"prompt_cache_breakpoint":{"properties":{"mode":{"type":"string","enum":["explicit"],"description":"The breakpoint mode. Always `explicit`.","default":"explicit","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.2.prompt_cache_breakpoint.mode","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["30m","12h"],"description":"The minimum lifetime of this cache breakpoint. Defaults to the request TTL.","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.2.prompt_cache_breakpoint.ttl","typeLabel":"enum\u003cstring>"}},"type":"object","required":["mode"],"title":"Prompt cache breakpoint","description":"Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.2.prompt_cache_breakpoint","typeLabel":"Prompt cache breakpoint · object"}},"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.2","typeLabel":"Audio content part · object"},{"type":"object","title":"File content part","description":"Learn about [file inputs](https://developers.openai.com/api/docs/guides/text) for text generation.\n","required":["type","file"],"properties":{"type":{"type":"string","const":"file","description":"The type of the content part. Always `file`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.3.type","typeLabel":"string"},"file":{"type":"object","properties":{"filename":{"type":"string","description":"The name of the file, used when passing the file to the model as a\nstring.\n","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.3.file.filename","typeLabel":"string"},"file_data":{"type":"string","description":"The base64 encoded file data, used when passing the file to the model\nas a string.\n","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.3.file.file_data","typeLabel":"string"},"file_id":{"type":"string","description":"The ID of an uploaded file to use as input.\n","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.3.file.file_id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.3.file","typeLabel":"object"},"prompt_cache_breakpoint":{"properties":{"mode":{"type":"string","enum":["explicit"],"description":"The breakpoint mode. Always `explicit`.","default":"explicit","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.3.prompt_cache_breakpoint.mode","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["30m","12h"],"description":"The minimum lifetime of this cache breakpoint. Defaults to the request TTL.","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.3.prompt_cache_breakpoint.ttl","typeLabel":"enum\u003cstring>"}},"type":"object","required":["mode"],"title":"Prompt cache breakpoint","description":"Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.3.prompt_cache_breakpoint","typeLabel":"Prompt cache breakpoint · object"}},"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].oneOf.3","typeLabel":"File content part · object"}],"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX]","typeLabel":"Text content part · object | Image content part · object | Audio content part · object | File content part · object"},"title":"Array of content parts","description":"The contents of the user message.\n","minItems":1,"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1","typeLabel":"(Text content part · object | Image content part · object | Audio content part · object | File content part · object)[]"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content","typeLabel":"string | (Text content part · object | Image content part · object | Audio content part · object | File content part · object)[]"},"role":{"type":"string","const":"user","description":"The role of the messages author, in this case `user`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.role","typeLabel":"string"},"name":{"type":"string","description":"An optional name for the participant. Provides the model information to differentiate between participants of the same role.","uniqueKey":"messages.items.[INDEX].oneOf.2.name","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].oneOf.2","typeLabel":"User message · object"},{"type":"object","title":"Assistant message","description":"Messages sent by the model in response to user messages.\n","required":["role"],"properties":{"role":{"type":"string","const":"assistant","description":"The role of the messages author, in this case `assistant`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.role","typeLabel":"string"},"content":{"oneOf":[{"type":"string","title":"Text content","description":"The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.\n","uniqueKey":"messages.items.[INDEX].oneOf.3.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"oneOf":[{"type":"object","title":"Text content part","description":"Learn about [text inputs](https://developers.openai.com/api/docs/guides/text).\n","required":["type","text"],"properties":{"type":{"type":"string","const":"text","description":"The type of the content part.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.content.oneOf.1.items.[INDEX].oneOf.0.type","typeLabel":"string"},"text":{"type":"string","description":"The text content.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.content.oneOf.1.items.[INDEX].oneOf.0.text","typeLabel":"string"},"prompt_cache_breakpoint":{"properties":{"mode":{"type":"string","enum":["explicit"],"description":"The breakpoint mode. Always `explicit`.","default":"explicit","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.content.oneOf.1.items.[INDEX].oneOf.0.prompt_cache_breakpoint.mode","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["30m","12h"],"description":"The minimum lifetime of this cache breakpoint. Defaults to the request TTL.","uniqueKey":"messages.items.[INDEX].oneOf.3.content.oneOf.1.items.[INDEX].oneOf.0.prompt_cache_breakpoint.ttl","typeLabel":"enum\u003cstring>"}},"type":"object","required":["mode"],"title":"Prompt cache breakpoint","description":"Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.","uniqueKey":"messages.items.[INDEX].oneOf.3.content.oneOf.1.items.[INDEX].oneOf.0.prompt_cache_breakpoint","typeLabel":"Prompt cache breakpoint · object"}},"uniqueKey":"messages.items.[INDEX].oneOf.3.content.oneOf.1.items.[INDEX].oneOf.0","typeLabel":"Text content part · object"},{"type":"object","title":"Refusal content part","required":["type","refusal"],"properties":{"type":{"type":"string","const":"refusal","description":"The type of the content part.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.content.oneOf.1.items.[INDEX].oneOf.1.type","typeLabel":"string"},"refusal":{"type":"string","description":"The refusal message generated by the model.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.content.oneOf.1.items.[INDEX].oneOf.1.refusal","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].oneOf.3.content.oneOf.1.items.[INDEX].oneOf.1","typeLabel":"Refusal content part · object"}],"uniqueKey":"messages.items.[INDEX].oneOf.3.content.oneOf.1.items.[INDEX]","typeLabel":"Text content part · object | Refusal content part · object"},"title":"Array of content parts","description":"The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.\n","minItems":1,"uniqueKey":"messages.items.[INDEX].oneOf.3.content.oneOf.1","typeLabel":"(Text content part · object | Refusal content part · object)[]"},{"type":"null","uniqueKey":"messages.items.[INDEX].oneOf.3.content.oneOf.2","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.3.content","typeLabel":"string | (Text content part · object | Refusal content part · object)[] | null"},"refusal":{"oneOf":[{"type":"string","description":"The refusal message by the assistant.","uniqueKey":"messages.items.[INDEX].oneOf.3.refusal.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"messages.items.[INDEX].oneOf.3.refusal.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.3.refusal","typeLabel":"string | null"},"name":{"type":"string","description":"An optional name for the participant. Provides the model information to differentiate between participants of the same role.","uniqueKey":"messages.items.[INDEX].oneOf.3.name","typeLabel":"string"},"audio":{"oneOf":[{"type":"object","description":"Data about a previous audio response from the model.\n[Learn more](https://developers.openai.com/api/docs/guides/audio).\n","required":["id"],"properties":{"id":{"type":"string","description":"Unique identifier for a previous audio response from the model.\n","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.audio.oneOf.0.id","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].oneOf.3.audio.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"messages.items.[INDEX].oneOf.3.audio.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.3.audio","typeLabel":"object | null"},"tool_calls":{"type":"array","description":"The tool calls generated by the model, such as function calls.","items":{"oneOf":[{"type":"object","title":"Function tool call","description":"A call to a function tool created by the model.\n","required":["id","type","function"],"properties":{"id":{"type":"string","description":"The ID of the tool call.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls.items.[INDEX].oneOf.0.id","typeLabel":"string"},"type":{"type":"string","const":"function","description":"The type of the tool. Currently, only `function` is supported.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls.items.[INDEX].oneOf.0.type","typeLabel":"string"},"function":{"type":"object","description":"The function that the model called.","properties":{"name":{"type":"string","description":"The name of the function to call.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls.items.[INDEX].oneOf.0.function.name","typeLabel":"string"},"arguments":{"type":"string","description":"The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls.items.[INDEX].oneOf.0.function.arguments","typeLabel":"string"}},"required":["name","arguments"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls.items.[INDEX].oneOf.0.function","typeLabel":"object"}},"uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls.items.[INDEX].oneOf.0","typeLabel":"Function tool call · object"},{"type":"object","title":"Custom tool call","description":"A call to a custom tool created by the model.\n","required":["id","type","custom"],"properties":{"id":{"type":"string","description":"The ID of the tool call.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls.items.[INDEX].oneOf.1.id","typeLabel":"string"},"type":{"type":"string","const":"custom","description":"The type of the tool. Always `custom`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls.items.[INDEX].oneOf.1.type","typeLabel":"string"},"custom":{"type":"object","description":"The custom tool that the model called.","properties":{"name":{"type":"string","description":"The name of the custom tool to call.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls.items.[INDEX].oneOf.1.custom.name","typeLabel":"string"},"input":{"type":"string","description":"The input for the custom tool call generated by the model.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls.items.[INDEX].oneOf.1.custom.input","typeLabel":"string"}},"required":["name","input"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls.items.[INDEX].oneOf.1.custom","typeLabel":"object"}},"uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls.items.[INDEX].oneOf.1","typeLabel":"Custom tool call · object"}],"uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls.items.[INDEX]","typeLabel":"Function tool call · object | Custom tool call · object"},"uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls","typeLabel":"(Function tool call · object | Custom tool call · object)[]"},"function_call":{"oneOf":[{"type":"object","description":"Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model.","required":["arguments","name"],"deprecated":true,"properties":{"arguments":{"type":"string","description":"The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.function_call.oneOf.0.arguments","typeLabel":"string"},"name":{"type":"string","description":"The name of the function to call.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.function_call.oneOf.0.name","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].oneOf.3.function_call.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"messages.items.[INDEX].oneOf.3.function_call.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.3.function_call","typeLabel":"object | null"}},"uniqueKey":"messages.items.[INDEX].oneOf.3","typeLabel":"Assistant message · object"},{"type":"object","title":"Tool message","required":["role","content","tool_call_id"],"properties":{"role":{"type":"string","const":"tool","description":"The role of the messages author, in this case `tool`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.4.role","typeLabel":"string"},"content":{"oneOf":[{"type":"string","title":"Text content","description":"The contents of the tool message.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.4.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","title":"Text content part","description":"Learn about [text inputs](https://developers.openai.com/api/docs/guides/text).\n","required":["type","text"],"properties":{"type":{"type":"string","const":"text","description":"The type of the content part.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].type","typeLabel":"string"},"text":{"type":"string","description":"The text content.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].text","typeLabel":"string"},"prompt_cache_breakpoint":{"properties":{"mode":{"type":"string","enum":["explicit"],"description":"The breakpoint mode. Always `explicit`.","default":"explicit","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].prompt_cache_breakpoint.mode","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["30m","12h"],"description":"The minimum lifetime of this cache breakpoint. Defaults to the request TTL.","uniqueKey":"messages.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].prompt_cache_breakpoint.ttl","typeLabel":"enum\u003cstring>"}},"type":"object","required":["mode"],"title":"Prompt cache breakpoint","description":"Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.","uniqueKey":"messages.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].prompt_cache_breakpoint","typeLabel":"Prompt cache breakpoint · object"}},"uniqueKey":"messages.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX]","typeLabel":"Text content part · object"},"title":"Array of content parts","description":"The contents of the tool message.","minItems":1,"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.4.content.oneOf.1","typeLabel":"Text content part · object[]"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.4.content","typeLabel":"string | Text content part · object[]"},"tool_call_id":{"type":"string","description":"Tool call that this message is responding to.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.4.tool_call_id","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].oneOf.4","typeLabel":"Tool message · object"},{"type":"object","title":"Function message","required":["role","content","name"],"deprecated":true,"properties":{"role":{"type":"string","const":"function","description":"The role of the messages author, in this case `function`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.5.role","typeLabel":"string"},"content":{"oneOf":[{"type":"string","description":"The contents of the function message.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.5.content.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.5.content.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.5.content","typeLabel":"string | null"},"name":{"type":"string","description":"The name of the function to call.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.5.name","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].oneOf.5","typeLabel":"Function message · object"}],"uniqueKey":"messages.items.[INDEX]","typeLabel":"Developer message · object | System message · object | User message · object | Assistant message · object | Tool message · object | Function message · object"},"isRequired":true,"uniqueKey":"messages","typeLabel":"(Developer message · object | System message · object | User message · object | Assistant message · object | Tool message · object | Function message · object)[]"},"model":{"type":"string","description":"ID of the model to use, for example `gpt-6.2-sol`. See [Models](/en/llm/openai-chat-completions) for the available models.","example":"gpt-6.2-sol","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"metadata":{"oneOf":[{"type":"object","description":"Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n","additionalProperties":{"type":"string","uniqueKey":"metadata.oneOf.0.additionalProperties","typeLabel":"string"},"uniqueKey":"metadata.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"object | null"},"top_logprobs":{"type":"integer","description":"An integer between 0 and 20 specifying the maximum number of most likely\ntokens to return at each token position, each with an associated log\nprobability. In some cases, the number of returned tokens may be fewer than\nrequested.\n`logprobs` must be set to `true` if this parameter is used.\n","maximum":20,"minimum":0,"uniqueKey":"top_logprobs","typeLabel":"integer"},"temperature":{"oneOf":[{"type":"number","description":"What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\nWe generally recommend altering this or `top_p` but not both.\n","default":1,"maximum":2,"minimum":0,"example":1,"uniqueKey":"temperature.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"temperature.oneOf.1","typeLabel":"null"}],"uniqueKey":"temperature","typeLabel":"number | null"},"top_p":{"oneOf":[{"type":"number","description":"An alternative to sampling with temperature, called nucleus sampling,\nwhere the model considers the results of the tokens with top_p probability\nmass. So 0.1 means only the tokens comprising the top 10% probability mass\nare considered.\n\nWe generally recommend altering this or `temperature` but not both.\n","default":1,"maximum":1,"minimum":0,"example":1,"uniqueKey":"top_p.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"top_p.oneOf.1","typeLabel":"null"}],"uniqueKey":"top_p","typeLabel":"number | null"},"user":{"oneOf":[{"type":"string","example":"user-1234","deprecated":true,"description":"This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.\nA stable identifier for your end-users.\nUsed to boost cache hit rates by better bucketing similar requests and to help OpenAI detect and prevent abuse. [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).\n","uniqueKey":"user.oneOf.0","typeLabel":"string"},{"type":"null","example":"user-1234","deprecated":true,"description":"This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.\nA stable identifier for your end-users.\nUsed to boost cache hit rates by better bucketing similar requests and to help OpenAI detect and prevent abuse. [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).\n","uniqueKey":"user.oneOf.1","typeLabel":"null"}],"uniqueKey":"user","typeLabel":"string | null"},"safety_identifier":{"oneOf":[{"type":"string","description":"A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.\nThe IDs should be a string that uniquely identifies each user, with a maximum length of 128 characters. We recommend hashing their username or email address, in order to avoid sending us any identifying information. [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).\n","maxLength":128,"example":"safety-identifier-1234","uniqueKey":"safety_identifier.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"safety_identifier.oneOf.1","typeLabel":"null"}],"uniqueKey":"safety_identifier","typeLabel":"string | null"},"prompt_cache_key":{"oneOf":[{"type":"string","description":"Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the `user` field. [Learn more](https://developers.openai.com/api/docs/guides/prompt-caching).\n","example":"prompt-cache-key-1234","uniqueKey":"prompt_cache_key.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"prompt_cache_key.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_cache_key","typeLabel":"string | null"},"prompt_cache_retention":{"oneOf":[{"type":"string","description":"Deprecated. Use `prompt_cache_options.ttl` instead.\n\nThe retention policy for the prompt cache. Set to `24h` to enable extended prompt caching, which keeps cached prefixes active for longer, up to a maximum of 24 hours. [Learn more](https://developers.openai.com/api/docs/guides/prompt-caching#prompt-cache-retention).\nThis field expresses a maximum retention policy, while\n`prompt_cache_options.ttl` expresses a minimum cache lifetime. The two\nfields are independent and do not interact.\nFor `gpt-5.5`, `gpt-5.5-pro`, and future models, only `24h` is supported.\n\nFor older models that support both `in_memory` and `24h`, the default depends on your organization's data retention policy:\n - Organizations without ZDR enabled default to `24h`.\n - Organizations with ZDR enabled default to `in_memory` when `prompt_cache_retention` is not specified.\n","enum":["in_memory","24h"],"deprecated":true,"uniqueKey":"prompt_cache_retention.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","deprecated":true,"uniqueKey":"prompt_cache_retention.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_cache_retention","typeLabel":"enum\u003cstring> | null"},"prompt_cache_options":{"properties":{"ttl":{"type":"string","enum":["30m"],"description":"The minimum lifetime applied to every implicit and explicit cache breakpoint written by the request. Defaults to `30m`, which is currently the only supported value. The backend may retain cache entries for longer.","uniqueKey":"prompt_cache_options.ttl","typeLabel":"enum\u003cstring>"},"mode":{"type":"string","enum":["implicit","explicit"],"description":"Controls whether OpenAI automatically creates an implicit cache breakpoint. Defaults to `implicit`. With `implicit`, OpenAI creates one implicit breakpoint and writes up to the latest three explicit breakpoints in the request. With `explicit`, OpenAI does not create an implicit breakpoint and writes up to the latest four explicit breakpoints. If there are no explicit breakpoints, the request does not use prompt caching.","uniqueKey":"prompt_cache_options.mode","typeLabel":"enum\u003cstring>"}},"type":"object","required":[],"title":"Prompt cache options","description":"Options for prompt caching. Supported for `gpt-5.6` and later models. By default, OpenAI automatically chooses one implicit cache breakpoint. You can add explicit breakpoints to content blocks with `prompt_cache_breakpoint`. Each request can write up to four breakpoints. For cache matching, OpenAI considers up to the latest 80 breakpoints in the conversation, without a content-block lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching) for current details.","uniqueKey":"prompt_cache_options","typeLabel":"Prompt cache options · object"},"service_tier":{"oneOf":[{"type":"string","description":"Specifies the processing type used for serving the request.\n - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.\n - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.\n - If set to '[flex](https://developers.openai.com/api/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.\n - To opt-in to [Fast mode](https://developers.openai.com/api/docs/guides/fast-mode) at the request level, include the `service_tier=fast` or `service_tier=priority` parameter for Responses or Chat Completions. The response will show `service_tier=priority` regardless of if you specify `service_tier=fast` or `priority` in your request.\n - When not set, the default behavior is 'auto'.\n\n When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.\n","default":"auto","enum":["auto","default","flex","scale","priority","fast"],"uniqueKey":"service_tier.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"service_tier.oneOf.1","typeLabel":"null"}],"uniqueKey":"service_tier","typeLabel":"enum\u003cstring> | null"},"modalities":{"oneOf":[{"type":"array","items":{"type":"string","enum":["text","audio"],"uniqueKey":"modalities.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Output types that you would like the model to generate.\nMost models are capable of generating text, which is the default:\n\n`[\"text\"]`\n\nThe `gpt-4o-audio-preview` model can also be used to\n[generate audio](https://developers.openai.com/api/docs/guides/audio). To request that this model generate\nboth text and audio responses, you can use:\n\n`[\"text\", \"audio\"]`\n","uniqueKey":"modalities.oneOf.0","typeLabel":"enum\u003cstring>[]"},{"type":"null","uniqueKey":"modalities.oneOf.1","typeLabel":"null"}],"uniqueKey":"modalities","typeLabel":"enum\u003cstring>[] | null"},"verbosity":{"oneOf":[{"type":"string","description":"Constrains the verbosity of the model's response. Lower values will result in\nmore concise responses, while higher values will result in more verbose responses.\nCurrently supported values are `low`, `medium`, and `high`. The default is\n`medium`.\n","default":"medium","enum":["low","medium","high"],"uniqueKey":"verbosity.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"verbosity.oneOf.1","typeLabel":"null"}],"uniqueKey":"verbosity","typeLabel":"enum\u003cstring> | null"},"reasoning_effort":{"oneOf":[{"type":"string","description":"Constrains effort on reasoning for reasoning models. Currently supported\nvalues are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`.\nReducing reasoning effort can result in faster responses and fewer tokens\nused on reasoning in a response. Not all reasoning models support every\nvalue. See the\n[reasoning guide](https://developers.openai.com/api/docs/guides/reasoning)\nfor model-specific support.\n","default":"medium","enum":["none","minimal","low","medium","high","xhigh","max"],"uniqueKey":"reasoning_effort.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"reasoning_effort.oneOf.1","typeLabel":"null"}],"uniqueKey":"reasoning_effort","typeLabel":"enum\u003cstring> | null"},"max_completion_tokens":{"oneOf":[{"description":"An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and [reasoning tokens](https://developers.openai.com/api/docs/guides/reasoning).\n","type":"integer","uniqueKey":"max_completion_tokens.oneOf.0","typeLabel":"integer"},{"description":"An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and [reasoning tokens](https://developers.openai.com/api/docs/guides/reasoning).\n","type":"null","uniqueKey":"max_completion_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"max_completion_tokens","typeLabel":"integer | null"},"frequency_penalty":{"oneOf":[{"type":"number","default":0,"minimum":-2,"maximum":2,"description":"Number between -2.0 and 2.0. Positive values penalize new tokens based on\ntheir existing frequency in the text so far, decreasing the model's\nlikelihood to repeat the same line verbatim.\n","uniqueKey":"frequency_penalty.oneOf.0","typeLabel":"number"},{"type":"null","default":0,"minimum":-2,"maximum":2,"description":"Number between -2.0 and 2.0. Positive values penalize new tokens based on\ntheir existing frequency in the text so far, decreasing the model's\nlikelihood to repeat the same line verbatim.\n","uniqueKey":"frequency_penalty.oneOf.1","typeLabel":"null"}],"uniqueKey":"frequency_penalty","typeLabel":"number | null"},"presence_penalty":{"oneOf":[{"type":"number","default":0,"minimum":-2,"maximum":2,"description":"Number between -2.0 and 2.0. Positive values penalize new tokens based on\nwhether they appear in the text so far, increasing the model's likelihood\nto talk about new topics.\n","uniqueKey":"presence_penalty.oneOf.0","typeLabel":"number"},{"type":"null","default":0,"minimum":-2,"maximum":2,"description":"Number between -2.0 and 2.0. Positive values penalize new tokens based on\nwhether they appear in the text so far, increasing the model's likelihood\nto talk about new topics.\n","uniqueKey":"presence_penalty.oneOf.1","typeLabel":"null"}],"uniqueKey":"presence_penalty","typeLabel":"number | null"},"web_search_options":{"type":"object","title":"Web search","description":"This tool searches the web for relevant results to use in a response.\nLearn more about the [web search tool](https://developers.openai.com/api/docs/guides/tools-web-search).\n","properties":{"user_location":{"oneOf":[{"type":"object","required":["type","approximate"],"description":"Approximate location parameters for the search.\n","properties":{"type":{"type":"string","description":"The type of location approximation. Always `approximate`.\n","const":"approximate","isRequired":true,"uniqueKey":"web_search_options.user_location.oneOf.0.type","typeLabel":"string"},"approximate":{"type":"object","title":"Web search location","description":"Approximate location parameters for the search.","properties":{"country":{"type":"string","description":"The two-letter \n[ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user,\ne.g. `US`.\n","uniqueKey":"web_search_options.user_location.oneOf.0.approximate.country","typeLabel":"string"},"region":{"type":"string","description":"Free text input for the region of the user, e.g. `California`.\n","uniqueKey":"web_search_options.user_location.oneOf.0.approximate.region","typeLabel":"string"},"city":{"type":"string","description":"Free text input for the city of the user, e.g. `San Francisco`.\n","uniqueKey":"web_search_options.user_location.oneOf.0.approximate.city","typeLabel":"string"},"timezone":{"type":"string","description":"The [IANA timezone](https://timeapi.io/documentation/iana-timezones) \nof the user, e.g. `America/Los_Angeles`.\n","uniqueKey":"web_search_options.user_location.oneOf.0.approximate.timezone","typeLabel":"string"}},"isRequired":true,"uniqueKey":"web_search_options.user_location.oneOf.0.approximate","typeLabel":"Web search location · object"}},"uniqueKey":"web_search_options.user_location.oneOf.0","typeLabel":"object"},{"type":"null","required":["type","approximate"],"description":"Approximate location parameters for the search.\n","properties":{"type":{"type":"string","description":"The type of location approximation. Always `approximate`.\n","const":"approximate"},"approximate":{"type":"object","title":"Web search location","description":"Approximate location parameters for the search.","properties":{"country":{"type":"string","description":"The two-letter \n[ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user,\ne.g. `US`.\n"},"region":{"type":"string","description":"Free text input for the region of the user, e.g. `California`.\n"},"city":{"type":"string","description":"Free text input for the city of the user, e.g. `San Francisco`.\n"},"timezone":{"type":"string","description":"The [IANA timezone](https://timeapi.io/documentation/iana-timezones) \nof the user, e.g. `America/Los_Angeles`.\n"}}}},"uniqueKey":"web_search_options.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"web_search_options.user_location","typeLabel":"object | null"},"search_context_size":{"type":"string","description":"High level guidance for the amount of context window space to use for the \nsearch. One of `low`, `medium`, or `high`. `medium` is the default.\n","enum":["low","medium","high"],"default":"medium","uniqueKey":"web_search_options.search_context_size","typeLabel":"enum\u003cstring>"}},"uniqueKey":"web_search_options","typeLabel":"Web search · object"},"response_format":{"oneOf":[{"type":"object","title":"Text","description":"An object specifying the format that the model must output.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables\nStructured Outputs which ensures the model will match your supplied JSON\nschema. Learn more in the [Structured Outputs\nguide](https://developers.openai.com/api/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.\n","required":["type"],"properties":{"type":{"type":"string","description":"The type of response format being defined. Always `text`.","const":"text","isRequired":true,"uniqueKey":"response_format.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"response_format.oneOf.0","typeLabel":"Text · object"},{"type":"object","title":"JSON schema","description":"An object specifying the format that the model must output.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables\nStructured Outputs which ensures the model will match your supplied JSON\nschema. Learn more in the [Structured Outputs\nguide](https://developers.openai.com/api/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.\n","required":["type","json_schema"],"properties":{"type":{"type":"string","description":"The type of response format being defined. Always `json_schema`.","const":"json_schema","isRequired":true,"uniqueKey":"response_format.oneOf.1.type","typeLabel":"string"},"json_schema":{"type":"object","title":"JSON schema","description":"Structured Outputs configuration options, including a JSON Schema.\n","properties":{"name":{"type":"string","description":"The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n","isRequired":true,"uniqueKey":"response_format.oneOf.1.json_schema.name","typeLabel":"string"},"description":{"type":"string","description":"A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n","uniqueKey":"response_format.oneOf.1.json_schema.description","typeLabel":"string"},"schema":{"type":"object","title":"JSON schema","description":"The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n","additionalProperties":true,"uniqueKey":"response_format.oneOf.1.json_schema.schema","typeLabel":"JSON schema · object"},"strict":{"oneOf":[{"type":"boolean","description":"Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](https://developers.openai.com/api/docs/guides/structured-outputs).\n","default":false,"uniqueKey":"response_format.oneOf.1.json_schema.strict.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"response_format.oneOf.1.json_schema.strict.oneOf.1","typeLabel":"null"}],"uniqueKey":"response_format.oneOf.1.json_schema.strict","typeLabel":"boolean | null"}},"required":["name"],"isRequired":true,"uniqueKey":"response_format.oneOf.1.json_schema","typeLabel":"JSON schema · object"}},"uniqueKey":"response_format.oneOf.1","typeLabel":"JSON schema · object"},{"type":"object","title":"JSON object","description":"An object specifying the format that the model must output.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables\nStructured Outputs which ensures the model will match your supplied JSON\nschema. Learn more in the [Structured Outputs\nguide](https://developers.openai.com/api/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.\n","required":["type"],"properties":{"type":{"type":"string","description":"The type of response format being defined. Always `json_object`.","const":"json_object","isRequired":true,"uniqueKey":"response_format.oneOf.2.type","typeLabel":"string"}},"uniqueKey":"response_format.oneOf.2","typeLabel":"JSON object · object"}],"uniqueKey":"response_format","typeLabel":"Text · object | JSON schema · object | JSON object · object"},"audio":{"oneOf":[{"type":"object","description":"Parameters for audio output. Required when audio output is requested with\n`modalities: [\"audio\"]`. [Learn more](https://developers.openai.com/api/docs/guides/audio).\n","required":["voice","format"],"properties":{"voice":{"oneOf":[{"type":"string","title":"Voice","description":"The voice the model uses to respond. Supported built-in voices are\n`alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `nova`, `onyx`,\n`sage`, `shimmer`, `marin`, and `cedar`. You may also provide a\ncustom voice object with an `id`, for example `{ \"id\": \"voice_1234\" }`.\nCustom voices must be created from audio samples. Voices created from text\nprompts are supported only in Live.\n","example":"ash","isRequired":true,"uniqueKey":"audio.oneOf.0.voice.oneOf.0","typeLabel":"string"},{"type":"string","title":"Voice","description":"The voice the model uses to respond. Supported built-in voices are\n`alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `nova`, `onyx`,\n`sage`, `shimmer`, `marin`, and `cedar`. You may also provide a\ncustom voice object with an `id`, for example `{ \"id\": \"voice_1234\" }`.\nCustom voices must be created from audio samples. Voices created from text\nprompts are supported only in Live.\n","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"],"example":"ash","isRequired":true,"uniqueKey":"audio.oneOf.0.voice.oneOf.1","typeLabel":"enum\u003cstring>"},{"type":"object","title":"Voice","description":"Custom voice reference.","required":["id"],"properties":{"id":{"type":"string","description":"The custom voice ID, e.g. `voice_1234`.","example":"voice_1234","isRequired":true,"uniqueKey":"audio.oneOf.0.voice.oneOf.2.id","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"audio.oneOf.0.voice.oneOf.2","typeLabel":"Voice · object"}],"isRequired":true,"uniqueKey":"audio.oneOf.0.voice","typeLabel":"string | enum\u003cstring> | Voice · object"},"format":{"type":"string","enum":["wav","aac","mp3","flac","opus","pcm16"],"description":"Specifies the output audio format. Must be one of `wav`, `mp3`, `flac`,\n`opus`, or `pcm16`.\n","isRequired":true,"uniqueKey":"audio.oneOf.0.format","typeLabel":"enum\u003cstring>"}},"uniqueKey":"audio.oneOf.0","typeLabel":"object"},{"type":"null","description":"Parameters for audio output. Required when audio output is requested with\n`modalities: [\"audio\"]`. [Learn more](https://developers.openai.com/api/docs/guides/audio).\n","required":["voice","format"],"properties":{"voice":{"oneOf":[{"type":"string","title":"Voice","description":"The voice the model uses to respond. Supported built-in voices are\n`alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `nova`, `onyx`,\n`sage`, `shimmer`, `marin`, and `cedar`. You may also provide a\ncustom voice object with an `id`, for example `{ \"id\": \"voice_1234\" }`.\nCustom voices must be created from audio samples. Voices created from text\nprompts are supported only in Live.\n","example":"ash"},{"type":"string","title":"Voice","description":"The voice the model uses to respond. Supported built-in voices are\n`alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `nova`, `onyx`,\n`sage`, `shimmer`, `marin`, and `cedar`. You may also provide a\ncustom voice object with an `id`, for example `{ \"id\": \"voice_1234\" }`.\nCustom voices must be created from audio samples. Voices created from text\nprompts are supported only in Live.\n","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"],"example":"ash"},{"type":"object","title":"Voice","description":"Custom voice reference.","required":["id"],"properties":{"id":{"type":"string","description":"The custom voice ID, e.g. `voice_1234`.","example":"voice_1234"}},"additionalProperties":false}]},"format":{"type":"string","enum":["wav","aac","mp3","flac","opus","pcm16"],"description":"Specifies the output audio format. Must be one of `wav`, `mp3`, `flac`,\n`opus`, or `pcm16`.\n"}},"uniqueKey":"audio.oneOf.1","typeLabel":"null"}],"uniqueKey":"audio","typeLabel":"object | null"},"store":{"oneOf":[{"type":"boolean","default":false,"description":"Whether or not to store the output of this chat completion request for\nuse in our [model distillation](https://developers.openai.com/api/docs/guides/supervised-fine-tuning#distilling-from-a-larger-model) or\n[evals](https://developers.openai.com/api/docs/guides/evals) products.\n\nSupports text and image inputs. Note: image inputs over 8MB will be dropped.\n","uniqueKey":"store.oneOf.0","typeLabel":"boolean"},{"type":"null","default":false,"description":"Whether or not to store the output of this chat completion request for\nuse in our [model distillation](https://developers.openai.com/api/docs/guides/supervised-fine-tuning#distilling-from-a-larger-model) or\n[evals](https://developers.openai.com/api/docs/guides/evals) products.\n\nSupports text and image inputs. Note: image inputs over 8MB will be dropped.\n","uniqueKey":"store.oneOf.1","typeLabel":"null"}],"uniqueKey":"store","typeLabel":"boolean | null"},"moderation":{"oneOf":[{"type":"object","description":"Configuration for running moderation on the request input and generated output.\n","required":["model"],"properties":{"model":{"type":"string","description":"The moderation model to use for moderated completions, e.g. 'omni-moderation-latest'.","isRequired":true,"uniqueKey":"moderation.oneOf.0.model","typeLabel":"string"},"policy":{"oneOf":[{"type":"object","description":"The policy to apply to moderated response input and output.","required":[],"properties":{"input":{"oneOf":[{"type":"object","description":"The moderation policy for the response input.","required":["mode"],"properties":{"mode":{"type":"string","enum":["score","block"],"isRequired":true,"uniqueKey":"moderation.oneOf.0.policy.oneOf.0.input.oneOf.0.mode","typeLabel":"enum\u003cstring>"}},"uniqueKey":"moderation.oneOf.0.policy.oneOf.0.input.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"moderation.oneOf.0.policy.oneOf.0.input.oneOf.1","typeLabel":"null"}],"uniqueKey":"moderation.oneOf.0.policy.oneOf.0.input","typeLabel":"object | null"},"output":{"oneOf":[{"type":"object","description":"The moderation policy for the response output.","required":["mode"],"properties":{"mode":{"type":"string","enum":["score","block"],"isRequired":true,"uniqueKey":"moderation.oneOf.0.policy.oneOf.0.output.oneOf.0.mode","typeLabel":"enum\u003cstring>"}},"uniqueKey":"moderation.oneOf.0.policy.oneOf.0.output.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"moderation.oneOf.0.policy.oneOf.0.output.oneOf.1","typeLabel":"null"}],"uniqueKey":"moderation.oneOf.0.policy.oneOf.0.output","typeLabel":"object | null"}},"uniqueKey":"moderation.oneOf.0.policy.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"moderation.oneOf.0.policy.oneOf.1","typeLabel":"null"}],"uniqueKey":"moderation.oneOf.0.policy","typeLabel":"object | null"}},"uniqueKey":"moderation.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"moderation.oneOf.1","typeLabel":"null"}],"uniqueKey":"moderation","typeLabel":"object | null"},"stream":{"oneOf":[{"description":"If set to true, the model response data will be streamed to the client\nas it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).\nSee the [Streaming section below](https://developers.openai.com/api/reference/resources/chat/subresources/completions/streaming-events)\nfor more information, along with the [streaming responses](https://developers.openai.com/api/docs/guides/streaming-responses)\nguide for more information on how to handle the streaming events.\n","type":"boolean","default":false,"uniqueKey":"stream.oneOf.0","typeLabel":"boolean"},{"description":"If set to true, the model response data will be streamed to the client\nas it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).\nSee the [Streaming section below](https://developers.openai.com/api/reference/resources/chat/subresources/completions/streaming-events)\nfor more information, along with the [streaming responses](https://developers.openai.com/api/docs/guides/streaming-responses)\nguide for more information on how to handle the streaming events.\n","type":"null","default":false,"uniqueKey":"stream.oneOf.1","typeLabel":"null"}],"uniqueKey":"stream","typeLabel":"boolean | null"},"stop":{"oneOf":[{"type":"string","description":"Not supported with latest reasoning models `o3` and `o4-mini`.\n\nUp to 4 sequences where the API will stop generating further tokens. The\nreturned text will not contain the stop sequence.\n","default":"\u003c|endoftext|>","example":"\n","uniqueKey":"stop.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","example":"[\"\\n\"]","uniqueKey":"stop.oneOf.1.items.[INDEX]","typeLabel":"string"},"description":"Not supported with latest reasoning models `o3` and `o4-mini`.\n\nUp to 4 sequences where the API will stop generating further tokens. The\nreturned text will not contain the stop sequence.\n","maxItems":4,"minItems":1,"uniqueKey":"stop.oneOf.1","typeLabel":"string[]"},{"type":"null","description":"Not supported with latest reasoning models `o3` and `o4-mini`.\n\nUp to 4 sequences where the API will stop generating further tokens. The\nreturned text will not contain the stop sequence.\n","uniqueKey":"stop.oneOf.2","typeLabel":"null"}],"uniqueKey":"stop","typeLabel":"string | string[] | null"},"logit_bias":{"oneOf":[{"type":"object","default":null,"additionalProperties":{"type":"integer","uniqueKey":"logit_bias.oneOf.0.additionalProperties","typeLabel":"integer"},"description":"Modify the likelihood of specified tokens appearing in the completion.\n\nAccepts a JSON object that maps tokens (specified by their token ID in the\ntokenizer) to an associated bias value from -100 to 100. Mathematically,\nthe bias is added to the logits generated by the model prior to sampling.\nThe exact effect will vary per model, but values between -1 and 1 should\ndecrease or increase likelihood of selection; values like -100 or 100\nshould result in a ban or exclusive selection of the relevant token.\n","uniqueKey":"logit_bias.oneOf.0","typeLabel":"object"},{"type":"null","default":null,"additionalProperties":{"type":"integer","uniqueKey":"logit_bias.oneOf.1.additionalProperties","typeLabel":"integer"},"description":"Modify the likelihood of specified tokens appearing in the completion.\n\nAccepts a JSON object that maps tokens (specified by their token ID in the\ntokenizer) to an associated bias value from -100 to 100. Mathematically,\nthe bias is added to the logits generated by the model prior to sampling.\nThe exact effect will vary per model, but values between -1 and 1 should\ndecrease or increase likelihood of selection; values like -100 or 100\nshould result in a ban or exclusive selection of the relevant token.\n","uniqueKey":"logit_bias.oneOf.1","typeLabel":"null"}],"uniqueKey":"logit_bias","typeLabel":"object | null"},"logprobs":{"oneOf":[{"description":"Whether to return log probabilities of the output tokens or not. If true,\nreturns the log probabilities of each output token returned in the\n`content` of `message`.\n","type":"boolean","default":false,"uniqueKey":"logprobs.oneOf.0","typeLabel":"boolean"},{"description":"Whether to return log probabilities of the output tokens or not. If true,\nreturns the log probabilities of each output token returned in the\n`content` of `message`.\n","type":"null","default":false,"uniqueKey":"logprobs.oneOf.1","typeLabel":"null"}],"uniqueKey":"logprobs","typeLabel":"boolean | null"},"max_tokens":{"oneOf":[{"description":"The maximum number of [tokens](https://platform.openai.com/tokenizer) that can be generated in the\nchat completion. This value can be used to control\n[costs](https://openai.com/api/pricing/) for text generated via API.\n\nThis value is now deprecated in favor of `max_completion_tokens`, and is\nnot compatible with [o-series models](https://developers.openai.com/api/docs/guides/reasoning).\n","type":"integer","deprecated":true,"uniqueKey":"max_tokens.oneOf.0","typeLabel":"integer"},{"description":"The maximum number of [tokens](https://platform.openai.com/tokenizer) that can be generated in the\nchat completion. This value can be used to control\n[costs](https://openai.com/api/pricing/) for text generated via API.\n\nThis value is now deprecated in favor of `max_completion_tokens`, and is\nnot compatible with [o-series models](https://developers.openai.com/api/docs/guides/reasoning).\n","type":"null","deprecated":true,"uniqueKey":"max_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"max_tokens","typeLabel":"integer | null"},"n":{"oneOf":[{"type":"integer","minimum":1,"maximum":128,"default":1,"example":1,"description":"How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep `n` as `1` to minimize costs.","uniqueKey":"n.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"maximum":128,"default":1,"example":1,"description":"How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep `n` as `1` to minimize costs.","uniqueKey":"n.oneOf.1","typeLabel":"null"}],"uniqueKey":"n","typeLabel":"integer | null"},"prediction":{"oneOf":[{"type":"object","title":"Static Content","description":"Configuration for a [Predicted Output](https://developers.openai.com/api/docs/guides/predicted-outputs),\nwhich can greatly improve response times when large parts of the model\nresponse are known ahead of time. This is most common when you are\nregenerating a file with only minor changes to most of the content.\n","required":["type","content"],"properties":{"type":{"type":"string","enum":["content"],"description":"The type of the predicted content you want to provide. This type is\ncurrently always `content`.\n","isRequired":true,"uniqueKey":"prediction.oneOf.0.type","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","title":"Text content","description":"The content that should be matched when generating a model response.\nIf generated tokens would match this content, the entire model response\ncan be returned much more quickly.\n","isRequired":true,"uniqueKey":"prediction.oneOf.0.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","title":"Text content part","description":"Learn about [text inputs](https://developers.openai.com/api/docs/guides/text).\n","properties":{"type":{"type":"string","const":"text","description":"The type of the content part.","isRequired":true,"uniqueKey":"prediction.oneOf.0.content.oneOf.1.items.[INDEX].type","typeLabel":"string"},"text":{"type":"string","description":"The text content.","isRequired":true,"uniqueKey":"prediction.oneOf.0.content.oneOf.1.items.[INDEX].text","typeLabel":"string"},"prompt_cache_breakpoint":{"properties":{"mode":{"type":"string","enum":["explicit"],"description":"The breakpoint mode. Always `explicit`.","default":"explicit","isRequired":true,"uniqueKey":"prediction.oneOf.0.content.oneOf.1.items.[INDEX].prompt_cache_breakpoint.mode","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["30m","12h"],"description":"The minimum lifetime of this cache breakpoint. Defaults to the request TTL.","uniqueKey":"prediction.oneOf.0.content.oneOf.1.items.[INDEX].prompt_cache_breakpoint.ttl","typeLabel":"enum\u003cstring>"}},"type":"object","required":["mode"],"title":"Prompt cache breakpoint","description":"Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.","uniqueKey":"prediction.oneOf.0.content.oneOf.1.items.[INDEX].prompt_cache_breakpoint","typeLabel":"Prompt cache breakpoint · object"}},"required":["type","text"],"uniqueKey":"prediction.oneOf.0.content.oneOf.1.items.[INDEX]","typeLabel":"Text content part · object"},"title":"Array of content parts","description":"The content that should be matched when generating a model response.\nIf generated tokens would match this content, the entire model response\ncan be returned much more quickly.\n","minItems":1,"isRequired":true,"uniqueKey":"prediction.oneOf.0.content.oneOf.1","typeLabel":"Text content part · object[]"}],"isRequired":true,"uniqueKey":"prediction.oneOf.0.content","typeLabel":"string | Text content part · object[]"}},"uniqueKey":"prediction.oneOf.0","typeLabel":"Static Content · object"},{"type":"null","description":"Configuration for a [Predicted Output](https://developers.openai.com/api/docs/guides/predicted-outputs),\nwhich can greatly improve response times when large parts of the model\nresponse are known ahead of time. This is most common when you are\nregenerating a file with only minor changes to most of the content.\n","uniqueKey":"prediction.oneOf.1","typeLabel":"null"}],"uniqueKey":"prediction","typeLabel":"Static Content · object | null"},"seed":{"oneOf":[{"type":"integer","format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000,"deprecated":true,"description":"This feature is in Beta.\nIf specified, our system will make a best effort to sample deterministically, such that repeated requests with the same `seed` and parameters should return the same result.\nDeterminism is not guaranteed, and you should refer to the `system_fingerprint` response parameter to monitor changes in the backend.\n","uniqueKey":"seed.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000,"deprecated":true,"description":"This feature is in Beta.\nIf specified, our system will make a best effort to sample deterministically, such that repeated requests with the same `seed` and parameters should return the same result.\nDeterminism is not guaranteed, and you should refer to the `system_fingerprint` response parameter to monitor changes in the backend.\n","uniqueKey":"seed.oneOf.1","typeLabel":"null"}],"uniqueKey":"seed","typeLabel":"integer\u003cint64> | null"},"stream_options":{"oneOf":[{"type":"object","description":"Options for streaming response. Only set this when you set `stream: true`.\n","properties":{"include_usage":{"type":"boolean","description":"If set, an additional chunk will be streamed before the `data: [DONE]`\nmessage. The `usage` field on this chunk shows the token usage statistics\nfor the entire request, and the `choices` field will always be an empty\narray.\n\nAll other chunks will also include a `usage` field, but with a null\nvalue. **NOTE:** If the stream is interrupted, you may not receive the\nfinal usage chunk which contains the total token usage for the request.\n","uniqueKey":"stream_options.oneOf.0.include_usage","typeLabel":"boolean"},"include_obfuscation":{"type":"boolean","description":"When true, stream obfuscation will be enabled. Stream obfuscation adds\nrandom characters to an `obfuscation` field on streaming delta events to\nnormalize payload sizes as a mitigation to certain side-channel attacks.\nThese obfuscation fields are included by default, but add a small amount\nof overhead to the data stream. You can set `include_obfuscation` to\nfalse to optimize for bandwidth if you trust the network links between\nyour application and the OpenAI API.\n","uniqueKey":"stream_options.oneOf.0.include_obfuscation","typeLabel":"boolean"}},"uniqueKey":"stream_options.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"stream_options.oneOf.1","typeLabel":"null"}],"uniqueKey":"stream_options","typeLabel":"object | null"},"tools":{"type":"array","description":"A list of tools the model may call. You can provide either\n[custom tools](https://developers.openai.com/api/docs/guides/function-calling#custom-tools) or\n[function tools](https://developers.openai.com/api/docs/guides/function-calling).\n","items":{"oneOf":[{"type":"object","title":"Function tool","description":"A function tool that can be used to generate a response.\n","required":["type","function"],"properties":{"type":{"type":"string","const":"function","description":"The type of the tool. Currently, only `function` is supported.","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.0.type","typeLabel":"string"},"function":{"type":"object","properties":{"name":{"type":"string","description":"The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.0.function.name","typeLabel":"string"},"description":{"type":"string","description":"A description of what the function does, used by the model to choose when and how to call the function.","uniqueKey":"tools.items.[INDEX].oneOf.0.function.description","typeLabel":"string"},"parameters":{"type":"object","description":"The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://developers.openai.com/api/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.\n\nOmitting `parameters` defines a function with an empty parameter list.","additionalProperties":true,"uniqueKey":"tools.items.[INDEX].oneOf.0.function.parameters","typeLabel":"object"},"strict":{"oneOf":[{"type":"boolean","description":"Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](https://developers.openai.com/api/docs/guides/function-calling).","default":false,"uniqueKey":"tools.items.[INDEX].oneOf.0.function.strict.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.0.function.strict.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.0.function.strict","typeLabel":"boolean | null"}},"required":["name"],"isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.0.function","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.0","typeLabel":"Function tool · object"},{"type":"object","title":"Custom tool","description":"A custom tool that processes input using a specified format.\n","required":["type","custom"],"properties":{"type":{"type":"string","const":"custom","description":"The type of the custom tool. Always `custom`.","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.1.type","typeLabel":"string"},"custom":{"type":"object","title":"Custom tool properties","description":"Properties of the custom tool.\n","properties":{"name":{"type":"string","description":"The name of the custom tool, used to identify it in tool calls.","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.1.custom.name","typeLabel":"string"},"description":{"type":"string","description":"Optional description of the custom tool, used to provide more context.\n","uniqueKey":"tools.items.[INDEX].oneOf.1.custom.description","typeLabel":"string"},"format":{"oneOf":[{"type":"object","title":"Text format","description":"The input format for the custom tool. Default is unconstrained text.\n","required":["type"],"properties":{"type":{"type":"string","enum":["text"],"description":"Unconstrained text format. Always `text`.","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.1.custom.format.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"tools.items.[INDEX].oneOf.1.custom.format.oneOf.0","typeLabel":"Text format · object"},{"type":"object","title":"Grammar format","description":"The input format for the custom tool. Default is unconstrained text.\n","required":["type","grammar"],"properties":{"type":{"type":"string","enum":["grammar"],"description":"Grammar format. Always `grammar`.","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.1.custom.format.oneOf.1.type","typeLabel":"enum\u003cstring>"},"grammar":{"type":"object","title":"Grammar format","description":"Your chosen grammar.","properties":{"definition":{"type":"string","description":"The grammar definition.","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.1.custom.format.oneOf.1.grammar.definition","typeLabel":"string"},"syntax":{"type":"string","description":"The syntax of the grammar definition. One of `lark` or `regex`.","enum":["lark","regex"],"isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.1.custom.format.oneOf.1.grammar.syntax","typeLabel":"enum\u003cstring>"}},"required":["definition","syntax"],"isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.1.custom.format.oneOf.1.grammar","typeLabel":"Grammar format · object"}},"additionalProperties":false,"uniqueKey":"tools.items.[INDEX].oneOf.1.custom.format.oneOf.1","typeLabel":"Grammar format · object"}],"uniqueKey":"tools.items.[INDEX].oneOf.1.custom.format","typeLabel":"Text format · object | Grammar format · object"}},"required":["name"],"isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.1.custom","typeLabel":"Custom tool properties · object"}},"uniqueKey":"tools.items.[INDEX].oneOf.1","typeLabel":"Custom tool · object"}],"uniqueKey":"tools.items.[INDEX]","typeLabel":"Function tool · object | Custom tool · object"},"uniqueKey":"tools","typeLabel":"(Function tool · object | Custom tool · object)[]"},"tool_choice":{"oneOf":[{"type":"string","title":"Tool choice mode","description":"Controls which (if any) tool is called by the model.\n`none` means the model will not call any tool and instead generates a message.\n`auto` means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools.\nSpecifying a particular tool via `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n\n`none` is the default when no tools are present. `auto` is the default if tools are present.\n","enum":["none","auto","required"],"uniqueKey":"tool_choice.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"object","title":"Allowed tools","description":"Controls which (if any) tool is called by the model.\n`none` means the model will not call any tool and instead generates a message.\n`auto` means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools.\nSpecifying a particular tool via `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n\n`none` is the default when no tools are present. `auto` is the default if tools are present.\n","required":["type","allowed_tools"],"properties":{"type":{"type":"string","const":"allowed_tools","description":"Allowed tool configuration type. Always `allowed_tools`.","isRequired":true,"uniqueKey":"tool_choice.oneOf.1.type","typeLabel":"string"},"allowed_tools":{"type":"object","title":"Allowed tools","description":"Constrains the tools available to the model to a pre-defined set.\n","properties":{"mode":{"type":"string","enum":["auto","required"],"description":"Constrains the tools available to the model to a pre-defined set.\n\n`auto` allows the model to pick from among the allowed tools and generate a\nmessage.\n\n`required` requires the model to call one or more of the allowed tools.\n","isRequired":true,"uniqueKey":"tool_choice.oneOf.1.allowed_tools.mode","typeLabel":"enum\u003cstring>"},"tools":{"type":"array","description":"A list of tool definitions that the model should be allowed to call.\n\nFor the Chat Completions API, the list of tool definitions might look like:\n```json\n[\n { \"type\": \"function\", \"function\": { \"name\": \"get_weather\" } },\n { \"type\": \"function\", \"function\": { \"name\": \"get_time\" } }\n]\n```\n","items":{"type":"object","description":"A tool definition that the model should be allowed to call.\n","additionalProperties":true,"uniqueKey":"tool_choice.oneOf.1.allowed_tools.tools.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"tool_choice.oneOf.1.allowed_tools.tools","typeLabel":"object[]"}},"required":["mode","tools"],"isRequired":true,"uniqueKey":"tool_choice.oneOf.1.allowed_tools","typeLabel":"Allowed tools · object"}},"uniqueKey":"tool_choice.oneOf.1","typeLabel":"Allowed tools · object"},{"type":"object","title":"Function tool choice","description":"Controls which (if any) tool is called by the model.\n`none` means the model will not call any tool and instead generates a message.\n`auto` means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools.\nSpecifying a particular tool via `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n\n`none` is the default when no tools are present. `auto` is the default if tools are present.\n","required":["type","function"],"properties":{"type":{"type":"string","const":"function","description":"For function calling, the type is always `function`.","isRequired":true,"uniqueKey":"tool_choice.oneOf.2.type","typeLabel":"string"},"function":{"type":"object","properties":{"name":{"type":"string","description":"The name of the function to call.","isRequired":true,"uniqueKey":"tool_choice.oneOf.2.function.name","typeLabel":"string"}},"required":["name"],"isRequired":true,"uniqueKey":"tool_choice.oneOf.2.function","typeLabel":"object"}},"uniqueKey":"tool_choice.oneOf.2","typeLabel":"Function tool choice · object"},{"type":"object","title":"Custom tool choice","description":"Controls which (if any) tool is called by the model.\n`none` means the model will not call any tool and instead generates a message.\n`auto` means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools.\nSpecifying a particular tool via `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n\n`none` is the default when no tools are present. `auto` is the default if tools are present.\n","required":["type","custom"],"properties":{"type":{"type":"string","const":"custom","description":"For custom tool calling, the type is always `custom`.","isRequired":true,"uniqueKey":"tool_choice.oneOf.3.type","typeLabel":"string"},"custom":{"type":"object","properties":{"name":{"type":"string","description":"The name of the custom tool to call.","isRequired":true,"uniqueKey":"tool_choice.oneOf.3.custom.name","typeLabel":"string"}},"required":["name"],"isRequired":true,"uniqueKey":"tool_choice.oneOf.3.custom","typeLabel":"object"}},"uniqueKey":"tool_choice.oneOf.3","typeLabel":"Custom tool choice · object"}],"uniqueKey":"tool_choice","typeLabel":"enum\u003cstring> | Allowed tools · object | Function tool choice · object | Custom tool choice · object"},"parallel_tool_calls":{"description":"Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use.","type":"boolean","default":true,"uniqueKey":"parallel_tool_calls","typeLabel":"boolean"},"function_call":{"oneOf":[{"type":"string","description":"Deprecated in favor of `tool_choice`.\n\nControls which (if any) function is called by the model.\n\n`none` means the model will not call a function and instead generates a\nmessage.\n\n`auto` means the model can pick between generating a message or calling a\nfunction.\n\nSpecifying a particular function via `{\"name\": \"my_function\"}` forces the\nmodel to call that function.\n\n`none` is the default when no functions are present. `auto` is the default\nif functions are present.\n","enum":["none","auto"],"deprecated":true,"uniqueKey":"function_call.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"object","description":"Deprecated in favor of `tool_choice`.\n\nControls which (if any) function is called by the model.\n\n`none` means the model will not call a function and instead generates a\nmessage.\n\n`auto` means the model can pick between generating a message or calling a\nfunction.\n\nSpecifying a particular function via `{\"name\": \"my_function\"}` forces the\nmodel to call that function.\n\n`none` is the default when no functions are present. `auto` is the default\nif functions are present.\n","required":["name"],"deprecated":true,"properties":{"name":{"type":"string","description":"The name of the function to call.","isRequired":true,"uniqueKey":"function_call.oneOf.1.name","typeLabel":"string"}},"uniqueKey":"function_call.oneOf.1","typeLabel":"object"}],"uniqueKey":"function_call","typeLabel":"enum\u003cstring> | object"},"functions":{"deprecated":true,"description":"Deprecated in favor of `tools`.\n\nA list of functions the model may generate JSON inputs for.\n","type":"array","minItems":1,"maxItems":128,"items":{"type":"object","deprecated":true,"properties":{"name":{"type":"string","description":"The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.","isRequired":true,"uniqueKey":"functions.items.[INDEX].name","typeLabel":"string"},"description":{"type":"string","description":"A description of what the function does, used by the model to choose when and how to call the function.","uniqueKey":"functions.items.[INDEX].description","typeLabel":"string"},"parameters":{"type":"object","description":"The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://developers.openai.com/api/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.\n\nOmitting `parameters` defines a function with an empty parameter list.","additionalProperties":true,"uniqueKey":"functions.items.[INDEX].parameters","typeLabel":"object"}},"required":["name"],"uniqueKey":"functions.items.[INDEX]","typeLabel":"object"},"uniqueKey":"functions","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Basic chat":{"title":"Basic chat","summary":"Basic chat","description":"A system prompt and one user message.","value":{"model":"gpt-6.2-sol","messages":[{"role":"system","content":"You are a concise, professional assistant."},{"role":"user","content":"Explain quantum computing in three sentences."}]}},"Streaming":{"title":"Streaming","summary":"Streaming","description":"With `stream: true` the answer arrives as SSE chunks ending with `data: [DONE]`; `stream_options.include_usage` adds usage to the last chunk.","value":{"model":"gpt-6.2-sol","stream":true,"stream_options":{"include_usage":true},"messages":[{"role":"user","content":"Write a four-line poem about autumn."}]}},"Multi-turn conversation":{"title":"Multi-turn conversation","summary":"Multi-turn conversation","description":"The API is stateless: send the earlier messages with every request.","value":{"model":"kimi-k3.1-pro","messages":[{"role":"user","content":"Suggest a name for a coffee shop."},{"role":"assistant","content":"How about \"Morning Light Coffee\"?"},{"role":"user","content":"Now add a tagline for that name."}]}},"Image input":{"title":"Image input","summary":"Image input","description":"Pass an image URL or a Base64 data URL in an `image_url` content part.","value":{"model":"gpt-6.1-terra","messages":[{"role":"user","content":[{"type":"text","text":"What is in this image?"},{"type":"image_url","image_url":{"url":"https://your-cdn.example.com/photo.jpg"}}]}]}},"Function calling":{"title":"Function calling","summary":"Function calling","description":"The model returns `tool_calls` when it needs outside data; run the function and send the result back in a `role: tool` message.","value":{"model":"gpt-6.2-sol","messages":[{"role":"user","content":"What's the weather like in Hangzhou today?"}],"tools":[{"type":"function","function":{"name":"get_weather","description":"Get the current weather for a city","parameters":{"type":"object","properties":{"city":{"type":"string","description":"City name, e.g. Hangzhou"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["city"]}}}],"tool_choice":"auto"}},"Structured output":{"title":"Structured output","summary":"Structured output","description":"`response_format` makes the model answer in a JSON Schema.","value":{"model":"gpt-6.2-sol","messages":[{"role":"user","content":"Extract the contact from this sentence: I'm Li Lei from Galaxy Tech, lilei@example.com."}],"response_format":{"type":"json_schema","json_schema":{"name":"contact","strict":true,"schema":{"type":"object","properties":{"name":{"type":"string"},"company":{"type":"string"},"email":{"type":"string"}},"required":["name","company","email"],"additionalProperties":false}}}}},"Reasoning effort":{"title":"Reasoning effort","summary":"Reasoning effort","description":"Reasoning models trade speed for depth with `reasoning_effort`.","value":{"model":"gpt-6.2-sol","reasoning_effort":"high","messages":[{"role":"user","content":"A tank has two inlet pipes and one outlet. Pipe A fills it in 6 hours, pipe B in 8 hours, and the outlet empties it in 12 hours. With all three open, how long does it take to fill?"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"15f93229-84e9-4648-9777-9b1228383f5b":{"description":"Returns a Chat Completion object for a non-streaming request.\n\nIf `stream` is `true`, returns server-sent events (`text/event-stream`).\nSuccessful chunk frames contain a JSON Chat Completion chunk matching\n`CreateChatCompletionStreamResponse`. On normal completion, the final\nframe is:\n\n```text\ndata: [DONE]\n\n```\n\nThe final frame ends with a blank line. `[DONE]` is literal text, not a\nJSON chunk, and this frame has no `event: done` field.\n\nIf a failure occurs after streaming has started, a data frame may\ncontain a JSON object with an `error` field instead of a completion\nchunk. The streaming schema describes successful JSON chunks, not\nerror frames or the completion marker. An interrupted stream may end\nwithout the marker.\n","content":{"application/json":{"schema":{"type":"object","description":"Represents a chat completion response returned by model, based on the provided input.","properties":{"id":{"type":"string","description":"A unique identifier for the chat completion.","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"choices":{"type":"array","description":"A list of chat completion choices. Can be more than one if `n` is greater than 1.","items":{"type":"object","required":["finish_reason","index","message","logprobs"],"properties":{"finish_reason":{"type":"string","description":"The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,\n`length` if the maximum number of tokens specified in the request was reached,\n`content_filter` if content was omitted due to a flag from our content filters,\n`tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.\nRead the [Model Spec](https://model-spec.openai.com/2025-12-18.html) for more.\n","enum":["stop","length","tool_calls","content_filter","function_call"],"isRequired":true,"uniqueKey":"choices.items.[INDEX].finish_reason","typeLabel":"enum\u003cstring>"},"index":{"type":"integer","description":"The index of the choice in the list of choices.","isRequired":true,"uniqueKey":"choices.items.[INDEX].index","typeLabel":"integer"},"message":{"type":"object","description":"A chat completion message generated by the model.","properties":{"content":{"oneOf":[{"type":"string","description":"The contents of the message.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.content.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.content.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"choices.items.[INDEX].message.content","typeLabel":"string | null"},"role":{"type":"string","const":"assistant","description":"The role of the author of this message.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.role","typeLabel":"string"},"refusal":{"oneOf":[{"type":"string","description":"The refusal message generated by the model.","uniqueKey":"choices.items.[INDEX].message.refusal.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"choices.items.[INDEX].message.refusal.oneOf.1","typeLabel":"null"}],"uniqueKey":"choices.items.[INDEX].message.refusal","typeLabel":"string | null"},"tool_calls":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","title":"Function tool call","description":"A call to a function tool created by the model.\n","required":["id","type","function"],"properties":{"id":{"type":"string","description":"The ID of the tool call.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.tool_calls.oneOf.0.items.[INDEX].oneOf.0.id","typeLabel":"string"},"type":{"type":"string","const":"function","description":"The type of the tool. Currently, only `function` is supported.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.tool_calls.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"string"},"function":{"type":"object","description":"The function that the model called.","properties":{"name":{"type":"string","description":"The name of the function to call.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.tool_calls.oneOf.0.items.[INDEX].oneOf.0.function.name","typeLabel":"string"},"arguments":{"type":"string","description":"The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.tool_calls.oneOf.0.items.[INDEX].oneOf.0.function.arguments","typeLabel":"string"}},"required":["name","arguments"],"isRequired":true,"uniqueKey":"choices.items.[INDEX].message.tool_calls.oneOf.0.items.[INDEX].oneOf.0.function","typeLabel":"object"}},"uniqueKey":"choices.items.[INDEX].message.tool_calls.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"Function tool call · object"},{"type":"object","title":"Custom tool call","description":"A call to a custom tool created by the model.\n","required":["id","type","custom"],"properties":{"id":{"type":"string","description":"The ID of the tool call.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.tool_calls.oneOf.0.items.[INDEX].oneOf.1.id","typeLabel":"string"},"type":{"type":"string","const":"custom","description":"The type of the tool. Always `custom`.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.tool_calls.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"string"},"custom":{"type":"object","description":"The custom tool that the model called.","properties":{"name":{"type":"string","description":"The name of the custom tool to call.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.tool_calls.oneOf.0.items.[INDEX].oneOf.1.custom.name","typeLabel":"string"},"input":{"type":"string","description":"The input for the custom tool call generated by the model.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.tool_calls.oneOf.0.items.[INDEX].oneOf.1.custom.input","typeLabel":"string"}},"required":["name","input"],"isRequired":true,"uniqueKey":"choices.items.[INDEX].message.tool_calls.oneOf.0.items.[INDEX].oneOf.1.custom","typeLabel":"object"}},"uniqueKey":"choices.items.[INDEX].message.tool_calls.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"Custom tool call · object"}],"uniqueKey":"choices.items.[INDEX].message.tool_calls.oneOf.0.items.[INDEX]","typeLabel":"Function tool call · object | Custom tool call · object"},"description":"The tool calls generated by the model, such as function calls.","uniqueKey":"choices.items.[INDEX].message.tool_calls.oneOf.0","typeLabel":"(Function tool call · object | Custom tool call · object)[]"},{"type":"null","uniqueKey":"choices.items.[INDEX].message.tool_calls.oneOf.1","typeLabel":"null"}],"uniqueKey":"choices.items.[INDEX].message.tool_calls","typeLabel":"(Function tool call · object | Custom tool call · object)[] | null"},"annotations":{"type":"array","description":"Annotations for the message, when applicable, as when using the\n[web search tool](https://developers.openai.com/api/docs/guides/tools-web-search).\n","items":{"type":"object","description":"A URL citation when using web search.\n","required":["type","url_citation"],"properties":{"type":{"type":"string","description":"The type of the URL citation. Always `url_citation`.","const":"url_citation","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.annotations.items.[INDEX].type","typeLabel":"string"},"url_citation":{"type":"object","description":"A URL citation when using web search.","required":["end_index","start_index","url","title"],"properties":{"end_index":{"type":"integer","description":"The index of the last character of the URL citation in the message.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.annotations.items.[INDEX].url_citation.end_index","typeLabel":"integer"},"start_index":{"type":"integer","description":"The index of the first character of the URL citation in the message.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.annotations.items.[INDEX].url_citation.start_index","typeLabel":"integer"},"url":{"type":"string","format":"uri","description":"The URL of the web resource.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.annotations.items.[INDEX].url_citation.url","typeLabel":"string\u003curi>"},"title":{"type":"string","description":"The title of the web resource.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.annotations.items.[INDEX].url_citation.title","typeLabel":"string"}},"isRequired":true,"uniqueKey":"choices.items.[INDEX].message.annotations.items.[INDEX].url_citation","typeLabel":"object"}},"uniqueKey":"choices.items.[INDEX].message.annotations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"choices.items.[INDEX].message.annotations","typeLabel":"object[]"},"function_call":{"oneOf":[{"type":"object","deprecated":true,"description":"Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model.","properties":{"arguments":{"type":"string","description":"The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.function_call.oneOf.0.arguments","typeLabel":"string"},"name":{"type":"string","description":"The name of the function to call.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.function_call.oneOf.0.name","typeLabel":"string"}},"required":["name","arguments"],"uniqueKey":"choices.items.[INDEX].message.function_call.oneOf.0","typeLabel":"object"},{"type":"null","deprecated":true,"description":"Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model.","properties":{"arguments":{"type":"string","description":"The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function."},"name":{"type":"string","description":"The name of the function to call."}},"required":["name","arguments"],"uniqueKey":"choices.items.[INDEX].message.function_call.oneOf.1","typeLabel":"null"}],"uniqueKey":"choices.items.[INDEX].message.function_call","typeLabel":"object | null"},"audio":{"oneOf":[{"type":"object","description":"If the audio output modality is requested, this object contains data\nabout the audio response from the model. [Learn more](https://developers.openai.com/api/docs/guides/audio).\n","required":["id","expires_at","data","transcript"],"properties":{"id":{"type":"string","description":"Unique identifier for this audio response.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.audio.oneOf.0.id","typeLabel":"string"},"expires_at":{"type":"integer","format":"unixtime","description":"The Unix timestamp (in seconds) for when this audio response will\nno longer be accessible on the server for use in multi-turn\nconversations.\n","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.audio.oneOf.0.expires_at","typeLabel":"integer\u003cunixtime>"},"data":{"type":"string","description":"Base64 encoded audio bytes generated by the model, in the format\nspecified in the request.\n","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.audio.oneOf.0.data","typeLabel":"string"},"transcript":{"type":"string","description":"Transcript of the audio generated by the model.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.audio.oneOf.0.transcript","typeLabel":"string"}},"uniqueKey":"choices.items.[INDEX].message.audio.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"choices.items.[INDEX].message.audio.oneOf.1","typeLabel":"null"}],"uniqueKey":"choices.items.[INDEX].message.audio","typeLabel":"object | null"}},"required":["role","content"],"isRequired":true,"uniqueKey":"choices.items.[INDEX].message","typeLabel":"object"},"logprobs":{"oneOf":[{"type":"object","description":"Log probability information for the choice.","required":["content","refusal"],"properties":{"content":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"token":{"description":"The token.","type":"string","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].token","typeLabel":"string"},"logprob":{"description":"The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.","type":"number","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].logprob","typeLabel":"number"},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer","uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].bytes.oneOf.0.items.[INDEX]","typeLabel":"integer"},"description":"A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].bytes.oneOf.0","typeLabel":"integer[]"},{"type":"null","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].bytes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].bytes","typeLabel":"integer[] | null"},"top_logprobs":{"description":"List of the most likely tokens and their log probability, at this token position. The number of entries may be fewer than the requested `top_logprobs`.","type":"array","items":{"type":"object","properties":{"token":{"description":"The token.","type":"string","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].token","typeLabel":"string"},"logprob":{"description":"The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.","type":"number","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].logprob","typeLabel":"number"},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer","uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].bytes.oneOf.0.items.[INDEX]","typeLabel":"integer"},"description":"A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].bytes.oneOf.0","typeLabel":"integer[]"},{"type":"null","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].bytes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].bytes","typeLabel":"integer[] | null"}},"required":["token","logprob","bytes"],"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].top_logprobs","typeLabel":"object[]"}},"required":["token","logprob","bytes","top_logprobs"],"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"A list of message content tokens with log probability information.","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0","typeLabel":"object[]"},{"type":"null","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content","typeLabel":"object[] | null"},"refusal":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"token":{"description":"The token.","type":"string","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].token","typeLabel":"string"},"logprob":{"description":"The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.","type":"number","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].logprob","typeLabel":"number"},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer","uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].bytes.oneOf.0.items.[INDEX]","typeLabel":"integer"},"description":"A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].bytes.oneOf.0","typeLabel":"integer[]"},{"type":"null","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].bytes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].bytes","typeLabel":"integer[] | null"},"top_logprobs":{"description":"List of the most likely tokens and their log probability, at this token position. The number of entries may be fewer than the requested `top_logprobs`.","type":"array","items":{"type":"object","properties":{"token":{"description":"The token.","type":"string","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].token","typeLabel":"string"},"logprob":{"description":"The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.","type":"number","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].logprob","typeLabel":"number"},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer","uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].bytes.oneOf.0.items.[INDEX]","typeLabel":"integer"},"description":"A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].bytes.oneOf.0","typeLabel":"integer[]"},{"type":"null","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].bytes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].bytes","typeLabel":"integer[] | null"}},"required":["token","logprob","bytes"],"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].top_logprobs","typeLabel":"object[]"}},"required":["token","logprob","bytes","top_logprobs"],"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"A list of message refusal tokens with log probability information.","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0","typeLabel":"object[]"},{"type":"null","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal","typeLabel":"object[] | null"}},"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs","typeLabel":"object | null"}},"uniqueKey":"choices.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"choices","typeLabel":"object[]"},"created":{"type":"integer","format":"unixtime","description":"The Unix timestamp (in seconds) of when the chat completion was created.","isRequired":true,"uniqueKey":"created","typeLabel":"integer\u003cunixtime>"},"model":{"type":"string","description":"The model used for the chat completion.","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"object":{"type":"string","description":"The object type, which is always `chat.completion`.","const":"chat.completion","isRequired":true,"uniqueKey":"object","typeLabel":"string"},"metadata":{"oneOf":[{"type":"object","description":"Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n","additionalProperties":{"type":"string","uniqueKey":"metadata.oneOf.0.additionalProperties","typeLabel":"string"},"uniqueKey":"metadata.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"object | null"},"service_tier":{"oneOf":[{"type":"string","description":"Specifies the processing type used for serving the request.\n - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.\n - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.\n - If set to '[flex](https://developers.openai.com/api/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.\n - To opt-in to [Fast mode](https://developers.openai.com/api/docs/guides/fast-mode) at the request level, include the `service_tier=fast` or `service_tier=priority` parameter for Responses or Chat Completions. The response will show `service_tier=priority` regardless of if you specify `service_tier=fast` or `priority` in your request.\n - When not set, the default behavior is 'auto'.\n\n When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.\n","default":"auto","enum":["auto","default","flex","scale","priority","fast"],"uniqueKey":"service_tier.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"service_tier.oneOf.1","typeLabel":"null"}],"uniqueKey":"service_tier","typeLabel":"enum\u003cstring> | null"},"system_fingerprint":{"type":"string","deprecated":true,"description":"This fingerprint represents the backend configuration that the model runs with.\n\nCan be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism.\n","uniqueKey":"system_fingerprint","typeLabel":"string"},"usage":{"type":"object","description":"Usage statistics for the completion request.","properties":{"completion_tokens":{"type":"integer","default":0,"description":"Number of tokens in the generated completion.","isRequired":true,"uniqueKey":"usage.completion_tokens","typeLabel":"integer"},"prompt_tokens":{"type":"integer","default":0,"description":"Number of tokens in the prompt.","isRequired":true,"uniqueKey":"usage.prompt_tokens","typeLabel":"integer"},"total_tokens":{"type":"integer","default":0,"description":"Total number of tokens used in the request (prompt + completion).","isRequired":true,"uniqueKey":"usage.total_tokens","typeLabel":"integer"},"completion_tokens_details":{"type":"object","description":"Breakdown of tokens used in a completion.","properties":{"accepted_prediction_tokens":{"type":"integer","default":0,"description":"When using Predicted Outputs, the number of tokens in the\nprediction that appeared in the completion.\n","uniqueKey":"usage.completion_tokens_details.accepted_prediction_tokens","typeLabel":"integer"},"audio_tokens":{"type":"integer","default":0,"description":"Audio input tokens generated by the model.","uniqueKey":"usage.completion_tokens_details.audio_tokens","typeLabel":"integer"},"reasoning_tokens":{"type":"integer","default":0,"description":"Tokens generated by the model for reasoning.","uniqueKey":"usage.completion_tokens_details.reasoning_tokens","typeLabel":"integer"},"text_tokens":{"type":"integer","description":"Text output tokens generated by the model.","uniqueKey":"usage.completion_tokens_details.text_tokens","typeLabel":"integer"},"rejected_prediction_tokens":{"type":"integer","default":0,"description":"When using Predicted Outputs, the number of tokens in the\nprediction that did not appear in the completion. However, like\nreasoning tokens, these tokens are still counted in the total\ncompletion tokens for purposes of billing, output, and context window\nlimits.\n","uniqueKey":"usage.completion_tokens_details.rejected_prediction_tokens","typeLabel":"integer"}},"uniqueKey":"usage.completion_tokens_details","typeLabel":"object"},"prompt_tokens_details":{"type":"object","description":"Breakdown of tokens used in the prompt.","properties":{"audio_tokens":{"type":"integer","default":0,"description":"Audio input tokens present in the prompt.","uniqueKey":"usage.prompt_tokens_details.audio_tokens","typeLabel":"integer"},"cached_tokens":{"type":"integer","default":0,"description":"Cached tokens present in the prompt.","uniqueKey":"usage.prompt_tokens_details.cached_tokens","typeLabel":"integer"},"text_tokens":{"type":"integer","description":"Text input tokens present in the prompt.","uniqueKey":"usage.prompt_tokens_details.text_tokens","typeLabel":"integer"},"image_tokens":{"type":"integer","description":"Image input tokens present in the prompt.","uniqueKey":"usage.prompt_tokens_details.image_tokens","typeLabel":"integer"},"cache_write_tokens":{"type":"integer","default":0,"description":"The unadjusted number of prompt tokens written to cache.","uniqueKey":"usage.prompt_tokens_details.cache_write_tokens","typeLabel":"integer"}},"uniqueKey":"usage.prompt_tokens_details","typeLabel":"object"}},"required":["prompt_tokens","completion_tokens","total_tokens"],"uniqueKey":"usage","typeLabel":"object"},"moderation":{"oneOf":[{"type":"object","description":"Moderation results for the request input and generated output, if moderated\ncompletions were requested.\n","required":["input","output"],"properties":{"input":{"oneOf":[{"type":"object","description":"Moderation for the request input.","required":["type","model","results"],"properties":{"type":{"type":"string","const":"moderation_results","description":"The object type, which is always `moderation_results`.","isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.0.type","typeLabel":"string"},"model":{"type":"string","description":"The moderation model used to generate the results.","isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.0.model","typeLabel":"string"},"results":{"type":"array","description":"A list of moderation results.","items":{"properties":{"type":{"type":"string","enum":["moderation_result"],"description":"The object type, which was always `moderation_result` for successful moderation results.","default":"moderation_result","isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.0.results.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"model":{"type":"string","description":"The moderation model that produced this result.","isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.0.results.items.[INDEX].model","typeLabel":"string"},"flagged":{"type":"boolean","description":"A boolean indicating whether the content was flagged by any category.","isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.0.results.items.[INDEX].flagged","typeLabel":"boolean"},"categories":{"additionalProperties":{"type":"boolean","uniqueKey":"moderation.oneOf.0.input.oneOf.0.results.items.[INDEX].categories.additionalProperties","typeLabel":"boolean"},"type":"object","description":"A dictionary of moderation categories to booleans, True if the input is flagged under this category.","isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.0.results.items.[INDEX].categories","typeLabel":"object"},"category_scores":{"additionalProperties":{"type":"number","uniqueKey":"moderation.oneOf.0.input.oneOf.0.results.items.[INDEX].category_scores.additionalProperties","typeLabel":"number"},"type":"object","description":"A dictionary of moderation categories to scores.","isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.0.results.items.[INDEX].category_scores","typeLabel":"object"},"category_applied_input_types":{"additionalProperties":{"items":{"type":"string","enum":["text","image"],"uniqueKey":"moderation.oneOf.0.input.oneOf.0.results.items.[INDEX].category_applied_input_types.additionalProperties.items.[INDEX]","typeLabel":"enum\u003cstring>"},"type":"array","uniqueKey":"moderation.oneOf.0.input.oneOf.0.results.items.[INDEX].category_applied_input_types.additionalProperties","typeLabel":"enum\u003cstring>[]"},"type":"object","description":"Which modalities of input are reflected by the score for each category.","isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.0.results.items.[INDEX].category_applied_input_types","typeLabel":"object"}},"type":"object","required":["type","model","flagged","categories","category_scores","category_applied_input_types"],"title":"Moderation result","description":"A moderation result produced for the response input or output.","uniqueKey":"moderation.oneOf.0.input.oneOf.0.results.items.[INDEX]","typeLabel":"Moderation result · object"},"isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.0.results","typeLabel":"Moderation result · object[]"}},"isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.0","typeLabel":"object"},{"type":"object","description":"Moderation for the request input.","required":["type","code","message"],"properties":{"type":{"type":"string","const":"error","description":"The object type, which is always `error`.","isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.1.type","typeLabel":"string"},"code":{"type":"string","description":"The error code.","isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.1.code","typeLabel":"string"},"message":{"type":"string","description":"The error message.","isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.1.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"moderation.oneOf.0.input","typeLabel":"object"},"output":{"oneOf":[{"type":"object","description":"Moderation for the generated output.","required":["type","model","results"],"properties":{"type":{"type":"string","const":"moderation_results","description":"The object type, which is always `moderation_results`.","isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.0.type","typeLabel":"string"},"model":{"type":"string","description":"The moderation model used to generate the results.","isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.0.model","typeLabel":"string"},"results":{"type":"array","description":"A list of moderation results.","items":{"properties":{"type":{"type":"string","enum":["moderation_result"],"description":"The object type, which was always `moderation_result` for successful moderation results.","default":"moderation_result","isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.0.results.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"model":{"type":"string","description":"The moderation model that produced this result.","isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.0.results.items.[INDEX].model","typeLabel":"string"},"flagged":{"type":"boolean","description":"A boolean indicating whether the content was flagged by any category.","isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.0.results.items.[INDEX].flagged","typeLabel":"boolean"},"categories":{"additionalProperties":{"type":"boolean","uniqueKey":"moderation.oneOf.0.output.oneOf.0.results.items.[INDEX].categories.additionalProperties","typeLabel":"boolean"},"type":"object","description":"A dictionary of moderation categories to booleans, True if the input is flagged under this category.","isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.0.results.items.[INDEX].categories","typeLabel":"object"},"category_scores":{"additionalProperties":{"type":"number","uniqueKey":"moderation.oneOf.0.output.oneOf.0.results.items.[INDEX].category_scores.additionalProperties","typeLabel":"number"},"type":"object","description":"A dictionary of moderation categories to scores.","isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.0.results.items.[INDEX].category_scores","typeLabel":"object"},"category_applied_input_types":{"additionalProperties":{"items":{"type":"string","enum":["text","image"],"uniqueKey":"moderation.oneOf.0.output.oneOf.0.results.items.[INDEX].category_applied_input_types.additionalProperties.items.[INDEX]","typeLabel":"enum\u003cstring>"},"type":"array","uniqueKey":"moderation.oneOf.0.output.oneOf.0.results.items.[INDEX].category_applied_input_types.additionalProperties","typeLabel":"enum\u003cstring>[]"},"type":"object","description":"Which modalities of input are reflected by the score for each category.","isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.0.results.items.[INDEX].category_applied_input_types","typeLabel":"object"}},"type":"object","required":["type","model","flagged","categories","category_scores","category_applied_input_types"],"title":"Moderation result","description":"A moderation result produced for the response input or output.","uniqueKey":"moderation.oneOf.0.output.oneOf.0.results.items.[INDEX]","typeLabel":"Moderation result · object"},"isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.0.results","typeLabel":"Moderation result · object[]"}},"isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.0","typeLabel":"object"},{"type":"object","description":"Moderation for the generated output.","required":["type","code","message"],"properties":{"type":{"type":"string","const":"error","description":"The object type, which is always `error`.","isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.1.type","typeLabel":"string"},"code":{"type":"string","description":"The error code.","isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.1.code","typeLabel":"string"},"message":{"type":"string","description":"The error message.","isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.1.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"moderation.oneOf.0.output","typeLabel":"object"}},"uniqueKey":"moderation.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"moderation.oneOf.1","typeLabel":"null"}],"uniqueKey":"moderation","typeLabel":"object | null"}},"required":["choices","created","id","model","object"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","choices":[{"finish_reason":"stop","index":123,"message":{"content":"\u003cstring>","role":"assistant","refusal":"\u003cstring>","tool_calls":[{"id":"\u003cstring>","type":"function","function":{"name":"\u003cstring>","arguments":"\u003cstring>"}}],"annotations":[{"type":"url_citation","url_citation":{"end_index":123,"start_index":123,"url":"\u003cstring>","title":"\u003cstring>"}}],"function_call":{"arguments":"\u003cstring>","name":"\u003cstring>"},"audio":{"id":"\u003cstring>","expires_at":123,"data":"\u003cstring>","transcript":"\u003cstring>"}},"logprobs":{"content":[{"token":"\u003cstring>","logprob":123,"bytes":[123],"top_logprobs":[{"token":"\u003cstring>","logprob":123,"bytes":[123]}]}],"refusal":[{"token":"\u003cstring>","logprob":123,"bytes":[123],"top_logprobs":[{"token":"\u003cstring>","logprob":123,"bytes":[123]}]}]}}],"created":123,"model":"\u003cstring>","object":"chat.completion","metadata":{},"service_tier":"auto","system_fingerprint":"\u003cstring>","usage":{"completion_tokens":0,"prompt_tokens":0,"total_tokens":0,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"text_tokens":123,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0,"text_tokens":123,"image_tokens":123,"cache_write_tokens":0}},"moderation":{"input":{"type":"moderation_results","model":"\u003cstring>","results":[{"type":"moderation_result","model":"\u003cstring>","flagged":true,"categories":{},"category_scores":{},"category_applied_input_types":{}}]},"output":{"type":"moderation_results","model":"\u003cstring>","results":[{"type":"moderation_result","model":"\u003cstring>","flagged":true,"categories":{},"category_scores":{},"category_applied_input_types":{}}]}}}}},"exampleType":"generated"},"text/event-stream":{"schema":{"type":"object","description":"Represents a streamed chunk of a chat completion response returned\nby the model, based on the provided input.\n[Learn more](https://developers.openai.com/api/docs/guides/streaming-responses).\n","properties":{"id":{"type":"string","description":"A unique identifier for the chat completion. Each chunk has the same ID.","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"choices":{"type":"array","description":"A list of chat completion choices. Can contain more than one elements if `n` is greater than 1. Can also be empty for the\nlast chunk if you set `stream_options: {\"include_usage\": true}`.\n","items":{"type":"object","required":["delta","index"],"properties":{"delta":{"type":"object","description":"A chat completion delta generated by streamed model responses.\nStreamed audio can arrive in partial updates with an ID, base64 data, or\ntranscript text. The final audio update contains only its expiry timestamp.\n","properties":{"audio":{"type":"object","description":"A partial audio response. Audio chunks may carry an ID, base64 data, or\ntranscript text; the final audio update contains only its expiry timestamp.\n","properties":{"id":{"type":"string","description":"Unique identifier for this audio response.","uniqueKey":"choices.items.[INDEX].delta.audio.id","typeLabel":"string"},"expires_at":{"type":"integer","format":"unixtime","description":"The Unix timestamp (in seconds) for when this audio response will no\nlonger be accessible on the server for use in multi-turn conversations.\n","uniqueKey":"choices.items.[INDEX].delta.audio.expires_at","typeLabel":"integer\u003cunixtime>"},"data":{"type":"string","description":"Base64 encoded audio bytes generated by the model, in the format\nspecified in the request.\n","uniqueKey":"choices.items.[INDEX].delta.audio.data","typeLabel":"string"},"transcript":{"type":"string","description":"Transcript text from this audio chunk.","uniqueKey":"choices.items.[INDEX].delta.audio.transcript","typeLabel":"string"}},"uniqueKey":"choices.items.[INDEX].delta.audio","typeLabel":"object"},"content":{"oneOf":[{"type":"string","description":"The contents of the chunk message.","uniqueKey":"choices.items.[INDEX].delta.content.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"choices.items.[INDEX].delta.content.oneOf.1","typeLabel":"null"}],"uniqueKey":"choices.items.[INDEX].delta.content","typeLabel":"string | null"},"function_call":{"deprecated":true,"type":"object","description":"Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model.","properties":{"arguments":{"type":"string","description":"The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.","uniqueKey":"choices.items.[INDEX].delta.function_call.arguments","typeLabel":"string"},"name":{"type":"string","description":"The name of the function to call.","uniqueKey":"choices.items.[INDEX].delta.function_call.name","typeLabel":"string"}},"uniqueKey":"choices.items.[INDEX].delta.function_call","typeLabel":"object"},"tool_calls":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","isRequired":true,"uniqueKey":"choices.items.[INDEX].delta.tool_calls.items.[INDEX].index","typeLabel":"integer"},"id":{"type":"string","description":"The ID of the tool call.","uniqueKey":"choices.items.[INDEX].delta.tool_calls.items.[INDEX].id","typeLabel":"string"},"type":{"type":"string","const":"function","description":"The type of the tool. Currently, only `function` is supported.","uniqueKey":"choices.items.[INDEX].delta.tool_calls.items.[INDEX].type","typeLabel":"string"},"function":{"type":"object","properties":{"name":{"type":"string","description":"The name of the function to call.","uniqueKey":"choices.items.[INDEX].delta.tool_calls.items.[INDEX].function.name","typeLabel":"string"},"arguments":{"type":"string","description":"The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.","uniqueKey":"choices.items.[INDEX].delta.tool_calls.items.[INDEX].function.arguments","typeLabel":"string"}},"uniqueKey":"choices.items.[INDEX].delta.tool_calls.items.[INDEX].function","typeLabel":"object"}},"required":["index"],"uniqueKey":"choices.items.[INDEX].delta.tool_calls.items.[INDEX]","typeLabel":"object"},"uniqueKey":"choices.items.[INDEX].delta.tool_calls","typeLabel":"object[]"},"role":{"type":"string","enum":["developer","system","user","assistant","tool"],"description":"The role of the author of this message.","uniqueKey":"choices.items.[INDEX].delta.role","typeLabel":"enum\u003cstring>"},"refusal":{"oneOf":[{"type":"string","description":"The refusal message generated by the model.","uniqueKey":"choices.items.[INDEX].delta.refusal.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"choices.items.[INDEX].delta.refusal.oneOf.1","typeLabel":"null"}],"uniqueKey":"choices.items.[INDEX].delta.refusal","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"choices.items.[INDEX].delta","typeLabel":"object"},"index":{"type":"integer","description":"The index of the choice in the list of choices.","isRequired":true,"uniqueKey":"choices.items.[INDEX].index","typeLabel":"integer"},"logprobs":{"oneOf":[{"description":"Log probability information for the choice.","type":"object","properties":{"content":{"oneOf":[{"description":"A list of message content tokens with log probability information.","type":"array","items":{"type":"object","properties":{"token":{"description":"The token.","type":"string","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].token","typeLabel":"string"},"logprob":{"description":"The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.","type":"number","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].logprob","typeLabel":"number"},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer","uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].bytes.oneOf.0.items.[INDEX]","typeLabel":"integer"},"description":"A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].bytes.oneOf.0","typeLabel":"integer[]"},{"type":"null","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].bytes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].bytes","typeLabel":"integer[] | null"},"top_logprobs":{"description":"List of the most likely tokens and their log probability, at this token position. The number of entries may be fewer than the requested `top_logprobs`.","type":"array","items":{"type":"object","properties":{"token":{"description":"The token.","type":"string","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].token","typeLabel":"string"},"logprob":{"description":"The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.","type":"number","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].logprob","typeLabel":"number"},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer","uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].bytes.oneOf.0.items.[INDEX]","typeLabel":"integer"},"description":"A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].bytes.oneOf.0","typeLabel":"integer[]"},{"type":"null","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].bytes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].bytes","typeLabel":"integer[] | null"}},"required":["token","logprob","bytes"],"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].top_logprobs","typeLabel":"object[]"}},"required":["token","logprob","bytes","top_logprobs"],"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0","typeLabel":"object[]"},{"description":"A list of message content tokens with log probability information.","type":"null","items":{"type":"object","properties":{"token":{"description":"The token.","type":"string"},"logprob":{"description":"The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.","type":"number"},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer"},"description":"A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token."},{"type":"null"}]},"top_logprobs":{"description":"List of the most likely tokens and their log probability, at this token position. The number of entries may be fewer than the requested `top_logprobs`.","type":"array","items":{"type":"object","properties":{"token":{"description":"The token.","type":"string"},"logprob":{"description":"The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.","type":"number"},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer"},"description":"A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token."},{"type":"null"}]}},"required":["token","logprob","bytes"]}}},"required":["token","logprob","bytes","top_logprobs"]},"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.content","typeLabel":"object[] | null"},"refusal":{"oneOf":[{"description":"A list of message refusal tokens with log probability information.","type":"array","items":{"type":"object","properties":{"token":{"description":"The token.","type":"string","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].token","typeLabel":"string"},"logprob":{"description":"The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.","type":"number","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].logprob","typeLabel":"number"},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer","uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].bytes.oneOf.0.items.[INDEX]","typeLabel":"integer"},"description":"A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].bytes.oneOf.0","typeLabel":"integer[]"},{"type":"null","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].bytes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].bytes","typeLabel":"integer[] | null"},"top_logprobs":{"description":"List of the most likely tokens and their log probability, at this token position. The number of entries may be fewer than the requested `top_logprobs`.","type":"array","items":{"type":"object","properties":{"token":{"description":"The token.","type":"string","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].token","typeLabel":"string"},"logprob":{"description":"The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.","type":"number","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].logprob","typeLabel":"number"},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer","uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].bytes.oneOf.0.items.[INDEX]","typeLabel":"integer"},"description":"A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].bytes.oneOf.0","typeLabel":"integer[]"},{"type":"null","isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].bytes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX].bytes","typeLabel":"integer[] | null"}},"required":["token","logprob","bytes"],"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX].top_logprobs","typeLabel":"object[]"}},"required":["token","logprob","bytes","top_logprobs"],"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.0","typeLabel":"object[]"},{"description":"A list of message refusal tokens with log probability information.","type":"null","items":{"type":"object","properties":{"token":{"description":"The token.","type":"string"},"logprob":{"description":"The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.","type":"number"},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer"},"description":"A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token."},{"type":"null"}]},"top_logprobs":{"description":"List of the most likely tokens and their log probability, at this token position. The number of entries may be fewer than the requested `top_logprobs`.","type":"array","items":{"type":"object","properties":{"token":{"description":"The token.","type":"string"},"logprob":{"description":"The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.","type":"number"},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer"},"description":"A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token."},{"type":"null"}]}},"required":["token","logprob","bytes"]}}},"required":["token","logprob","bytes","top_logprobs"]},"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.refusal","typeLabel":"object[] | null"}},"required":["content","refusal"],"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0","typeLabel":"object"},{"description":"Log probability information for the choice.","type":"null","properties":{"content":{"oneOf":[{"description":"A list of message content tokens with log probability information.","type":"array","items":{"type":"object","properties":{"token":{"description":"The token.","type":"string"},"logprob":{"description":"The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.","type":"number"},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer"},"description":"A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token."},{"type":"null"}]},"top_logprobs":{"description":"List of the most likely tokens and their log probability, at this token position. The number of entries may be fewer than the requested `top_logprobs`.","type":"array","items":{"type":"object","properties":{"token":{"description":"The token.","type":"string"},"logprob":{"description":"The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.","type":"number"},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer"},"description":"A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token."},{"type":"null"}]}},"required":["token","logprob","bytes"]}}},"required":["token","logprob","bytes","top_logprobs"]}},{"description":"A list of message content tokens with log probability information.","type":"null","items":{"type":"object","properties":{"token":{"description":"The token.","type":"string"},"logprob":{"description":"The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.","type":"number"},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer"},"description":"A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token."},{"type":"null"}]},"top_logprobs":{"description":"List of the most likely tokens and their log probability, at this token position. The number of entries may be fewer than the requested `top_logprobs`.","type":"array","items":{"type":"object","properties":{"token":{"description":"The token.","type":"string"},"logprob":{"description":"The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.","type":"number"},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer"},"description":"A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token."},{"type":"null"}]}},"required":["token","logprob","bytes"]}}},"required":["token","logprob","bytes","top_logprobs"]}}]},"refusal":{"oneOf":[{"description":"A list of message refusal tokens with log probability information.","type":"array","items":{"type":"object","properties":{"token":{"description":"The token.","type":"string"},"logprob":{"description":"The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.","type":"number"},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer"},"description":"A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token."},{"type":"null"}]},"top_logprobs":{"description":"List of the most likely tokens and their log probability, at this token position. The number of entries may be fewer than the requested `top_logprobs`.","type":"array","items":{"type":"object","properties":{"token":{"description":"The token.","type":"string"},"logprob":{"description":"The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.","type":"number"},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer"},"description":"A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token."},{"type":"null"}]}},"required":["token","logprob","bytes"]}}},"required":["token","logprob","bytes","top_logprobs"]}},{"description":"A list of message refusal tokens with log probability information.","type":"null","items":{"type":"object","properties":{"token":{"description":"The token.","type":"string"},"logprob":{"description":"The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.","type":"number"},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer"},"description":"A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token."},{"type":"null"}]},"top_logprobs":{"description":"List of the most likely tokens and their log probability, at this token position. The number of entries may be fewer than the requested `top_logprobs`.","type":"array","items":{"type":"object","properties":{"token":{"description":"The token.","type":"string"},"logprob":{"description":"The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.","type":"number"},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer"},"description":"A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token."},{"type":"null"}]}},"required":["token","logprob","bytes"]}}},"required":["token","logprob","bytes","top_logprobs"]}}]}},"required":["content","refusal"],"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.1","typeLabel":"null"}],"uniqueKey":"choices.items.[INDEX].logprobs","typeLabel":"object | null"},"finish_reason":{"oneOf":[{"type":"string","description":"The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,\n`length` if the maximum number of tokens specified in the request was reached,\n`content_filter` if content was omitted due to a flag from our content filters,\n`tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.\nOmitted from the final audio update containing only `delta.audio.expires_at`.\n","enum":["stop","length","tool_calls","content_filter","function_call",null],"uniqueKey":"choices.items.[INDEX].finish_reason.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,\n`length` if the maximum number of tokens specified in the request was reached,\n`content_filter` if content was omitted due to a flag from our content filters,\n`tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.\nOmitted from the final audio update containing only `delta.audio.expires_at`.\n","enum":["stop","length","tool_calls","content_filter","function_call",null],"uniqueKey":"choices.items.[INDEX].finish_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"choices.items.[INDEX].finish_reason","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"choices.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"choices","typeLabel":"object[]"},"created":{"type":"integer","format":"unixtime","description":"The Unix timestamp (in seconds) of when the chat completion was created. Each chunk has the same timestamp.","isRequired":true,"uniqueKey":"created","typeLabel":"integer\u003cunixtime>"},"model":{"type":"string","description":"The model to generate the completion.","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"object":{"type":"string","description":"The object type, which is always `chat.completion.chunk`.","const":"chat.completion.chunk","isRequired":true,"uniqueKey":"object","typeLabel":"string"},"obfuscation":{"type":"string","description":"An obfuscation string added to normalize the size of streamed chunks as a\nmitigation to certain side-channel attacks. The field is included by\ndefault and omitted when `stream_options.include_obfuscation` is `false`.\n","uniqueKey":"obfuscation","typeLabel":"string"},"service_tier":{"oneOf":[{"type":"string","description":"Specifies the processing type used for serving the request.\n - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.\n - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.\n - If set to '[flex](https://developers.openai.com/api/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.\n - To opt-in to [Fast mode](https://developers.openai.com/api/docs/guides/fast-mode) at the request level, include the `service_tier=fast` or `service_tier=priority` parameter for Responses or Chat Completions. The response will show `service_tier=priority` regardless of if you specify `service_tier=fast` or `priority` in your request.\n - When not set, the default behavior is 'auto'.\n\n When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.\n","default":"auto","enum":["auto","default","flex","scale","priority","fast"],"uniqueKey":"service_tier.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"service_tier.oneOf.1","typeLabel":"null"}],"uniqueKey":"service_tier","typeLabel":"enum\u003cstring> | null"},"system_fingerprint":{"type":"string","deprecated":true,"description":"This fingerprint represents the backend configuration that the model runs with.\nCan be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism.\n","uniqueKey":"system_fingerprint","typeLabel":"string"},"usage":{"oneOf":[{"type":"object","description":"An optional field that will only be present when you set\n`stream_options: {\"include_usage\": true}` in your request. When present, it\ncontains a null value **except for the last chunk** which contains the\ntoken usage statistics for the entire request.\n\n**NOTE:** If the stream is interrupted or cancelled, you may not\nreceive the final usage chunk which contains the total token usage for\nthe request.\n","required":["prompt_tokens","completion_tokens","total_tokens"],"properties":{"completion_tokens":{"type":"integer","default":0,"description":"Number of tokens in the generated completion.","isRequired":true,"uniqueKey":"usage.oneOf.0.completion_tokens","typeLabel":"integer"},"prompt_tokens":{"type":"integer","default":0,"description":"Number of tokens in the prompt.","isRequired":true,"uniqueKey":"usage.oneOf.0.prompt_tokens","typeLabel":"integer"},"total_tokens":{"type":"integer","default":0,"description":"Total number of tokens used in the request (prompt + completion).","isRequired":true,"uniqueKey":"usage.oneOf.0.total_tokens","typeLabel":"integer"},"completion_tokens_details":{"type":"object","description":"Breakdown of tokens used in a completion.","properties":{"accepted_prediction_tokens":{"type":"integer","default":0,"description":"When using Predicted Outputs, the number of tokens in the\nprediction that appeared in the completion.\n","uniqueKey":"usage.oneOf.0.completion_tokens_details.accepted_prediction_tokens","typeLabel":"integer"},"audio_tokens":{"type":"integer","default":0,"description":"Audio input tokens generated by the model.","uniqueKey":"usage.oneOf.0.completion_tokens_details.audio_tokens","typeLabel":"integer"},"reasoning_tokens":{"type":"integer","default":0,"description":"Tokens generated by the model for reasoning.","uniqueKey":"usage.oneOf.0.completion_tokens_details.reasoning_tokens","typeLabel":"integer"},"text_tokens":{"type":"integer","description":"Text output tokens generated by the model.","uniqueKey":"usage.oneOf.0.completion_tokens_details.text_tokens","typeLabel":"integer"},"rejected_prediction_tokens":{"type":"integer","default":0,"description":"When using Predicted Outputs, the number of tokens in the\nprediction that did not appear in the completion. However, like\nreasoning tokens, these tokens are still counted in the total\ncompletion tokens for purposes of billing, output, and context window\nlimits.\n","uniqueKey":"usage.oneOf.0.completion_tokens_details.rejected_prediction_tokens","typeLabel":"integer"}},"uniqueKey":"usage.oneOf.0.completion_tokens_details","typeLabel":"object"},"prompt_tokens_details":{"type":"object","description":"Breakdown of tokens used in the prompt.","properties":{"audio_tokens":{"type":"integer","default":0,"description":"Audio input tokens present in the prompt.","uniqueKey":"usage.oneOf.0.prompt_tokens_details.audio_tokens","typeLabel":"integer"},"cached_tokens":{"type":"integer","default":0,"description":"Cached tokens present in the prompt.","uniqueKey":"usage.oneOf.0.prompt_tokens_details.cached_tokens","typeLabel":"integer"},"text_tokens":{"type":"integer","description":"Text input tokens present in the prompt.","uniqueKey":"usage.oneOf.0.prompt_tokens_details.text_tokens","typeLabel":"integer"},"image_tokens":{"type":"integer","description":"Image input tokens present in the prompt.","uniqueKey":"usage.oneOf.0.prompt_tokens_details.image_tokens","typeLabel":"integer"},"cache_write_tokens":{"type":"integer","default":0,"description":"The unadjusted number of prompt tokens written to cache.","uniqueKey":"usage.oneOf.0.prompt_tokens_details.cache_write_tokens","typeLabel":"integer"}},"uniqueKey":"usage.oneOf.0.prompt_tokens_details","typeLabel":"object"}},"uniqueKey":"usage.oneOf.0","typeLabel":"object"},{"type":"null","description":"An optional field that will only be present when you set\n`stream_options: {\"include_usage\": true}` in your request. When present, it\ncontains a null value **except for the last chunk** which contains the\ntoken usage statistics for the entire request.\n\n**NOTE:** If the stream is interrupted or cancelled, you may not\nreceive the final usage chunk which contains the total token usage for\nthe request.\n","uniqueKey":"usage.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage","typeLabel":"object | null"},"moderation":{"oneOf":[{"type":"object","description":"Moderation results for the request input and generated output. Present\non the moderation chunk when moderated completions are requested.\n","required":["input","output"],"properties":{"input":{"oneOf":[{"type":"object","description":"Moderation for the request input.","required":["type","model","results"],"properties":{"type":{"type":"string","const":"moderation_results","description":"The object type, which is always `moderation_results`.","isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.0.type","typeLabel":"string"},"model":{"type":"string","description":"The moderation model used to generate the results.","isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.0.model","typeLabel":"string"},"results":{"type":"array","description":"A list of moderation results.","items":{"properties":{"type":{"type":"string","enum":["moderation_result"],"description":"The object type, which was always `moderation_result` for successful moderation results.","default":"moderation_result","isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.0.results.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"model":{"type":"string","description":"The moderation model that produced this result.","isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.0.results.items.[INDEX].model","typeLabel":"string"},"flagged":{"type":"boolean","description":"A boolean indicating whether the content was flagged by any category.","isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.0.results.items.[INDEX].flagged","typeLabel":"boolean"},"categories":{"additionalProperties":{"type":"boolean","uniqueKey":"moderation.oneOf.0.input.oneOf.0.results.items.[INDEX].categories.additionalProperties","typeLabel":"boolean"},"type":"object","description":"A dictionary of moderation categories to booleans, True if the input is flagged under this category.","isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.0.results.items.[INDEX].categories","typeLabel":"object"},"category_scores":{"additionalProperties":{"type":"number","uniqueKey":"moderation.oneOf.0.input.oneOf.0.results.items.[INDEX].category_scores.additionalProperties","typeLabel":"number"},"type":"object","description":"A dictionary of moderation categories to scores.","isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.0.results.items.[INDEX].category_scores","typeLabel":"object"},"category_applied_input_types":{"additionalProperties":{"items":{"type":"string","enum":["text","image"],"uniqueKey":"moderation.oneOf.0.input.oneOf.0.results.items.[INDEX].category_applied_input_types.additionalProperties.items.[INDEX]","typeLabel":"enum\u003cstring>"},"type":"array","uniqueKey":"moderation.oneOf.0.input.oneOf.0.results.items.[INDEX].category_applied_input_types.additionalProperties","typeLabel":"enum\u003cstring>[]"},"type":"object","description":"Which modalities of input are reflected by the score for each category.","isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.0.results.items.[INDEX].category_applied_input_types","typeLabel":"object"}},"type":"object","required":["type","model","flagged","categories","category_scores","category_applied_input_types"],"title":"Moderation result","description":"A moderation result produced for the response input or output.","uniqueKey":"moderation.oneOf.0.input.oneOf.0.results.items.[INDEX]","typeLabel":"Moderation result · object"},"isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.0.results","typeLabel":"Moderation result · object[]"}},"isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.0","typeLabel":"object"},{"type":"object","description":"Moderation for the request input.","required":["type","code","message"],"properties":{"type":{"type":"string","const":"error","description":"The object type, which is always `error`.","isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.1.type","typeLabel":"string"},"code":{"type":"string","description":"The error code.","isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.1.code","typeLabel":"string"},"message":{"type":"string","description":"The error message.","isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.1.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"moderation.oneOf.0.input.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"moderation.oneOf.0.input","typeLabel":"object"},"output":{"oneOf":[{"type":"object","description":"Moderation for the generated output.","required":["type","model","results"],"properties":{"type":{"type":"string","const":"moderation_results","description":"The object type, which is always `moderation_results`.","isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.0.type","typeLabel":"string"},"model":{"type":"string","description":"The moderation model used to generate the results.","isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.0.model","typeLabel":"string"},"results":{"type":"array","description":"A list of moderation results.","items":{"properties":{"type":{"type":"string","enum":["moderation_result"],"description":"The object type, which was always `moderation_result` for successful moderation results.","default":"moderation_result","isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.0.results.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"model":{"type":"string","description":"The moderation model that produced this result.","isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.0.results.items.[INDEX].model","typeLabel":"string"},"flagged":{"type":"boolean","description":"A boolean indicating whether the content was flagged by any category.","isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.0.results.items.[INDEX].flagged","typeLabel":"boolean"},"categories":{"additionalProperties":{"type":"boolean","uniqueKey":"moderation.oneOf.0.output.oneOf.0.results.items.[INDEX].categories.additionalProperties","typeLabel":"boolean"},"type":"object","description":"A dictionary of moderation categories to booleans, True if the input is flagged under this category.","isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.0.results.items.[INDEX].categories","typeLabel":"object"},"category_scores":{"additionalProperties":{"type":"number","uniqueKey":"moderation.oneOf.0.output.oneOf.0.results.items.[INDEX].category_scores.additionalProperties","typeLabel":"number"},"type":"object","description":"A dictionary of moderation categories to scores.","isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.0.results.items.[INDEX].category_scores","typeLabel":"object"},"category_applied_input_types":{"additionalProperties":{"items":{"type":"string","enum":["text","image"],"uniqueKey":"moderation.oneOf.0.output.oneOf.0.results.items.[INDEX].category_applied_input_types.additionalProperties.items.[INDEX]","typeLabel":"enum\u003cstring>"},"type":"array","uniqueKey":"moderation.oneOf.0.output.oneOf.0.results.items.[INDEX].category_applied_input_types.additionalProperties","typeLabel":"enum\u003cstring>[]"},"type":"object","description":"Which modalities of input are reflected by the score for each category.","isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.0.results.items.[INDEX].category_applied_input_types","typeLabel":"object"}},"type":"object","required":["type","model","flagged","categories","category_scores","category_applied_input_types"],"title":"Moderation result","description":"A moderation result produced for the response input or output.","uniqueKey":"moderation.oneOf.0.output.oneOf.0.results.items.[INDEX]","typeLabel":"Moderation result · object"},"isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.0.results","typeLabel":"Moderation result · object[]"}},"isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.0","typeLabel":"object"},{"type":"object","description":"Moderation for the generated output.","required":["type","code","message"],"properties":{"type":{"type":"string","const":"error","description":"The object type, which is always `error`.","isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.1.type","typeLabel":"string"},"code":{"type":"string","description":"The error code.","isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.1.code","typeLabel":"string"},"message":{"type":"string","description":"The error message.","isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.1.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"moderation.oneOf.0.output.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"moderation.oneOf.0.output","typeLabel":"object"}},"uniqueKey":"moderation.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"moderation.oneOf.1","typeLabel":"null"}],"uniqueKey":"moderation","typeLabel":"object | null"}},"required":["choices","created","id","model","object"],"examples":[{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-6.2-astra","system_fingerprint":"fp_44709d6fcb","choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}],"obfuscation":"p9K3xT6w"},{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-6.2-astra","system_fingerprint":"fp_44709d6fcb","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"obfuscation":""}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-6.2-astra","system_fingerprint":"fp_44709d6fcb","choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}],"obfuscation":"p9K3xT6w"}}},"exampleType":"generated"}},"exampleType":"generated"},"eeed92f8-643b-45e5-bb5f-eb1fec78ff8e":{"description":"Invalid request: malformed JSON, a missing required field, or a parameter the chosen model does not support. Fix it as `message` says and retry.","content":{"application/json":{"schema":{"type":"object","description":"Error response.","properties":{"error":{"type":"object","description":"Error details.","properties":{"code":{"type":"string","description":"Error code, for example `invalid_request`, `unauthorized`, `insufficient_balance` or `rate_limit_exceeded`. In a few parameter errors returned by the model side directly it is the numeric status code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Error description. Branch on the status code and `code`, not on this text.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"http_status":{"type":"integer","description":"Same as the HTTP status code of the response; a few errors returned by the model side directly omit it.","uniqueKey":"error.http_status","typeLabel":"integer"},"request_id":{"type":"string","description":"ID of this request, also returned in the `X-Request-Id` header; include it when reporting a problem. A few errors omit it, so prefer the header.","uniqueKey":"error.request_id","typeLabel":"string"},"type":{"type":"string","description":"Error category, for example `invalid_request_error`, `authentication_error`, `rate_limit_error` or `api_error`; a few errors omit it.","uniqueKey":"error.type","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","value":{"error":{"code":"invalid_request","http_status":400,"message":"Invalid request.","request_id":"req_3f9a1c2b7d4e5f60718293a4","type":"invalid_request_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"12b0e929-8b12-4f75-92ab-f6a0722934f7":{"description":"The API Key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","description":"Error response.","properties":{"error":{"type":"object","description":"Error details.","properties":{"code":{"type":"string","description":"Error code, for example `invalid_request`, `unauthorized`, `insufficient_balance` or `rate_limit_exceeded`. In a few parameter errors returned by the model side directly it is the numeric status code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Error description. Branch on the status code and `code`, not on this text.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"http_status":{"type":"integer","description":"Same as the HTTP status code of the response; a few errors returned by the model side directly omit it.","uniqueKey":"error.http_status","typeLabel":"integer"},"request_id":{"type":"string","description":"ID of this request, also returned in the `X-Request-Id` header; include it when reporting a problem. A few errors omit it, so prefer the header.","uniqueKey":"error.request_id","typeLabel":"string"},"type":{"type":"string","description":"Error category, for example `invalid_request_error`, `authentication_error`, `rate_limit_error` or `api_error`; a few errors omit it.","uniqueKey":"error.type","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","value":{"error":{"code":"unauthorized","http_status":401,"message":"Unauthorized.","request_id":"req_3f9a1c2b7d4e5f60718293a4","type":"authentication_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"36a95c18-3ce7-4fc0-bc12-b67bd886662c":{"description":"Insufficient balance; top up and retry.","content":{"application/json":{"schema":{"type":"object","description":"Error response.","properties":{"error":{"type":"object","description":"Error details.","properties":{"code":{"type":"string","description":"Error code, for example `invalid_request`, `unauthorized`, `insufficient_balance` or `rate_limit_exceeded`. In a few parameter errors returned by the model side directly it is the numeric status code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Error description. Branch on the status code and `code`, not on this text.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"http_status":{"type":"integer","description":"Same as the HTTP status code of the response; a few errors returned by the model side directly omit it.","uniqueKey":"error.http_status","typeLabel":"integer"},"request_id":{"type":"string","description":"ID of this request, also returned in the `X-Request-Id` header; include it when reporting a problem. A few errors omit it, so prefer the header.","uniqueKey":"error.request_id","typeLabel":"string"},"type":{"type":"string","description":"Error category, for example `invalid_request_error`, `authentication_error`, `rate_limit_error` or `api_error`; a few errors omit it.","uniqueKey":"error.type","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","value":{"error":{"code":"insufficient_balance","http_status":402,"message":"Insufficient balance.","request_id":"req_3f9a1c2b7d4e5f60718293a4","type":"insufficient_balance_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"07cad0a9-230d-447a-8fde-68f9ec39e797":{"description":"This API Key is not allowed to use the model.","content":{"application/json":{"schema":{"type":"object","description":"Error response.","properties":{"error":{"type":"object","description":"Error details.","properties":{"code":{"type":"string","description":"Error code, for example `invalid_request`, `unauthorized`, `insufficient_balance` or `rate_limit_exceeded`. In a few parameter errors returned by the model side directly it is the numeric status code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Error description. Branch on the status code and `code`, not on this text.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"http_status":{"type":"integer","description":"Same as the HTTP status code of the response; a few errors returned by the model side directly omit it.","uniqueKey":"error.http_status","typeLabel":"integer"},"request_id":{"type":"string","description":"ID of this request, also returned in the `X-Request-Id` header; include it when reporting a problem. A few errors omit it, so prefer the header.","uniqueKey":"error.request_id","typeLabel":"string"},"type":{"type":"string","description":"Error category, for example `invalid_request_error`, `authentication_error`, `rate_limit_error` or `api_error`; a few errors omit it.","uniqueKey":"error.type","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","value":{"error":{"code":"forbidden","http_status":403,"message":"Access denied.","request_id":"req_3f9a1c2b7d4e5f60718293a4","type":"permission_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"d29d8712-ea41-4a6c-987b-b2e6838c293d":{"description":"The model does not exist or is not available.","content":{"application/json":{"schema":{"type":"object","description":"Error response.","properties":{"error":{"type":"object","description":"Error details.","properties":{"code":{"type":"string","description":"Error code, for example `invalid_request`, `unauthorized`, `insufficient_balance` or `rate_limit_exceeded`. In a few parameter errors returned by the model side directly it is the numeric status code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Error description. Branch on the status code and `code`, not on this text.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"http_status":{"type":"integer","description":"Same as the HTTP status code of the response; a few errors returned by the model side directly omit it.","uniqueKey":"error.http_status","typeLabel":"integer"},"request_id":{"type":"string","description":"ID of this request, also returned in the `X-Request-Id` header; include it when reporting a problem. A few errors omit it, so prefer the header.","uniqueKey":"error.request_id","typeLabel":"string"},"type":{"type":"string","description":"Error category, for example `invalid_request_error`, `authentication_error`, `rate_limit_error` or `api_error`; a few errors omit it.","uniqueKey":"error.type","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","value":{"error":{"code":"not_found","http_status":404,"message":"The requested model was not found.","request_id":"req_3f9a1c2b7d4e5f60718293a4","type":"invalid_request_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"09c17f82-9aad-4e82-8b75-7892a12e6a64":{"description":"Rate limit exceeded; back off and retry.","content":{"application/json":{"schema":{"type":"object","description":"Error response.","properties":{"error":{"type":"object","description":"Error details.","properties":{"code":{"type":"string","description":"Error code, for example `invalid_request`, `unauthorized`, `insufficient_balance` or `rate_limit_exceeded`. In a few parameter errors returned by the model side directly it is the numeric status code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Error description. Branch on the status code and `code`, not on this text.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"http_status":{"type":"integer","description":"Same as the HTTP status code of the response; a few errors returned by the model side directly omit it.","uniqueKey":"error.http_status","typeLabel":"integer"},"request_id":{"type":"string","description":"ID of this request, also returned in the `X-Request-Id` header; include it when reporting a problem. A few errors omit it, so prefer the header.","uniqueKey":"error.request_id","typeLabel":"string"},"type":{"type":"string","description":"Error category, for example `invalid_request_error`, `authentication_error`, `rate_limit_error` or `api_error`; a few errors omit it.","uniqueKey":"error.type","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","value":{"error":{"code":"rate_limit_exceeded","http_status":429,"message":"Rate limit exceeded. Please try again later.","request_id":"req_3f9a1c2b7d4e5f60718293a4","type":"rate_limit_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"89a9e374-46f0-4a55-a0b8-e04c7b64e376":{"description":"Internal error; retry later.","content":{"application/json":{"schema":{"type":"object","description":"Error response.","properties":{"error":{"type":"object","description":"Error details.","properties":{"code":{"type":"string","description":"Error code, for example `invalid_request`, `unauthorized`, `insufficient_balance` or `rate_limit_exceeded`. In a few parameter errors returned by the model side directly it is the numeric status code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Error description. Branch on the status code and `code`, not on this text.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"http_status":{"type":"integer","description":"Same as the HTTP status code of the response; a few errors returned by the model side directly omit it.","uniqueKey":"error.http_status","typeLabel":"integer"},"request_id":{"type":"string","description":"ID of this request, also returned in the `X-Request-Id` header; include it when reporting a problem. A few errors omit it, so prefer the header.","uniqueKey":"error.request_id","typeLabel":"string"},"type":{"type":"string","description":"Error category, for example `invalid_request_error`, `authentication_error`, `rate_limit_error` or `api_error`; a few errors omit it.","uniqueKey":"error.type","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","value":{"error":{"code":"api_error","http_status":500,"message":"Internal server error.","request_id":"req_3f9a1c2b7d4e5f60718293a4","type":"api_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"1e340a37-1fdb-439c-9530-0d8e805f4cef":{"description":"Service temporarily unavailable or timed out; retry later.","content":{"application/json":{"schema":{"type":"object","description":"Error response.","properties":{"error":{"type":"object","description":"Error details.","properties":{"code":{"type":"string","description":"Error code, for example `invalid_request`, `unauthorized`, `insufficient_balance` or `rate_limit_exceeded`. In a few parameter errors returned by the model side directly it is the numeric status code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Error description. Branch on the status code and `code`, not on this text.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"http_status":{"type":"integer","description":"Same as the HTTP status code of the response; a few errors returned by the model side directly omit it.","uniqueKey":"error.http_status","typeLabel":"integer"},"request_id":{"type":"string","description":"ID of this request, also returned in the `X-Request-Id` header; include it when reporting a problem. A few errors omit it, so prefer the header.","uniqueKey":"error.request_id","typeLabel":"string"},"type":{"type":"string","description":"Error category, for example `invalid_request_error`, `authentication_error`, `rate_limit_error` or `api_error`; a few errors omit it.","uniqueKey":"error.type","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","value":{"error":{"code":"service_unavailable","http_status":503,"message":"Service temporarily unavailable. Please try again later.","request_id":"req_3f9a1c2b7d4e5f60718293a4","type":"api_error"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"11b2749e-32a5-4071-ae44-e4c4cd8524e3":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Send your DreamTo API Key in the `Authorization` header: `Authorization: Bearer \u003cAPI Key>`.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"24f8f9f5-bc19-4acc-be0d-16bd06900caa":{"url":"https://api.dreamto.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Send your DreamTo API Key in the `Authorization` header: `Authorization: Bearer \u003cAPI Key>`.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Send your DreamTo API Key in the `Authorization` header: `Authorization: Bearer \u003cAPI Key>`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi/en/openai-chat-completions.json"},"subdomain":"dreamto","siteName":"DreamTo API","title":"Create chat completion - DreamTo API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"zh":{"href":"/api-reference/openai-chat-completions/create-chat-completion","matchLevel":1},"en":{"href":"/en/api-reference/openai-chat-completions/create-chat-completion","matchLevel":0}}},"lastModified":"2026-11-29T16:12:29.586Z","originalFileLocation":"en/api-reference/openai-chat-completions/create-chat-completion.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Starting a new project? We recommend trying Responses to take advantage of the latest OpenAI platform features. Compare Chat Completions with Responses. --- Creates a model response for the given chat conversation. Learn more in the text generation, vision, and audio guides. Parameter support can differ depending on the model used to generate the response, particularly for newer reasoning models. Parameters that are only supported for reasoning models are noted below. For the current state of unsupported parameters in reasoning models, refer to the reasoning guide. Returns a chat completion object, or a streamed sequence of chat completion chunk objects if the request is streamed.\">\u003cmeta data-mint-head name=\"application-name\" content=\"DreamTo API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dreamto/qWhtKaUK2bd2rkG8/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/dreamto/qWhtKaUK2bd2rkG8/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dreamto/qWhtKaUK2bd2rkG8/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dreamto/qWhtKaUK2bd2rkG8/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dreamto/qWhtKaUK2bd2rkG8/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dreamto/qWhtKaUK2bd2rkG8/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dreamto/qWhtKaUK2bd2rkG8/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dreamto/qWhtKaUK2bd2rkG8/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dreamto/qWhtKaUK2bd2rkG8/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create chat completion - DreamTo API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Starting a new project? We recommend trying Responses to take advantage of the latest OpenAI platform features. Compare Chat Completions with Responses. --- Creates a model response for the given chat conversation. Learn more in the text generation, vision, and audio guides. Parameter support can differ depending on the model used to generate the response, particularly for newer reasoning models. Parameters that are only supported for reasoning models are noted below. For the current state of unsupported parameters in reasoning models, refer to the reasoning guide. Returns a chat completion object, or a streamed sequence of chat completion chunk objects if the request is streamed.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"DreamTo API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.dreamto.ai/en/api-reference/openai-chat-completions/create-chat-completion\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dreamto.mintlify.site/_mintlify/api/og/v2?division=OpenAI+Chat+Completions\u0026amp;title=Create+chat+completion\u0026amp;description=**Starting+a+new+project%3F**+We+recommend+trying+%5BResponses%5D%28https%3A%2F%2Fdevelopers.openai.com%2Fapi%2Freference%2Fresources%2Fresponses%29%0Ato+take+advantage+of+the+latest+Ope\u0026amp;theme=966bd5cf73c175936a3e4273\u0026amp;signature=b5e26f1d63b96b27a6bce1c2eb0eb7539bda8b8c861479e4749588dcd464fd68\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create chat completion - DreamTo API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Starting a new project? We recommend trying Responses to take advantage of the latest OpenAI platform features. Compare Chat Completions with Responses. --- Creates a model response for the given chat conversation. Learn more in the text generation, vision, and audio guides. Parameter support can differ depending on the model used to generate the response, particularly for newer reasoning models. Parameters that are only supported for reasoning models are noted below. For the current state of unsupported parameters in reasoning models, refer to the reasoning guide. Returns a chat completion object, or a streamed sequence of chat completion chunk objects if the request is streamed.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dreamto.mintlify.site/_mintlify/api/og/v2?division=OpenAI+Chat+Completions\u0026amp;title=Create+chat+completion\u0026amp;description=**Starting+a+new+project%3F**+We+recommend+trying+%5BResponses%5D%28https%3A%2F%2Fdevelopers.openai.com%2Fapi%2Freference%2Fresources%2Fresponses%29%0Ato+take+advantage+of+the+latest+Ope\u0026amp;theme=966bd5cf73c175936a3e4273\u0026amp;signature=b5e26f1d63b96b27a6bce1c2eb0eb7539bda8b8c861479e4749588dcd464fd68\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/dreamto/qWhtKaUK2bd2rkG8/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"DreamTo API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3E3E3F\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.dreamto.ai/en/api-reference/openai-chat-completions/create-chat-completion\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/api-reference/openai-chat-completions/create-chat-completion.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.dreamto.ai/en/api-reference/openai-chat-completions/create-chat-completion\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.dreamto.ai/api-reference/openai-chat-completions/create-chat-completion\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.dreamto.ai/api-reference/openai-chat-completions/create-chat-completion\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.dreamto.ai/#organization\",\"name\":\"DreamTo API\",\"url\":\"https://docs.dreamto.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dreamto/qdi4xMMMFQC2W0qR/logo/light.png?fit=max\u0026auto=format\u0026n=qdi4xMMMFQC2W0qR\u0026q=85\u0026s=34f5db7a934e6d8d4723f28e3524c21a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.dreamto.ai#website\",\"name\":\"DreamTo API\",\"url\":\"https://docs.dreamto.ai\",\"publisher\":{\"@id\":\"https://docs.dreamto.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.dreamto.ai/en/api-reference/openai-chat-completions/create-chat-completion#webpage\",\"url\":\"https://docs.dreamto.ai/en/api-reference/openai-chat-completions/create-chat-completion\",\"name\":\"Create chat completion\",\"description\":\"Starting a new project? We recommend trying Responses to take advantage of the latest OpenAI platform features. Compare Chat Completions with Responses. --- Creates a model response for the given chat conversation. Learn more in the text generation, vision, and audio guides. Parameter support can differ depending on the model used to generate the response, particularly for newer reasoning models. Parameters that are only supported for reasoning models are noted below. For the current state of unsupported parameters in reasoning models, refer to the reasoning guide. Returns a chat completion object, or a streamed sequence of chat completion chunk objects if the request is streamed.\",\"dateModified\":\"2026-11-29T16:12:29.586Z\",\"isPartOf\":{\"@id\":\"https://docs.dreamto.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.dreamto.ai/en/api-reference/openai-chat-completions/create-chat-completion#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.dreamto.ai/en/api-reference/openai-chat-completions/create-chat-completion#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Language models (LLM)\",\"item\":\"https://docs.dreamto.ai/en/llm/openai-chat-completions\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OpenAI Chat Completions\",\"item\":\"https://docs.dreamto.ai/en/llm/openai-chat-completions\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create chat completion\",\"item\":\"https://docs.dreamto.ai/en/api-reference/openai-chat-completions/create-chat-completion\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.dreamto.ai/en/api-reference/openai-chat-completions/create-chat-completion#apireference\",\"headline\":\"Create chat completion\",\"name\":\"Create chat completion\",\"description\":\"Starting a new project? We recommend trying Responses to take advantage of the latest OpenAI platform features. Compare Chat Completions with Responses. --- Creates a model response for the given chat conversation. Learn more in the text generation, vision, and audio guides. Parameter support can differ depending on the model used to generate the response, particularly for newer reasoning models. Parameters that are only supported for reasoning models are noted below. For the current state of unsupported parameters in reasoning models, refer to the reasoning guide. Returns a chat completion object, or a streamed sequence of chat completion chunk objects if the request is streamed.\",\"url\":\"https://docs.dreamto.ai/en/api-reference/openai-chat-completions/create-chat-completion\",\"mainEntityOfPage\":{\"@id\":\"https://docs.dreamto.ai/en/api-reference/openai-chat-completions/create-chat-completion#webpage\"},\"dateModified\":\"2026-11-29T16:12:29.586Z\",\"publisher\":{\"@id\":\"https://docs.dreamto.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.dreamto.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"DreamTo API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"DreamTo API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/api-reference/openai-chat-completions/create-chat-completion.md","siteName":"DreamTo API","nav":{"global":null,"languages":[{"language":"zh","default":true,"pages":[{"title":"zh","href":"/api-reference/openai-chat-completions/create-chat-completion"}]},{"language":"en","groups":[{"group":"Get started","pages":[{"title":"DreamTo API Docs","sidebarTitle":"Introduction","href":"/en"},{"title":"Authentication","href":"/en/authentication"},{"title":"Errors","href":"/en/errors"}]},{"group":"Language models (LLM)","pages":[{"group":"OpenAI Chat Completions","icon":"/icons/openai.svg","pages":[{"title":"OpenAI Chat Completions","sidebarTitle":"Models","description":"Call GPT, DeepSeek, Kimi, GLM, Grok, Qwen and other models with the OpenAI Chat Completions protocol: chat, streaming, image input, function calling and structured output.","href":"/en/llm/openai-chat-completions"},{"title":"Create chat completion","deprecated":null,"version":null,"sidebarTitle":"Create chat completion","openapi":"/openapi/en/openai-chat-completions.json post /v1/chat/completions","href":"/en/api-reference/openai-chat-completions/create-chat-completion"}]},{"group":"OpenAI Responses","icon":"/icons/openai.svg","pages":[{"title":"OpenAI Responses","sidebarTitle":"Models","description":"Call GPT models with the OpenAI Responses protocol: text and image input, reasoning effort, streaming events, function calling and structured output.","href":"/en/llm/openai-responses"},{"title":"Create a model response","deprecated":null,"version":null,"sidebarTitle":"Create a model response","openapi":"/openapi/en/openai-responses.json post /v1/responses","href":"/en/api-reference/openai-responses/create-response"}]},{"group":"Gemini generateContent","icon":"/icons/gemini.svg","pages":[{"title":"Gemini generateContent","sidebarTitle":"Models","href":"/en/llm/gemini-generate-content"},{"title":"Generate content","deprecated":null,"version":null,"sidebarTitle":"Generate content","openapi":"/openapi/en/gemini-generate-content.json post /v1beta/models/{model}:generateContent","href":"/en/api-reference/gemini-generate-content/generate-content"},{"title":"Stream generate content","deprecated":null,"version":null,"sidebarTitle":"Stream generate content","openapi":"/openapi/en/gemini-generate-content.json post /v1beta/models/{model}:streamGenerateContent","href":"/en/api-reference/gemini-generate-content/stream-generate-content"}]},{"group":"Anthropic Messages","icon":"/icons/claude.svg","pages":[{"title":"Anthropic Messages","sidebarTitle":"Models","href":"/en/llm/anthropic-messages"},{"title":"Create a message","deprecated":null,"version":null,"sidebarTitle":"Create a message","openapi":"/openapi/en/anthropic-messages.json post /v1/messages","href":"/en/api-reference/anthropic-messages/create-message"}]}]},{"group":"Integrations","pages":[{"title":"Integrations overview","sidebarTitle":"Overview","icon":"plug","href":"/en/integrations/overview"},{"title":"Claude Code","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/claudecode.svg","href":"/en/integrations/claude-code"},{"title":"Codex CLI","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/codex.svg","href":"/en/integrations/codex"},{"title":"Gemini CLI","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/geminicli.svg","href":"/en/integrations/gemini-cli"},{"title":"Cursor","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/cursor.svg","href":"/en/integrations/cursor"},{"title":"CC Switch","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/cc-switch.png","href":"/en/integrations/cc-switch"},{"title":"OpenCode","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/opencode.svg","href":"/en/integrations/opencode"},{"title":"OpenClaw","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/openclaw.svg","href":"/en/integrations/openclaw"},{"title":"Hermes Agent","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/hermesagent.svg","href":"/en/integrations/hermes"},{"title":"Cline / Roo Code","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/cline.svg","href":"/en/integrations/cline"},{"title":"Continue","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/continue.png","href":"/en/integrations/continue"},{"title":"TRAE","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/trae.svg","href":"/en/integrations/trae"},{"title":"WorkBuddy","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/workbuddy.svg","href":"/en/integrations/workbuddy"},{"title":"Cherry Studio","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/cherrystudio.svg","href":"/en/integrations/cherry-studio"},{"title":"LobeChat / NextChat","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dreamto/icons/lobehub.svg","href":"/en/integrations/lobechat-nextchat"},{"title":"SDK quickstart","icon":"cube","href":"/en/integrations/sdks"}]},{"group":"Image generation","pages":[{"group":"Gemini Nano Banana 2.1","icon":"/icons/gemini.svg","pages":[{"title":"Gemini Nano Banana 2.1","sidebarTitle":"Introduction","href":"/en/image/models/gemini-nano-banana-2-1"},{"title":"Generate content","deprecated":null,"version":null,"sidebarTitle":"Generate content","openapi":"/openapi/en/gemini-nano-banana-2-1.json post /v1beta/models/gemini-nano-banana-2.1:generateContent","href":"/en/api-reference/gemini-nano-banana-2-1/generate-content"}]},{"group":"Gemini 3.1 Flash Lite Image","icon":"/icons/gemini.svg","pages":[{"title":"Gemini 3.1 Flash Lite Image","sidebarTitle":"Introduction","href":"/en/image/models/gemini-3-1-flash-lite-image"},{"title":"Generate content","deprecated":null,"version":null,"sidebarTitle":"Generate content","openapi":"/openapi/en/gemini-3-1-flash-lite-image.json post /v1beta/models/gemini-3.1-flash-lite-image:generateContent","href":"/en/api-reference/gemini-3-1-flash-lite-image/generate-content"}]},{"group":"Gemini 3.1 Flash Image","icon":"/icons/gemini.svg","pages":[{"title":"Gemini 3.1 Flash Image","sidebarTitle":"Introduction","href":"/en/image/models/gemini-3-1-flash-image"},{"title":"Generate content","deprecated":null,"version":null,"sidebarTitle":"Generate content","openapi":"/openapi/en/gemini-3-1-flash-image.json post /v1beta/models/gemini-3.1-flash-image:generateContent","href":"/en/api-reference/gemini-3-1-flash-image/generate-content"}]},{"group":"Gemini 3 Pro Image","icon":"/icons/gemini.svg","pages":[{"title":"Gemini 3 Pro Image","sidebarTitle":"Introduction","href":"/en/image/models/gemini-3-pro-image"},{"title":"Generate content","deprecated":null,"version":null,"sidebarTitle":"Generate content","openapi":"/openapi/en/gemini-3-pro-image.json post /v1beta/models/gemini-3-pro-image:generateContent","href":"/en/api-reference/gemini-3-pro-image/generate-content"}]},{"group":"GPT Image 2.6","icon":"/icons/openai.svg","pages":[{"title":"GPT Image 2.6","sidebarTitle":"Introduction","href":"/en/image/models/gpt-image-2-6"},{"title":"Create image","deprecated":null,"version":null,"sidebarTitle":"Create image","openapi":"/openapi/en/gpt-image-2-6.json post /v1/images/generations","href":"/en/api-reference/gpt-image-2-6/create-image"},{"title":"Edit image","deprecated":null,"version":null,"sidebarTitle":"Edit image","openapi":"/openapi/en/gpt-image-2-6.json post /v1/images/edits","href":"/en/api-reference/gpt-image-2-6/edit-image"}]},{"group":"GPT Image 2.5","icon":"/icons/openai.svg","pages":[{"title":"GPT Image 2.5","sidebarTitle":"Introduction","href":"/en/image/models/gpt-image-2-5"},{"title":"Create image","deprecated":null,"version":null,"sidebarTitle":"Create image","openapi":"/openapi/en/gpt-image-2-5.json post /v1/images/generations","href":"/en/api-reference/gpt-image-2-5/create-image"},{"title":"Edit image","deprecated":null,"version":null,"sidebarTitle":"Edit image","openapi":"/openapi/en/gpt-image-2-5.json post /v1/images/edits","href":"/en/api-reference/gpt-image-2-5/edit-image"}]},{"group":"GPT Image 2","icon":"/icons/openai.svg","pages":[{"title":"GPT Image 2","sidebarTitle":"Introduction","href":"/en/image/models/gpt-image-2"},{"title":"Create image","deprecated":null,"version":null,"sidebarTitle":"Create image","openapi":"/openapi/en/gpt-image-2.json post /v1/images/generations","href":"/en/api-reference/gpt-image-2/create-image"},{"title":"Edit image","deprecated":null,"version":null,"sidebarTitle":"Edit image","openapi":"/openapi/en/gpt-image-2.json post /v1/images/edits","href":"/en/api-reference/gpt-image-2/edit-image"}]},{"group":"GPT Image 2.6 Economy","icon":"/icons/openai.svg","pages":[{"title":"GPT Image 2.6 Economy","sidebarTitle":"Introduction","href":"/en/image/models/gpt-image-2-6-economy"},{"title":"Create image","deprecated":null,"version":null,"sidebarTitle":"Create image","openapi":"/openapi/en/gpt-image-2-6-economy.json post /v1/images/generations","href":"/en/api-reference/gpt-image-2-6-economy/create-image"},{"title":"Edit image","deprecated":null,"version":null,"sidebarTitle":"Edit image","openapi":"/openapi/en/gpt-image-2-6-economy.json post /v1/images/edits","href":"/en/api-reference/gpt-image-2-6-economy/edit-image"}]},{"group":"GPT Image 2.5 Economy","icon":"/icons/openai.svg","pages":[{"title":"GPT Image 2.5 Economy","sidebarTitle":"Introduction","href":"/en/image/models/gpt-image-2-5-economy"},{"title":"Create image","deprecated":null,"version":null,"sidebarTitle":"Create image","openapi":"/openapi/en/gpt-image-2-5-economy.json post /v1/images/generations","href":"/en/api-reference/gpt-image-2-5-economy/create-image"},{"title":"Edit image","deprecated":null,"version":null,"sidebarTitle":"Edit image","openapi":"/openapi/en/gpt-image-2-5-economy.json post /v1/images/edits","href":"/en/api-reference/gpt-image-2-5-economy/edit-image"}]},{"group":"GPT Image 2 Economy","icon":"/icons/openai.svg","pages":[{"title":"GPT Image 2 Economy","sidebarTitle":"Introduction","href":"/en/image/models/gpt-image-2-economy"},{"title":"Create image","deprecated":null,"version":null,"sidebarTitle":"Create image","openapi":"/openapi/en/gpt-image-2-economy.json post /v1/images/generations","href":"/en/api-reference/gpt-image-2-economy/create-image"},{"title":"Edit image","deprecated":null,"version":null,"sidebarTitle":"Edit image","openapi":"/openapi/en/gpt-image-2-economy.json post /v1/images/edits","href":"/en/api-reference/gpt-image-2-economy/edit-image"}]},{"group":"Seedream 5.5","icon":"/icons/doubao.svg","pages":[{"title":"Seedream 5.5","sidebarTitle":"Introduction","href":"/en/image/models/seedream-5-5"},{"title":"Create image","deprecated":null,"version":null,"sidebarTitle":"Create image","openapi":"/openapi/en/seedream-5-5.json post /api/v3/images/generations","href":"/en/api-reference/seedream-5-5/create-image"},{"group":"Guides","icon":"wand-magic-sparkles","expanded":true,"pages":[{"title":"Multi-turn editing consistency","href":"/en/image/models/seedream-5-5/multi-turn-editing"},{"title":"Native RGBA images (transparent background)","href":"/en/image/models/seedream-5-5/native-rgba"},{"title":"Fine-grained layer decomposition","href":"/en/image/models/seedream-5-5/layer-decomposition"},{"title":"Rich-text OCR (text-layer content and styles)","href":"/en/image/models/seedream-5-5/rich-text-ocr"},{"title":"Image output options and limits","href":"/en/image/models/seedream-5-5/image-output"},{"title":"OCR supported fonts","href":"/en/image/models/seedream-5-5/ocr-supported-fonts"}]}]},{"group":"Qwen-Image 3.0 Pro","icon":"/icons/qwen.svg","pages":[{"title":"Qwen-Image 3.0 Pro","sidebarTitle":"Introduction","href":"/en/image/models/qwen-image-3-0-pro"},{"title":"Create image","deprecated":null,"version":null,"sidebarTitle":"Create image","openapi":"/openapi/en/qwen-image-3-0-pro.json post /api/v1/services/aigc/multimodal-generation/generation","href":"/en/api-reference/qwen-image-3-0-pro/create-image"},{"group":"Guides","icon":"wand-magic-sparkles","expanded":true,"pages":[{"title":"Text to image","href":"/en/image/models/qwen-image-3-0-pro/text-to-image"},{"title":"Image editing and multi-image fusion","href":"/en/image/models/qwen-image-3-0-pro/image-editing"},{"title":"Prompt rewriting","href":"/en/image/models/qwen-image-3-0-pro/prompt-rewriting"},{"title":"Sizes and billing tiers","href":"/en/image/models/qwen-image-3-0-pro/size-and-billing"}]}]},{"group":"Qwen-Image 3.0","icon":"/icons/qwen.svg","pages":[{"title":"Qwen-Image 3.0","sidebarTitle":"Introduction","href":"/en/image/models/qwen-image-3-0"},{"title":"Create image","deprecated":null,"version":null,"sidebarTitle":"Create image","openapi":"/openapi/en/qwen-image-3-0.json post /api/v1/services/aigc/multimodal-generation/generation","href":"/en/api-reference/qwen-image-3-0/create-image"},{"group":"Guides","icon":"wand-magic-sparkles","expanded":true,"pages":[{"title":"Text to image","href":"/en/image/models/qwen-image-3-0/text-to-image"},{"title":"Image editing and multi-image fusion","href":"/en/image/models/qwen-image-3-0/image-editing"},{"title":"Prompt rewriting","href":"/en/image/models/qwen-image-3-0/prompt-rewriting"},{"title":"Sizes and billing tiers","href":"/en/image/models/qwen-image-3-0/size-and-billing"}]}]},{"group":"Qwen-Image 2.1 Pro","icon":"/icons/qwen.svg","pages":[{"title":"Qwen-Image 2.1 Pro","sidebarTitle":"Introduction","href":"/en/image/models/qwen-image-2-1-pro"},{"title":"Create image","deprecated":null,"version":null,"sidebarTitle":"Create image","openapi":"/openapi/en/qwen-image-2-1-pro.json post /v1/images/generations","href":"/en/api-reference/qwen-image-2-1-pro/create-image"}]},{"group":"Qwen-Image 2.1 Turbo","icon":"/icons/qwen.svg","pages":[{"title":"Qwen-Image 2.1 Turbo","sidebarTitle":"Introduction","href":"/en/image/models/qwen-image-2-1-turbo"},{"title":"Create image","deprecated":null,"version":null,"sidebarTitle":"Create image","openapi":"/openapi/en/qwen-image-2-1-turbo.json post /v1/images/generations","href":"/en/api-reference/qwen-image-2-1-turbo/create-image"}]}]},{"group":"Seedance video","pages":[{"title":"Seedance video generation: shared guide","sidebarTitle":"Shared guide","href":"/en/video/seedance-2-0"},{"sidebarTitle":"Callbacks and signatures","title":"Task callback","href":"/en/webhooks/task-callback"},{"group":"Seedance 2.5","icon":"/icons/doubao.svg","pages":[{"title":"Seedance 2.5 video generation","sidebarTitle":"Introduction","href":"/en/video/models/seedance-2-5"},{"title":"Create video task","deprecated":null,"version":null,"sidebarTitle":"Create video task","openapi":"/openapi/en/seedance-2-5.json post /api/v3/contents/generations/tasks","href":"/en/api-reference/seedance-2-5/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/seedance-2-5.json get /api/v3/contents/generations/tasks/{id}","href":"/en/api-reference/seedance-2-5/get-task"},{"title":"List tasks","deprecated":null,"version":null,"sidebarTitle":"List tasks","openapi":"/openapi/en/seedance-2-5.json get /api/v3/contents/generations/tasks","href":"/en/api-reference/seedance-2-5/list-tasks"},{"title":"Task completed callback","version":null,"deprecated":null,"sidebarTitle":"Task completed callback","openapi":"/openapi/en/seedance-2-5.json webhook seedanceTaskCompleted","href":"/en/api-reference/seedance-2-5/task-callback"},{"group":"Examples","icon":"wand-magic-sparkles","expanded":true,"pages":[{"title":"Text to video","href":"/en/video/models/seedance-2-5/scenarios/text-to-video"},{"title":"Image to video (first frame)","href":"/en/video/models/seedance-2-5/scenarios/image-to-video"},{"title":"First and last frame","href":"/en/video/models/seedance-2-5/scenarios/first-last-frame"},{"title":"Multi-image reference","href":"/en/video/models/seedance-2-5/scenarios/multi-image-reference"},{"title":"Video editing","href":"/en/video/models/seedance-2-5/scenarios/video-edit"},{"title":"Video extension","href":"/en/video/models/seedance-2-5/scenarios/video-extend"},{"title":"Reference audio","href":"/en/video/models/seedance-2-5/scenarios/reference-audio"},{"title":"Web search","href":"/en/video/models/seedance-2-5/scenarios/web-search"},{"title":"Asset library reference","href":"/en/video/models/seedance-2-5/scenarios/asset-reference"},{"title":"Smart duration + callback","href":"/en/video/models/seedance-2-5/scenarios/smart-duration-callback"},{"title":"Seedance 2.5 long video","href":"/en/video/models/seedance-2-5/scenarios/seedance-2-5-long-video"}]}]},{"group":"Seedance 2.5 Flash","icon":"/icons/doubao.svg","pages":[{"title":"Seedance 2.5 Flash video generation","sidebarTitle":"Introduction","href":"/en/video/models/seedance-2-5-flash"},{"title":"Create video task","deprecated":null,"version":null,"sidebarTitle":"Create video task","openapi":"/openapi/en/seedance-2-5-flash.json post /api/v3/contents/generations/tasks","href":"/en/api-reference/seedance-2-5-flash/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/seedance-2-5-flash.json get /api/v3/contents/generations/tasks/{id}","href":"/en/api-reference/seedance-2-5-flash/get-task"},{"title":"List tasks","deprecated":null,"version":null,"sidebarTitle":"List tasks","openapi":"/openapi/en/seedance-2-5-flash.json get /api/v3/contents/generations/tasks","href":"/en/api-reference/seedance-2-5-flash/list-tasks"},{"group":"Examples","icon":"wand-magic-sparkles","expanded":true,"pages":[{"title":"Text to video","href":"/en/video/models/seedance-2-5-flash/scenarios/text-to-video"},{"title":"Image to video (first frame)","href":"/en/video/models/seedance-2-5-flash/scenarios/image-to-video"},{"title":"First and last frame","href":"/en/video/models/seedance-2-5-flash/scenarios/first-last-frame"},{"title":"Multi-image reference","href":"/en/video/models/seedance-2-5-flash/scenarios/multi-image-reference"},{"title":"Video editing","href":"/en/video/models/seedance-2-5-flash/scenarios/video-edit"},{"title":"Video extension","href":"/en/video/models/seedance-2-5-flash/scenarios/video-extend"},{"title":"Reference audio","href":"/en/video/models/seedance-2-5-flash/scenarios/reference-audio"},{"title":"Web search","href":"/en/video/models/seedance-2-5-flash/scenarios/web-search"}]}]},{"group":"Seedance 2.0","icon":"/icons/doubao.svg","pages":[{"title":"Seedance 2.0 video generation","sidebarTitle":"Introduction","href":"/en/video/models/seedance-2-0"},{"title":"Create video task","deprecated":null,"version":null,"sidebarTitle":"Create video task","openapi":"/openapi/en/seedance-2-0.json post /api/v3/contents/generations/tasks","href":"/en/api-reference/seedance-2-0/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/seedance-2-0.json get /api/v3/contents/generations/tasks/{id}","href":"/en/api-reference/seedance-2-0/get-task"},{"title":"List tasks","deprecated":null,"version":null,"sidebarTitle":"List tasks","openapi":"/openapi/en/seedance-2-0.json get /api/v3/contents/generations/tasks","href":"/en/api-reference/seedance-2-0/list-tasks"},{"title":"Task completed callback","version":null,"deprecated":null,"sidebarTitle":"Task completed callback","openapi":"/openapi/en/seedance-2-0.json webhook seedanceTaskCompleted","href":"/en/api-reference/seedance-2-0/task-callback"},{"group":"Examples","icon":"wand-magic-sparkles","expanded":true,"pages":[{"title":"Text to video","href":"/en/video/models/seedance-2-0/scenarios/text-to-video"},{"title":"Image to video (first frame)","href":"/en/video/models/seedance-2-0/scenarios/image-to-video"},{"title":"First and last frame","href":"/en/video/models/seedance-2-0/scenarios/first-last-frame"},{"title":"Multi-image reference","href":"/en/video/models/seedance-2-0/scenarios/multi-image-reference"},{"title":"Video editing","href":"/en/video/models/seedance-2-0/scenarios/video-edit"},{"title":"Video extension","href":"/en/video/models/seedance-2-0/scenarios/video-extend"},{"title":"Reference audio","href":"/en/video/models/seedance-2-0/scenarios/reference-audio"},{"title":"Web search","href":"/en/video/models/seedance-2-0/scenarios/web-search"},{"title":"Asset library reference","href":"/en/video/models/seedance-2-0/scenarios/asset-reference"},{"title":"Smart duration + callback","href":"/en/video/models/seedance-2-0/scenarios/smart-duration-callback"}]}]},{"group":"Seedance 2.0 Fast","icon":"/icons/doubao.svg","pages":[{"title":"Seedance 2.0 Fast video generation","sidebarTitle":"Introduction","href":"/en/video/models/seedance-2-0-fast"},{"title":"Create video task","deprecated":null,"version":null,"sidebarTitle":"Create video task","openapi":"/openapi/en/seedance-2-0-fast.json post /api/v3/contents/generations/tasks","href":"/en/api-reference/seedance-2-0-fast/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/seedance-2-0-fast.json get /api/v3/contents/generations/tasks/{id}","href":"/en/api-reference/seedance-2-0-fast/get-task"},{"title":"List tasks","deprecated":null,"version":null,"sidebarTitle":"List tasks","openapi":"/openapi/en/seedance-2-0-fast.json get /api/v3/contents/generations/tasks","href":"/en/api-reference/seedance-2-0-fast/list-tasks"},{"title":"Task completed callback","version":null,"deprecated":null,"sidebarTitle":"Task completed callback","openapi":"/openapi/en/seedance-2-0-fast.json webhook seedanceTaskCompleted","href":"/en/api-reference/seedance-2-0-fast/task-callback"},{"group":"Examples","icon":"wand-magic-sparkles","expanded":true,"pages":[{"title":"Text to video","href":"/en/video/models/seedance-2-0-fast/scenarios/text-to-video"},{"title":"Image to video (first frame)","href":"/en/video/models/seedance-2-0-fast/scenarios/image-to-video"},{"title":"First and last frame","href":"/en/video/models/seedance-2-0-fast/scenarios/first-last-frame"},{"title":"Multi-image reference","href":"/en/video/models/seedance-2-0-fast/scenarios/multi-image-reference"},{"title":"Reference audio","href":"/en/video/models/seedance-2-0-fast/scenarios/reference-audio"},{"title":"Web search","href":"/en/video/models/seedance-2-0-fast/scenarios/web-search"},{"title":"Asset library reference","href":"/en/video/models/seedance-2-0-fast/scenarios/asset-reference"},{"title":"Fast / Mini drafts","href":"/en/video/models/seedance-2-0-fast/scenarios/fast-draft"}]}]},{"group":"Seedance 2.0 Mini","icon":"/icons/doubao.svg","pages":[{"title":"Seedance 2.0 Mini video generation","sidebarTitle":"Introduction","href":"/en/video/models/seedance-2-0-mini"},{"title":"Create video task","deprecated":null,"version":null,"sidebarTitle":"Create video task","openapi":"/openapi/en/seedance-2-0-mini.json post /api/v3/contents/generations/tasks","href":"/en/api-reference/seedance-2-0-mini/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/seedance-2-0-mini.json get /api/v3/contents/generations/tasks/{id}","href":"/en/api-reference/seedance-2-0-mini/get-task"},{"title":"List tasks","deprecated":null,"version":null,"sidebarTitle":"List tasks","openapi":"/openapi/en/seedance-2-0-mini.json get /api/v3/contents/generations/tasks","href":"/en/api-reference/seedance-2-0-mini/list-tasks"},{"title":"Task completed callback","version":null,"deprecated":null,"sidebarTitle":"Task completed callback","openapi":"/openapi/en/seedance-2-0-mini.json webhook seedanceTaskCompleted","href":"/en/api-reference/seedance-2-0-mini/task-callback"},{"group":"Examples","icon":"wand-magic-sparkles","expanded":true,"pages":[{"title":"Text to video","href":"/en/video/models/seedance-2-0-mini/scenarios/text-to-video"},{"title":"Image to video (first frame)","href":"/en/video/models/seedance-2-0-mini/scenarios/image-to-video"},{"title":"First and last frame","href":"/en/video/models/seedance-2-0-mini/scenarios/first-last-frame"},{"title":"Multi-image reference","href":"/en/video/models/seedance-2-0-mini/scenarios/multi-image-reference"},{"title":"Reference audio","href":"/en/video/models/seedance-2-0-mini/scenarios/reference-audio"},{"title":"Web search","href":"/en/video/models/seedance-2-0-mini/scenarios/web-search"},{"title":"Asset library reference","href":"/en/video/models/seedance-2-0-mini/scenarios/asset-reference"},{"title":"Fast / Mini drafts","href":"/en/video/models/seedance-2-0-mini/scenarios/fast-draft"}]}]},{"group":"Seedance asset library","icon":"/icons/doubao.svg","pages":[{"title":"Seedance asset library","sidebarTitle":"Overview","href":"/en/assets/seedance-asset-library"},{"title":"CreateAssetGroup","deprecated":null,"version":null,"sidebarTitle":"CreateAssetGroup","openapi":"/openapi/en.json post /api/v3/assets?Action=CreateAssetGroup\u0026Version=2024-01-01","href":"/en/api-reference/assets/create-asset-group"},{"title":"GetAssetGroup","deprecated":null,"version":null,"sidebarTitle":"GetAssetGroup","openapi":"/openapi/en.json post /api/v3/assets?Action=GetAssetGroup\u0026Version=2024-01-01","href":"/en/api-reference/assets/get-asset-group"},{"title":"ListAssetGroups","deprecated":null,"version":null,"sidebarTitle":"ListAssetGroups","openapi":"/openapi/en.json post /api/v3/assets?Action=ListAssetGroups\u0026Version=2024-01-01","href":"/en/api-reference/assets/list-asset-groups"},{"title":"UpdateAssetGroup","deprecated":null,"version":null,"sidebarTitle":"UpdateAssetGroup","openapi":"/openapi/en.json post /api/v3/assets?Action=UpdateAssetGroup\u0026Version=2024-01-01","href":"/en/api-reference/assets/update-asset-group"},{"title":"DeleteAssetGroup","deprecated":null,"version":null,"sidebarTitle":"DeleteAssetGroup","openapi":"/openapi/en.json post /api/v3/assets?Action=DeleteAssetGroup\u0026Version=2024-01-01","href":"/en/api-reference/assets/delete-asset-group"},{"title":"CreateAsset","deprecated":null,"version":null,"sidebarTitle":"CreateAsset","openapi":"/openapi/en.json post /api/v3/assets?Action=CreateAsset\u0026Version=2024-01-01","href":"/en/api-reference/assets/create-asset"},{"title":"GetAsset","deprecated":null,"version":null,"sidebarTitle":"GetAsset","openapi":"/openapi/en.json post /api/v3/assets?Action=GetAsset\u0026Version=2024-01-01","href":"/en/api-reference/assets/get-asset"},{"title":"ListAssets","deprecated":null,"version":null,"sidebarTitle":"ListAssets","openapi":"/openapi/en.json post /api/v3/assets?Action=ListAssets\u0026Version=2024-01-01","href":"/en/api-reference/assets/list-assets"},{"title":"UpdateAsset","deprecated":null,"version":null,"sidebarTitle":"UpdateAsset","openapi":"/openapi/en.json post /api/v3/assets?Action=UpdateAsset\u0026Version=2024-01-01","href":"/en/api-reference/assets/update-asset"},{"title":"DeleteAsset","deprecated":null,"version":null,"sidebarTitle":"DeleteAsset","openapi":"/openapi/en.json post /api/v3/assets?Action=DeleteAsset\u0026Version=2024-01-01","href":"/en/api-reference/assets/delete-asset"}]}]},{"group":"MiniMax video","pages":[{"group":"MiniMax H3","icon":"/icons/minimax.svg","pages":[{"title":"MiniMax H3","sidebarTitle":"Introduction","href":"/en/video/models/minimax-h3"},{"title":"Create video generation task","deprecated":null,"version":null,"sidebarTitle":"Create video generation task","openapi":"/openapi/en/minimax-h3.json post /v2/video_generation","href":"/en/api-reference/minimax-h3/create-video-generation"},{"title":"Create video regeneration task","deprecated":null,"version":null,"sidebarTitle":"Create video regeneration task","openapi":"/openapi/en/minimax-h3.json post /v2/video_regeneration","href":"/en/api-reference/minimax-h3/create-video-regeneration"},{"title":"Create H3 Context IR task","deprecated":null,"version":null,"sidebarTitle":"Create H3 Context IR task","openapi":"/openapi/en/minimax-h3.json post /v2/h3_context_ir","href":"/en/api-reference/minimax-h3/create-context-ir"},{"title":"Query task","deprecated":null,"version":null,"sidebarTitle":"Query task","openapi":"/openapi/en/minimax-h3.json get /v2/query/video_generation/{task_id}","href":"/en/api-reference/minimax-h3/query-task"}]}]},{"group":"Kling video","pages":[{"group":"Kling 4.0","icon":"/icons/kling.svg","pages":[{"title":"Kling 4.0","sidebarTitle":"Introduction","href":"/en/video/models/kling-4-0"},{"title":"Create a video task","deprecated":null,"version":null,"sidebarTitle":"Create a video task","openapi":"/openapi/en/kling-4-0.json post /v1/videos","href":"/en/api-reference/kling-4-0/create-task"},{"title":"Query a video task","deprecated":null,"version":null,"sidebarTitle":"Query a video task","openapi":"/openapi/en/kling-4-0.json get /v1/videos/{task_id}","href":"/en/api-reference/kling-4-0/query-task"}]},{"group":"Kling 4.0 Omni","icon":"/icons/kling.svg","pages":[{"title":"Kling 4.0 Omni","sidebarTitle":"Introduction","href":"/en/video/models/kling-4-0-omni"},{"title":"Create a video task","deprecated":null,"version":null,"sidebarTitle":"Create a video task","openapi":"/openapi/en/kling-4-0-omni.json post /v1/videos","href":"/en/api-reference/kling-4-0-omni/create-task"},{"title":"Query a video task","deprecated":null,"version":null,"sidebarTitle":"Query a video task","openapi":"/openapi/en/kling-4-0-omni.json get /v1/videos/{task_id}","href":"/en/api-reference/kling-4-0-omni/query-task"}]}]},{"group":"Vidu video","pages":[{"group":"Vidu Q4 Preview","icon":"/icons/vidu.svg","pages":[{"title":"Vidu Q4 Preview","sidebarTitle":"Introduction","href":"/en/video/models/vidu-q4-preview"},{"title":"Create a video task","deprecated":null,"version":null,"sidebarTitle":"Create a video task","openapi":"/openapi/en/vidu-q4-preview.json post /v1/videos","href":"/en/api-reference/vidu-q4-preview/create-task"},{"title":"Query a video task","deprecated":null,"version":null,"sidebarTitle":"Query a video task","openapi":"/openapi/en/vidu-q4-preview.json get /v1/videos/{task_id}","href":"/en/api-reference/vidu-q4-preview/query-task"}]}]},{"group":"Wan video","pages":[{"group":"Wan 3.0","icon":"/icons/qwen.svg","pages":[{"title":"Wan 3.0","sidebarTitle":"Introduction","href":"/en/video/models/wan-3-0"},{"title":"Create video generation task","deprecated":null,"version":null,"sidebarTitle":"Create video generation task","openapi":"/openapi/en/wan-3-0.json post /api/v1/services/aigc/video-generation/video-synthesis","href":"/en/api-reference/wan-3-0/create-video-synthesis"},{"title":"Query task","deprecated":null,"version":null,"sidebarTitle":"Query task","openapi":"/openapi/en/wan-3-0.json get /api/v1/tasks/{task_id}","href":"/en/api-reference/wan-3-0/query-task"},{"group":"Examples","icon":"wand-magic-sparkles","expanded":true,"pages":[{"title":"Text to video","href":"/en/video/models/wan-3-0/scenarios/text-to-video"},{"title":"Image to video (first frame)","href":"/en/video/models/wan-3-0/scenarios/image-to-video"},{"title":"First \u0026 last frame to video","href":"/en/video/models/wan-3-0/scenarios/first-last-frame"},{"title":"Omni reference to video","href":"/en/video/models/wan-3-0/scenarios/multi-reference"},{"title":"Video edit","href":"/en/video/models/wan-3-0/scenarios/video-edit"},{"title":"Video extend","href":"/en/video/models/wan-3-0/scenarios/video-extend"}]}]},{"group":"Wan 3.0 Prime","icon":"/icons/qwen.svg","pages":[{"title":"Wan 3.0 Prime","sidebarTitle":"Introduction","href":"/en/video/models/wan-3-0-prime"},{"title":"Create video generation task","deprecated":null,"version":null,"sidebarTitle":"Create video generation task","openapi":"/openapi/en/wan-3-0-prime.json post /api/v1/services/aigc/video-generation/video-synthesis","href":"/en/api-reference/wan-3-0-prime/create-video-synthesis"},{"title":"Query task","deprecated":null,"version":null,"sidebarTitle":"Query task","openapi":"/openapi/en/wan-3-0-prime.json get /api/v1/tasks/{task_id}","href":"/en/api-reference/wan-3-0-prime/query-task"},{"group":"Examples","icon":"wand-magic-sparkles","expanded":true,"pages":[{"title":"Text to video","href":"/en/video/models/wan-3-0-prime/scenarios/text-to-video"},{"title":"Image to video (first frame)","href":"/en/video/models/wan-3-0-prime/scenarios/image-to-video"},{"title":"First \u0026 last frame to video","href":"/en/video/models/wan-3-0-prime/scenarios/first-last-frame"},{"title":"Omni reference to video","href":"/en/video/models/wan-3-0-prime/scenarios/multi-reference"},{"title":"Video edit","href":"/en/video/models/wan-3-0-prime/scenarios/video-edit"},{"title":"Video extend","href":"/en/video/models/wan-3-0-prime/scenarios/video-extend"}]}]},{"group":"Wan 3.0 Spicy","icon":"/icons/qwen.svg","pages":[{"title":"Wan 3.0 Spicy","sidebarTitle":"Introduction","href":"/en/video/models/wan-3-0-spicy"},{"title":"Create video generation task","deprecated":null,"version":null,"sidebarTitle":"Create video generation task","openapi":"/openapi/en/wan-3-0-spicy.json post /api/v1/services/aigc/video-generation/video-synthesis","href":"/en/api-reference/wan-3-0-spicy/create-video-synthesis"},{"title":"Query task","deprecated":null,"version":null,"sidebarTitle":"Query task","openapi":"/openapi/en/wan-3-0-spicy.json get /api/v1/tasks/{task_id}","href":"/en/api-reference/wan-3-0-spicy/query-task"},{"group":"Examples","icon":"wand-magic-sparkles","expanded":true,"pages":[{"title":"Text to video","href":"/en/video/models/wan-3-0-spicy/scenarios/text-to-video"},{"title":"Image to video (first frame)","href":"/en/video/models/wan-3-0-spicy/scenarios/image-to-video"},{"title":"First \u0026 last frame to video","href":"/en/video/models/wan-3-0-spicy/scenarios/first-last-frame"},{"title":"Omni reference to video","href":"/en/video/models/wan-3-0-spicy/scenarios/multi-reference"},{"title":"Video edit","href":"/en/video/models/wan-3-0-spicy/scenarios/video-edit"},{"title":"Video extend","href":"/en/video/models/wan-3-0-spicy/scenarios/video-extend"}]}]}]},{"group":"PixVerse video","pages":[{"group":"PixVerse V6 Max Text to Video","icon":"/icons/pixverse.svg","pages":[{"title":"PixVerse V6 Max Text to Video","sidebarTitle":"Introduction","href":"/en/video/models/pixverse-v6-max-text-to-video"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/pixverse-v6-max-text-to-video.json post /api/v1/jobs/createTask","href":"/en/api-reference/pixverse-v6-max-text-to-video/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/pixverse-v6-max-text-to-video.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/pixverse-v6-max-text-to-video/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/pixverse-v6-max-text-to-video.json webhook pixverseTaskCompleted","href":"/en/api-reference/pixverse-v6-max-text-to-video/task-callback"}]},{"group":"PixVerse V6 Max Image to Video","icon":"/icons/pixverse.svg","pages":[{"title":"PixVerse V6 Max Image to Video","sidebarTitle":"Introduction","href":"/en/video/models/pixverse-v6-max-image-to-video"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/pixverse-v6-max-image-to-video.json post /api/v1/jobs/createTask","href":"/en/api-reference/pixverse-v6-max-image-to-video/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/pixverse-v6-max-image-to-video.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/pixverse-v6-max-image-to-video/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/pixverse-v6-max-image-to-video.json webhook pixverseTaskCompleted","href":"/en/api-reference/pixverse-v6-max-image-to-video/task-callback"}]},{"group":"PixVerse V6 Text to Video","icon":"/icons/pixverse.svg","pages":[{"title":"PixVerse V6 Text to Video","sidebarTitle":"Introduction","href":"/en/video/models/pixverse-v6-text-to-video"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/pixverse-v6-text-to-video.json post /api/v1/jobs/createTask","href":"/en/api-reference/pixverse-v6-text-to-video/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/pixverse-v6-text-to-video.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/pixverse-v6-text-to-video/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/pixverse-v6-text-to-video.json webhook pixverseTaskCompleted","href":"/en/api-reference/pixverse-v6-text-to-video/task-callback"}]},{"group":"PixVerse V6 Image to Video","icon":"/icons/pixverse.svg","pages":[{"title":"PixVerse V6 Image to Video","sidebarTitle":"Introduction","href":"/en/video/models/pixverse-v6-image-to-video"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/pixverse-v6-image-to-video.json post /api/v1/jobs/createTask","href":"/en/api-reference/pixverse-v6-image-to-video/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/pixverse-v6-image-to-video.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/pixverse-v6-image-to-video/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/pixverse-v6-image-to-video.json webhook pixverseTaskCompleted","href":"/en/api-reference/pixverse-v6-image-to-video/task-callback"}]},{"group":"PixVerse V6 Transition","icon":"/icons/pixverse.svg","pages":[{"title":"PixVerse V6 Transition","sidebarTitle":"Introduction","href":"/en/video/models/pixverse-v6-transition"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/pixverse-v6-transition.json post /api/v1/jobs/createTask","href":"/en/api-reference/pixverse-v6-transition/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/pixverse-v6-transition.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/pixverse-v6-transition/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/pixverse-v6-transition.json webhook pixverseTaskCompleted","href":"/en/api-reference/pixverse-v6-transition/task-callback"}]},{"group":"PixVerse V6 Extend","icon":"/icons/pixverse.svg","pages":[{"title":"PixVerse V6 Extend","sidebarTitle":"Introduction","href":"/en/video/models/pixverse-v6-extend"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/pixverse-v6-extend.json post /api/v1/jobs/createTask","href":"/en/api-reference/pixverse-v6-extend/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/pixverse-v6-extend.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/pixverse-v6-extend/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/pixverse-v6-extend.json webhook pixverseTaskCompleted","href":"/en/api-reference/pixverse-v6-extend/task-callback"}]},{"group":"PixVerse V6 Reference to Video","icon":"/icons/pixverse.svg","pages":[{"title":"PixVerse V6 Reference to Video","sidebarTitle":"Introduction","href":"/en/video/models/pixverse-v6-reference-to-video"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/pixverse-v6-reference-to-video.json post /api/v1/jobs/createTask","href":"/en/api-reference/pixverse-v6-reference-to-video/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/pixverse-v6-reference-to-video.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/pixverse-v6-reference-to-video/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/pixverse-v6-reference-to-video.json webhook pixverseTaskCompleted","href":"/en/api-reference/pixverse-v6-reference-to-video/task-callback"}]}]},{"group":"MAGI-2 video","pages":[{"group":"MAGI-2 Text to Video","icon":"video","pages":[{"title":"MAGI-2 Text to Video","sidebarTitle":"Introduction","href":"/en/video/models/magi-2-text-to-video"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/magi-2-text-to-video.json post /api/v1/jobs/createTask","href":"/en/api-reference/magi-2-text-to-video/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/magi-2-text-to-video.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/magi-2-text-to-video/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/magi-2-text-to-video.json webhook magi2TaskCompleted","href":"/en/api-reference/magi-2-text-to-video/task-callback"}]},{"group":"MAGI-2 Image to Video","icon":"video","pages":[{"title":"MAGI-2 Image to Video","sidebarTitle":"Introduction","href":"/en/video/models/magi-2-image-to-video"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/magi-2-image-to-video.json post /api/v1/jobs/createTask","href":"/en/api-reference/magi-2-image-to-video/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/magi-2-image-to-video.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/magi-2-image-to-video/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/magi-2-image-to-video.json webhook magi2TaskCompleted","href":"/en/api-reference/magi-2-image-to-video/task-callback"}]},{"group":"MAGI-2 Reference to Video","icon":"video","pages":[{"title":"MAGI-2 Reference to Video","sidebarTitle":"Introduction","href":"/en/video/models/magi-2-reference-to-video"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/magi-2-reference-to-video.json post /api/v1/jobs/createTask","href":"/en/api-reference/magi-2-reference-to-video/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/magi-2-reference-to-video.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/magi-2-reference-to-video/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/magi-2-reference-to-video.json webhook magi2TaskCompleted","href":"/en/api-reference/magi-2-reference-to-video/task-callback"}]}]},{"group":"Music generation","pages":[{"group":"Suno","icon":"music","pages":[{"title":"Suno","sidebarTitle":"Introduction","href":"/en/music/suno"},{"group":"Songs","pages":[{"group":"Generate music","pages":[{"title":"Suno Generate music","sidebarTitle":"Introduction","href":"/en/music/suno/generate"},{"title":"Generate music: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-generate.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-generate/create-task"},{"title":"Generate music: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-generate.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-generate/query-task"},{"title":"Generate music: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-generate.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-generate/task-callback"}]},{"group":"Extend music","pages":[{"title":"Suno Extend music","sidebarTitle":"Introduction","href":"/en/music/suno/extend"},{"title":"Extend music: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-extend.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-extend/create-task"},{"title":"Extend music: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-extend.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-extend/query-task"},{"title":"Extend music: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-extend.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-extend/task-callback"}]},{"group":"Upload and cover audio","pages":[{"title":"Suno Upload and cover audio","sidebarTitle":"Introduction","href":"/en/music/suno/upload-and-cover-audio"},{"title":"Upload and cover audio: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-upload-and-cover-audio.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-upload-and-cover-audio/create-task"},{"title":"Upload and cover audio: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-upload-and-cover-audio.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-upload-and-cover-audio/query-task"},{"title":"Upload and cover audio: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-upload-and-cover-audio.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-upload-and-cover-audio/task-callback"}]},{"group":"Upload and extend audio","pages":[{"title":"Suno Upload and extend audio","sidebarTitle":"Introduction","href":"/en/music/suno/upload-extend"},{"title":"Upload and extend audio: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-upload-extend.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-upload-extend/create-task"},{"title":"Upload and extend audio: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-upload-extend.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-upload-extend/query-task"},{"title":"Upload and extend audio: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-upload-extend.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-upload-extend/task-callback"}]},{"group":"Add instrumental","pages":[{"title":"Suno Add instrumental","sidebarTitle":"Introduction","href":"/en/music/suno/add-instrumental"},{"title":"Add instrumental: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-add-instrumental.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-add-instrumental/create-task"},{"title":"Add instrumental: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-add-instrumental.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-add-instrumental/query-task"},{"title":"Add instrumental: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-add-instrumental.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-add-instrumental/task-callback"}]},{"group":"Add vocals","pages":[{"title":"Suno Add vocals","sidebarTitle":"Introduction","href":"/en/music/suno/add-vocals"},{"title":"Add vocals: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-add-vocals.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-add-vocals/create-task"},{"title":"Add vocals: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-add-vocals.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-add-vocals/query-task"},{"title":"Add vocals: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-add-vocals.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-add-vocals/task-callback"}]},{"group":"Get timestamped lyrics","pages":[{"title":"Suno Get timestamped lyrics","sidebarTitle":"Introduction","href":"/en/music/suno/timestamped-lyrics"},{"title":"Get timestamped lyrics: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-timestamped-lyrics.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-timestamped-lyrics/create-task"},{"title":"Get timestamped lyrics: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-timestamped-lyrics.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-timestamped-lyrics/query-task"}]},{"group":"Boost music style","pages":[{"title":"Suno Boost music style","sidebarTitle":"Introduction","href":"/en/music/suno/boost-style"},{"title":"Boost music style: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-boost-style.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-boost-style/create-task"},{"title":"Boost music style: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-boost-style.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-boost-style/query-task"},{"title":"Boost music style: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-boost-style.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-boost-style/task-callback"}]},{"group":"Generate music cover","pages":[{"title":"Suno Generate music cover","sidebarTitle":"Introduction","href":"/en/music/suno/cover"},{"title":"Generate music cover: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-cover.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-cover/create-task"},{"title":"Generate music cover: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-cover.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-cover/query-task"},{"title":"Generate music cover: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-cover.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-cover/task-callback"}]},{"group":"Replace music section","pages":[{"title":"Suno Replace music section","sidebarTitle":"Introduction","href":"/en/music/suno/replace-section"},{"title":"Replace music section: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-replace-section.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-replace-section/create-task"},{"title":"Replace music section: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-replace-section.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-replace-section/query-task"},{"title":"Replace music section: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-replace-section.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-replace-section/task-callback"}]},{"group":"Generate Persona","pages":[{"title":"Suno Generate Persona","sidebarTitle":"Introduction","href":"/en/music/suno/persona"},{"title":"Generate Persona: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-persona.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-persona/create-task"},{"title":"Generate Persona: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-persona.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-persona/query-task"}]},{"group":"Generate mashup","pages":[{"title":"Suno Generate mashup","sidebarTitle":"Introduction","href":"/en/music/suno/mashup"},{"title":"Generate mashup: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-mashup.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-mashup/create-task"},{"title":"Generate mashup: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-mashup.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-mashup/query-task"},{"title":"Generate mashup: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-mashup.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-mashup/task-callback"}]},{"group":"Recover audio","pages":[{"title":"Suno Recover audio","sidebarTitle":"Introduction","href":"/en/music/suno/recovery-audio"},{"title":"Recover audio: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-recovery-audio.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-recovery-audio/create-task"},{"title":"Recover audio: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-recovery-audio.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-recovery-audio/query-task"},{"title":"Recover audio: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-recovery-audio.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-recovery-audio/task-callback"}]}]},{"group":"WAV conversion","pages":[{"group":"Convert to WAV format","pages":[{"title":"Suno Convert to WAV format","sidebarTitle":"Introduction","href":"/en/music/suno/wav"},{"title":"Convert to WAV format: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-wav.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-wav/create-task"},{"title":"Convert to WAV format: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-wav.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-wav/query-task"},{"title":"Convert to WAV format: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-wav.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-wav/task-callback"}]}]},{"group":"Music video","pages":[{"group":"Create music video","pages":[{"title":"Suno Create music video","sidebarTitle":"Introduction","href":"/en/music/suno/music-video"},{"title":"Create music video: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-music-video.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-music-video/create-task"},{"title":"Create music video: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-music-video.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-music-video/query-task"},{"title":"Create music video: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-music-video.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-music-video/task-callback"}]}]},{"group":"Lyrics","pages":[{"group":"Generate lyrics","pages":[{"title":"Suno Generate lyrics","sidebarTitle":"Introduction","href":"/en/music/suno/lyrics"},{"title":"Generate lyrics: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-lyrics.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-lyrics/create-task"},{"title":"Generate lyrics: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-lyrics.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-lyrics/query-task"},{"title":"Generate lyrics: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-lyrics.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-lyrics/task-callback"}]}]},{"group":"Custom voice","pages":[{"group":"Generate validation phrase","pages":[{"title":"Suno Generate validation phrase","sidebarTitle":"Introduction","href":"/en/music/suno/voice-validate"},{"title":"Generate validation phrase: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-voice-validate.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-voice-validate/create-task"},{"title":"Generate validation phrase: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-voice-validate.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-voice-validate/query-task"},{"title":"Generate validation phrase: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-voice-validate.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-voice-validate/task-callback"}]},{"group":"Create custom voice","pages":[{"title":"Suno Create custom voice","sidebarTitle":"Introduction","href":"/en/music/suno/voice-create"},{"title":"Create custom voice: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-voice-create.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-voice-create/create-task"},{"title":"Create custom voice: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-voice-create.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-voice-create/query-task"},{"title":"Create custom voice: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-voice-create.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-voice-create/task-callback"}]},{"group":"Regenerate validation phrase","pages":[{"title":"Suno Regenerate validation phrase","sidebarTitle":"Introduction","href":"/en/music/suno/voice-regenerate"},{"title":"Regenerate validation phrase: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-voice-regenerate.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-voice-regenerate/create-task"},{"title":"Regenerate validation phrase: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-voice-regenerate.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-voice-regenerate/query-task"},{"title":"Regenerate validation phrase: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-voice-regenerate.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-voice-regenerate/task-callback"}]},{"group":"Check voice availability","pages":[{"title":"Suno Check voice availability","sidebarTitle":"Introduction","href":"/en/music/suno/voice-check"},{"title":"Check voice availability: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-voice-check.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-voice-check/create-task"},{"title":"Check voice availability: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-voice-check.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-voice-check/query-task"}]}]},{"group":"Stems and MIDI","pages":[{"group":"Vocal and instrument stem separation","pages":[{"title":"Suno Vocal and instrument stem separation","sidebarTitle":"Introduction","href":"/en/music/suno/separate-vocals"},{"title":"Vocal and instrument stem separation: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-separate-vocals.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-separate-vocals/create-task"},{"title":"Vocal and instrument stem separation: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-separate-vocals.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-separate-vocals/query-task"},{"title":"Vocal and instrument stem separation: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-separate-vocals.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-separate-vocals/task-callback"}]},{"group":"Generate MIDI from audio","pages":[{"title":"Suno Generate MIDI from audio","sidebarTitle":"Introduction","href":"/en/music/suno/midi"},{"title":"Generate MIDI from audio: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-midi.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-midi/create-task"},{"title":"Generate MIDI from audio: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-midi.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-midi/query-task"},{"title":"Generate MIDI from audio: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-midi.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-midi/task-callback"}]}]},{"group":"Sound effects","pages":[{"group":"Generate sounds","pages":[{"title":"Suno Generate sounds","sidebarTitle":"Introduction","href":"/en/music/suno/sounds"},{"title":"Generate sounds: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-sounds.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-sounds/create-task"},{"title":"Generate sounds: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-sounds.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-sounds/query-task"},{"title":"Generate sounds: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-sounds.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-sounds/task-callback"}]}]},{"group":"Speech","pages":[{"group":"Generate speech","pages":[{"title":"Suno Generate speech","sidebarTitle":"Introduction","href":"/en/music/suno/speech"},{"title":"Generate speech: Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/suno-speech.json post /api/v1/jobs/createTask","href":"/en/api-reference/suno-speech/create-task"},{"title":"Generate speech: Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/suno-speech.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/suno-speech/query-task"},{"title":"Generate speech: Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/suno-speech.json webhook sunoTaskCompleted","href":"/en/api-reference/suno-speech/task-callback"}]}]}]}]},{"group":"ElevenLabs speech generation","pages":[{"group":"ElevenLabs V3 Text to Dialogue","icon":"microphone","pages":[{"title":"ElevenLabs V3 Text to Dialogue","sidebarTitle":"Model introduction","href":"/en/music/elevenlabs/text-to-dialogue-v3"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/elevenlabs-text-to-dialogue-v3.json post /api/v1/jobs/createTask","href":"/en/api-reference/elevenlabs-text-to-dialogue-v3/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/elevenlabs-text-to-dialogue-v3.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/elevenlabs-text-to-dialogue-v3/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/elevenlabs-text-to-dialogue-v3.json webhook elevenlabsTaskCompleted","href":"/en/api-reference/elevenlabs-text-to-dialogue-v3/task-callback"}]},{"group":"ElevenLabs Multilingual v2","icon":"microphone","pages":[{"title":"ElevenLabs Multilingual v2","sidebarTitle":"Model introduction","href":"/en/music/elevenlabs/tts-multilingual-v2"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/elevenlabs-tts-multilingual-v2.json post /api/v1/jobs/createTask","href":"/en/api-reference/elevenlabs-tts-multilingual-v2/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/elevenlabs-tts-multilingual-v2.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/elevenlabs-tts-multilingual-v2/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/elevenlabs-tts-multilingual-v2.json webhook elevenlabsTaskCompleted","href":"/en/api-reference/elevenlabs-tts-multilingual-v2/task-callback"}]},{"group":"ElevenLabs Turbo v2.5","icon":"microphone","pages":[{"title":"ElevenLabs Turbo v2.5","sidebarTitle":"Model introduction","href":"/en/music/elevenlabs/tts-turbo-2-5"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/elevenlabs-tts-turbo-2-5.json post /api/v1/jobs/createTask","href":"/en/api-reference/elevenlabs-tts-turbo-2-5/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/elevenlabs-tts-turbo-2-5.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/elevenlabs-tts-turbo-2-5/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/elevenlabs-tts-turbo-2-5.json webhook elevenlabsTaskCompleted","href":"/en/api-reference/elevenlabs-tts-turbo-2-5/task-callback"}]}]},{"group":"Gemini speech","pages":[{"group":"Gemini 3.8 Flash TTS","icon":"/icons/gemini.svg","pages":[{"title":"Gemini 3.8 Flash TTS","sidebarTitle":"Introduction","href":"/en/audio/models/gemini-3-8-flash-tts"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/gemini-3-8-flash-tts.json post /api/v1/jobs/createTask","href":"/en/api-reference/gemini-3-8-flash-tts/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/gemini-3-8-flash-tts.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/gemini-3-8-flash-tts/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/gemini-3-8-flash-tts.json webhook geminiTTSTaskCompleted","href":"/en/api-reference/gemini-3-8-flash-tts/task-callback"}]},{"group":"Gemini 3.8 Flash Lite TTS","icon":"/icons/gemini.svg","pages":[{"title":"Gemini 3.8 Flash Lite TTS","sidebarTitle":"Introduction","href":"/en/audio/models/gemini-3-8-flash-lite-tts"},{"title":"Create task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/en/gemini-3-8-flash-lite-tts.json post /api/v1/jobs/createTask","href":"/en/api-reference/gemini-3-8-flash-lite-tts/create-task"},{"title":"Get task","deprecated":null,"version":null,"sidebarTitle":"Get task","openapi":"/openapi/en/gemini-3-8-flash-lite-tts.json get /api/v1/jobs/recordInfo","href":"/en/api-reference/gemini-3-8-flash-lite-tts/query-task"},{"title":"Task callback","version":null,"deprecated":null,"sidebarTitle":"Task callback","openapi":"/openapi/en/gemini-3-8-flash-lite-tts.json webhook geminiTTSTaskCompleted","href":"/en/api-reference/gemini-3-8-flash-lite-tts/task-callback"}]}]}]}]},"basePath":"","title":"Create chat completion - DreamTo API","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BuieBNTB.js","snippetPresets-alIv9Yoc.js","utils-BS41p-Nj.js","style-to-object-BY3JEAdk.js","utils-D0Za9LU_.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Lx7TZ5XR.js","conditional-requirements-CFM0id0Q.js","cloneDeep-4e5CS5ZI.js","_Uint8Array-B2-W7EM3.js","isObject-FP1Yky1u.js","ApiExamples-sCe6z2hN.js","usePlaygroundInputsStore-cU_dFE5n.js","shallow-BwNCr__O.js","isEqual-Cnvzqd4L.js","CodeSnippets-CMIr49P8.js","CodeSnippet-BC-bKzyy.js","use-playground-group-access-c3bgmn-x.js","Page-Acw_JRP6.js","api-description-markdown-1o8U1kkQ.js","DynamicMarkdown-CvOkzads.js","SectionHeading-CJ97Kdt-.js","MethodPill-DynWltjQ.js","getPastedJson-CBCnXiWl.js","Check2Icon-CPHq_WNu.js","axios-CsQoIw0U.js","Markdown-4tjIF-hK.js","AssistantPageLink-BcChI7L3.js","dist-MIf_HGLZ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}