{ "id": "resp-abc123", "object": "response", "created_at": 1704067200, "completed_at": 1704067201, "status": "completed", "model": "google/gemini-2.5-flash", "output": [ { "type": "message", "id": "msg_abc123", "role": "assistant", "status": "completed", "content": [ { "type": "output_text", "text": "Hello! I'm doing well, thank you for asking. How can I help you today?", "annotations": [] } ] } ], "output_text": "Hello! I'm doing well, thank you for asking. How can I help you today?", "incomplete_details": null, "error": null, "temperature": 1.0, "top_p": 1.0, "max_output_tokens": null, "top_logprobs": 0, "presence_penalty": null, "frequency_penalty": null, "instructions": null, "metadata": {}, "tools": [], "tool_choice": "auto", "parallel_tool_calls": true, "reasoning": null, "service_tier": "auto", "store": true, "truncation": "disabled", "text": { "format": { "type": "text" } }, "usage": { "input_tokens": 15, "output_tokens": 18, "total_tokens": 33, "input_tokens_details": { "cached_tokens": 0 }, "output_tokens_details": { "reasoning_tokens": 0 } }}
Creates a streaming or non-streaming response using the OpenAI Responses API format. Supports text, images, files, audio, video, function calling, web search, file search, code interpreter, reasoning, and more.
Input for the response request. Can be a string or an array of input items including messages, function calls, function call outputs, reasoning items, and output messages.
The phase of an assistant message. Supported values: commentary, final_answer. For follow-up requests, preserve and resend phase on all assistant messages.
Inserts a system (or developer) message as the first item in the model’s context. When used with input, the instructions are inserted at the start of the input.
If set to true, the response will be streamed using server-sent events (SSE). Streams are subject to an idle timeout and a lifetime ceiling — see Output limits and stream lifetime. A non-streaming request is terminated at the edge if the response takes too long to arrive, so any request that may generate for more than ~90 seconds must set stream: true — see the edge timeout.
An upper bound for the number of output tokens, including visible output tokens and reasoning tokens. A value above the model’s own ceiling is rejected with 400 rather than reduced. See Output limits.
Sampling temperature between 0 and 2. Higher values increase randomness. For OpenAI reasoning models (gpt-5.x, gpt-6-*) with reasoning enabled, temperature and top_p are not supported upstream and are dropped silently by the gateway.
Cross-vendor switch for extended thinking. For OpenAI-family reasoning models (gpt-5.x, gpt-6-*) the gateway maps it to the reasoning effort: {"type": "disabled"} becomes reasoning.effort: "none", {"type": "enabled"} leaves the model’s default effort, and an explicit reasoning.effort (or reasoning_effort) always wins.
The ID of a previous response to use as context for this request — send the id Sunra returned for that response. An id Sunra does not recognize is rejected with 400 invalid_request_error. See Continuing a conversation for the transition period and failure behavior.
Additional fields to include in the response. Supported values: file_search_call.results, message.input_image.image_url, computer_call_output.output.image_url, reasoning.encrypted_content, code_interpreter_call.outputs.
Unique response identifier. Currently the upstream model provider’s own id, forwarded as-is (e.g. resp_...). This is switching to a Sunra-issued value (breaking change, date to be announced): see Response identifiers and tracking. The same id is always available via the x-sunra-prediction-id response header, unaffected by that change. On streaming responses, the equivalent value is response.id on response.created, response.completed, and other response-carrying events. Use this id (not a raw upstream id) as previous_response_id to continue the conversation — see Continuing a conversation.
The format of the reasoning content. Possible values: unknown, openai-responses-v1, azure-openai-responses-v1, xai-responses-v1, anthropic-claude-v1, google-gemini-v1.
{ "id": "resp-abc123", "object": "response", "created_at": 1704067200, "completed_at": 1704067201, "status": "completed", "model": "google/gemini-2.5-flash", "output": [ { "type": "message", "id": "msg_abc123", "role": "assistant", "status": "completed", "content": [ { "type": "output_text", "text": "Hello! I'm doing well, thank you for asking. How can I help you today?", "annotations": [] } ] } ], "output_text": "Hello! I'm doing well, thank you for asking. How can I help you today?", "incomplete_details": null, "error": null, "temperature": 1.0, "top_p": 1.0, "max_output_tokens": null, "top_logprobs": 0, "presence_penalty": null, "frequency_penalty": null, "instructions": null, "metadata": {}, "tools": [], "tool_choice": "auto", "parallel_tool_calls": true, "reasoning": null, "service_tier": "auto", "store": true, "truncation": "disabled", "text": { "format": { "type": "text" } }, "usage": { "input_tokens": 15, "output_tokens": 18, "total_tokens": 33, "input_tokens_details": { "cached_tokens": 0 }, "output_tokens_details": { "reasoning_tokens": 0 } }}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Sunra.ai","colors":{"primary":"#ff632f","light":"#ff632f","dark":"#ff632f"},"logo":{"light":"https://mintcdn.com/sunraai/U2o8uzmv75no70tM/logo/light.svg?fit=max\u0026auto=format\u0026n=U2o8uzmv75no70tM\u0026q=85\u0026s=520c0afb29ad1fddc46fec66c975eb2a","dark":"https://mintcdn.com/sunraai/U2o8uzmv75no70tM/logo/dark.svg?fit=max\u0026auto=format\u0026n=U2o8uzmv75no70tM\u0026q=85\u0026s=16e2ed4856376448550627daa81544b9"},"favicon":"https://mintcdn.com/sunraai/U2o8uzmv75no70tM/favicon.svg?fit=max\u0026auto=format\u0026n=U2o8uzmv75no70tM\u0026q=85\u0026s=c47b7db8e76fb19f94de55c161e2fcd1","api":{},"navbar":{"links":[{"href":"https://sunra.ai/about","label":"About"}],"primary":{"type":"button","label":"Go to sunra.ai","href":"https://sunra.ai"}},"footer":{"socials":{"x":"https://x.com/sunra_ai","discord":"https://discord.gg/897qCzvCcU","github":"https://github.com/sunra-ai"}},"integrations":{"amplitude":{"apiKey":"94a6621e5239157d3f0a392f6d5f8a21"}},"banner":{"content":"The developer site has moved to **platform.sunra.ai**. API endpoints, SDKs and keys are unchanged — you may just need to sign in again.","dismissible":true},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"X (Twitter)","icon":"x-twitter","href":"https://x.com/sunra_ai"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/897qCzvCcU"},{"anchor":"GitHub","icon":"github","href":"https://github.com/sunra-ai"}]},"languages":[{"language":"en","href":""},{"language":"zh-Hans","href":"zh-Hans"},{"language":"zh-Hant","href":"zh-Hant"},{"language":"fr","href":"fr"},{"language":"ja","href":"ja"},{"language":"es","href":"es"},{"language":"pt","href":"pt"},{"language":"hi","href":"hi"},{"language":"tr","href":"tr"},{"language":"de","href":"de"},{"language":"id","href":"id"},{"language":"it","href":"it"},{"language":"ko","href":"ko"},{"language":"ru","href":"ru"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sunraai","hasAudioNarration":false,"actualSubdomain":"sunraai","customDomains":["docs.sunra.ai"],"gitSource":{"type":"github","owner":"sunra-ai","repo":"sunra-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae46d92a3eed560d7e4c18a","collectionId":"4754d27b-94dc-45d7-b9f3-30dbad1abac8","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae46d92a3eed560d7e4c18a"},"entitlements":{},"buildId":"6ae46d92a3eed560d7e4c18a","clientVersion":"0.0.4045","searchFilterCounts":[{"language":"en","tag":"Multimodal","count":10},{"language":"en","tag":"LLM","count":9},{"language":"de","tag":"Multimodal","count":9},{"language":"es","tag":"Multimodal","count":9},{"language":"fr","tag":"Multimodal","count":9},{"language":"hi","tag":"Multimodal","count":9},{"language":"id","tag":"Multimodal","count":9},{"language":"it","tag":"Multimodal","count":9},{"language":"ja","tag":"Multimodal","count":9},{"language":"ko","tag":"Multimodal","count":9},{"language":"pt","tag":"Multimodal","count":9},{"language":"ru","tag":"Multimodal","count":9},{"language":"tr","tag":"Multimodal","count":9},{"language":"zh-Hans","tag":"Multimodal","count":9},{"language":"zh-Hant","tag":"Multimodal","count":9},{"language":"zh-Hans","tag":"LLM","count":8},{"language":"en","tag":"Platform","count":6},{"language":"de","tag":"LLM","count":6},{"language":"es","tag":"LLM","count":6},{"language":"fr","tag":"LLM","count":6},{"language":"hi","tag":"LLM","count":6},{"language":"id","tag":"LLM","count":6},{"language":"it","tag":"LLM","count":6},{"language":"ja","tag":"LLM","count":6},{"language":"ko","tag":"LLM","count":6},{"language":"pt","tag":"LLM","count":6},{"language":"ru","tag":"LLM","count":6},{"language":"tr","tag":"LLM","count":6},{"language":"zh-Hant","tag":"LLM","count":6},{"language":"zh-Hans","tag":"平台","count":5},{"language":"en","tag":"Client Libraries","count":4},{"language":"de","tag":"Client-Bibliotheken","count":4},{"language":"es","tag":"Bibliotecas de cliente","count":4},{"language":"fr","tag":"Bibliothèques clientes","count":4},{"language":"hi","tag":"क्लाइंट लाइब्रेरी","count":4},{"language":"id","tag":"Pustaka Klien","count":4},{"language":"it","tag":"Librerie client","count":4},{"language":"ja","tag":"クライアントライブラリ","count":4},{"language":"ko","tag":"클라이언트 라이브러리","count":4},{"language":"pt","tag":"Bibliotecas de cliente","count":4},{"language":"ru","tag":"Клиентские библиотеки","count":4},{"language":"tr","tag":"İstemci Kütüphaneleri","count":4},{"language":"zh-Hans","tag":"客户端 SDK","count":4},{"language":"zh-Hant","tag":"客戶端 SDK","count":4},{"language":"en","tag":"Overview","count":1},{"language":"de","tag":"Überblick","count":1},{"language":"es","tag":"Descripción general","count":1},{"language":"fr","tag":"Aperçu","count":1},{"language":"hi","tag":"अवलोकन","count":1},{"language":"id","tag":"Ikhtisar","count":1},{"language":"it","tag":"Panoramica","count":1},{"language":"ja","tag":"概要","count":1},{"language":"ko","tag":"개요","count":1},{"language":"pt","tag":"Visão geral","count":1},{"language":"ru","tag":"Обзор","count":1},{"language":"tr","tag":"Genel Bakış","count":1},{"language":"zh-Hans","tag":"概述","count":1},{"language":"zh-Hant","tag":"概述","count":1}]},"assistantConfig":{},"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":"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","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":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#navbar>div>div>div>div>div{border-bottom:0}.codeblock-light{background:#fafafa!important}.dark .codeblock-light{background:#0a0a0a!important}#search-bar-entry>span{font-weight:400!important}#assistant-entry>span{color:#000!important}.dark #assistant-entry>span{color:#fff!important}.rounded-2xl,.rounded-3xl,.rounded-\\[14px\\],.rounded-full,.rounded-lg,.rounded-md,.rounded-sm,.rounded-xl{border-radius:4px!important}"}],"page":{"pagePath":"llm/responses","slug":"/llm/responses","pageMetadata":{"title":"Create a response","api":"POST https://api-llm.sunra.ai/v1/responses","description":null,"href":"/llm/responses"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,ul:`ul`,..._provideComponents(),...props.components},{Expandable,Heading,ParamField,ResponseField,Tab,Tabs}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Creates a streaming or non-streaming response using the OpenAI Responses API format. Supports text, images, files, audio, video, function calling, web search, file search, code interpreter, reasoning, and more.`}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:[_jsx(_components.p,{children:`Bearer token. Use your API key as the bearer token in the Authorization header.`}),_jsxs(_components.p,{children:[`Format: `,_jsx(_components.code,{children:`Bearer \u003cSUNRA_KEY>`})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsx(_components.p,{children:`This endpoint expects an object.`}),`\n`,_jsx(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:_jsxs(_components.p,{children:[`Model ID used to generate the response. Browse available models at `,_jsx(_components.a,{href:`https://sunra.ai/models`,children:`sunra.ai/models`}),`.`]})}),`\n`,_jsx(ParamField,{body:`provider`,type:`object`,id:`param-provider`,children:_jsxs(_components.p,{children:[`Optional provider routing preferences. Omit for automatic routing. See `,_jsx(_components.a,{href:`/llm/provider-routing`,children:`Provider routing`}),` for supported fields and provider discovery.`]})}),`\n`,_jsxs(ParamField,{body:`input`,type:`string | object[]`,id:`param-input`,children:[_jsx(_components.p,{children:`Input for the response request. Can be a string or an array of input items including messages, function calls, function call outputs, reasoning items, and output messages.`}),_jsx(Expandable,{title:`input item types`,children:_jsxs(Tabs,{children:[_jsxs(Tab,{title:`EasyInputMessage`,id:`easyinputmessage`,\"data-child-tab-ids\":`[\"inputtext\",\"inputimage\",\"inputfile\",\"inputaudio\",\"inputvideo\"]`,children:[_jsx(ParamField,{body:`role`,type:`string`,required:true,id:`param-role`,children:_jsxs(_components.p,{children:[`The role of the message author. Supported values: `,_jsx(_components.code,{children:`user`}),`, `,_jsx(_components.code,{children:`assistant`}),`, `,_jsx(_components.code,{children:`system`}),`, `,_jsx(_components.code,{children:`developer`}),`.`]})}),_jsxs(ParamField,{body:`content`,type:`string | object[]`,id:`param-content`,children:[_jsx(_components.p,{children:`The content of the message. Can be a string or an array of content parts.`}),_jsx(Expandable,{title:`content part types`,children:_jsxs(Tabs,{children:[_jsxs(Tab,{title:`InputText`,id:`inputtext`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`input_text`}),`.`]})}),_jsx(ParamField,{body:`text`,type:`string`,required:true,id:`param-text`,children:_jsx(_components.p,{children:`The text content.`})})]}),_jsxs(Tab,{title:`InputImage`,id:`inputimage`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-1`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`input_image`}),`.`]})}),_jsx(ParamField,{body:`image_url`,type:`string | null`,id:`param-image-url`,children:_jsx(_components.p,{children:`The URL of the image, or a base64-encoded data URI.`})}),_jsx(ParamField,{body:`detail`,type:`string`,required:true,id:`param-detail`,children:_jsxs(_components.p,{children:[`Image detail level. Supported values: `,_jsx(_components.code,{children:`auto`}),`, `,_jsx(_components.code,{children:`high`}),`, `,_jsx(_components.code,{children:`low`}),`.`]})})]}),_jsxs(Tab,{title:`InputFile`,id:`inputfile`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-2`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`input_file`}),`.`]})}),_jsx(ParamField,{body:`file_id`,type:`string | null`,id:`param-file-id`,children:_jsx(_components.p,{children:`The ID of a previously uploaded file.`})}),_jsx(ParamField,{body:`file_data`,type:`string`,id:`param-file-data`,children:_jsx(_components.p,{children:`Base64-encoded file data.`})}),_jsx(ParamField,{body:`filename`,type:`string`,id:`param-filename`,children:_jsx(_components.p,{children:`The name of the file.`})}),_jsx(ParamField,{body:`file_url`,type:`string`,id:`param-file-url`,children:_jsx(_components.p,{children:`The URL of the file.`})})]}),_jsxs(Tab,{title:`InputAudio`,id:`inputaudio`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-3`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`input_audio`}),`.`]})}),_jsxs(ParamField,{body:`input_audio`,type:`object`,required:true,id:`param-input-audio`,children:[_jsx(_components.p,{children:`Audio input data.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`data`,type:`string`,required:true,id:`param-data`,children:_jsx(_components.p,{children:`Base64-encoded audio data.`})}),_jsx(ParamField,{body:`format`,type:`string`,required:true,id:`param-format`,children:_jsxs(_components.p,{children:[`Audio format. Supported values: `,_jsx(_components.code,{children:`mp3`}),`, `,_jsx(_components.code,{children:`wav`}),`.`]})})]})]})]}),_jsxs(Tab,{title:`InputVideo`,id:`inputvideo`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-4`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`input_video`}),`.`]})}),_jsx(ParamField,{body:`video_url`,type:`string`,required:true,id:`param-video-url`,children:_jsx(_components.p,{children:`A base64 data URL or remote URL that resolves to a video file.`})})]})]})})]}),_jsx(ParamField,{body:`type`,type:`string`,id:`param-type-5`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`message`}),`. Optional for easy input messages.`]})}),_jsx(ParamField,{body:`phase`,type:`string`,id:`param-phase`,children:_jsxs(_components.p,{children:[`The phase of an assistant message. Supported values: `,_jsx(_components.code,{children:`commentary`}),`, `,_jsx(_components.code,{children:`final_answer`}),`. For follow-up requests, preserve and resend phase on all assistant messages.`]})})]}),_jsxs(Tab,{title:`InputMessageItem`,id:`inputmessageitem`,children:[_jsx(ParamField,{body:`id`,type:`string`,required:true,id:`param-id`,children:_jsx(_components.p,{children:`The ID of the message item.`})}),_jsx(ParamField,{body:`type`,type:`string`,id:`param-type-6`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`message`}),`.`]})}),_jsx(ParamField,{body:`role`,type:`string`,required:true,id:`param-role-1`,children:_jsxs(_components.p,{children:[`The role. Supported values: `,_jsx(_components.code,{children:`user`}),`, `,_jsx(_components.code,{children:`system`}),`, `,_jsx(_components.code,{children:`developer`}),`.`]})}),_jsx(ParamField,{body:`content`,type:`object[] | null`,id:`param-content-1`,children:_jsxs(_components.p,{children:[`Array of content parts (`,_jsx(_components.code,{children:`input_text`}),`, `,_jsx(_components.code,{children:`input_image`}),`, `,_jsx(_components.code,{children:`input_file`}),`, `,_jsx(_components.code,{children:`input_audio`}),`, `,_jsx(_components.code,{children:`input_video`}),`).`]})})]}),_jsxs(Tab,{title:`OutputMessage`,id:`outputmessage`,children:[_jsx(ParamField,{body:`id`,type:`string`,required:true,id:`param-id-1`,children:_jsx(_components.p,{children:`The ID of the output message.`})}),_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-7`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`message`}),`.`]})}),_jsx(ParamField,{body:`role`,type:`string`,required:true,id:`param-role-2`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`assistant`}),`.`]})}),_jsx(ParamField,{body:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[`Status of the message. Supported values: `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`incomplete`}),`, `,_jsx(_components.code,{children:`in_progress`}),`.`]})}),_jsx(ParamField,{body:`content`,type:`string | object[]`,required:true,id:`param-content-2`,children:_jsxs(_components.p,{children:[`Array of content items (`,_jsx(_components.code,{children:`output_text`}),`, `,_jsx(_components.code,{children:`refusal`}),`).`]})}),_jsx(ParamField,{body:`phase`,type:`string`,id:`param-phase-1`,children:_jsxs(_components.p,{children:[`The phase. Supported values: `,_jsx(_components.code,{children:`commentary`}),`, `,_jsx(_components.code,{children:`final_answer`}),`.`]})})]}),_jsxs(Tab,{title:`FunctionCall`,id:`functioncall`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-8`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`function_call`}),`.`]})}),_jsx(ParamField,{body:`id`,type:`string`,required:true,id:`param-id-2`,children:_jsx(_components.p,{children:`The unique ID of the function call item.`})}),_jsx(ParamField,{body:`call_id`,type:`string`,required:true,id:`param-call-id`,children:_jsx(_components.p,{children:`The call ID to match with the function call output.`})}),_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:_jsx(_components.p,{children:`The name of the function.`})}),_jsx(ParamField,{body:`arguments`,type:`string`,required:true,id:`param-arguments`,children:_jsx(_components.p,{children:`The arguments in JSON string format.`})}),_jsx(ParamField,{body:`status`,type:`string`,id:`param-status-1`,children:_jsxs(_components.p,{children:[`Status. Supported values: `,_jsx(_components.code,{children:`in_progress`}),`, `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`incomplete`}),`.`]})})]}),_jsxs(Tab,{title:`FunctionCallOutput`,id:`functioncalloutput`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-9`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`function_call_output`}),`.`]})}),_jsx(ParamField,{body:`call_id`,type:`string`,required:true,id:`param-call-id-1`,children:_jsx(_components.p,{children:`The call ID of the function call being responded to.`})}),_jsx(ParamField,{body:`output`,type:`string | object[]`,required:true,id:`param-output`,children:_jsxs(_components.p,{children:[`The output of the function call. Can be a string or array of content parts (`,_jsx(_components.code,{children:`input_text`}),`, `,_jsx(_components.code,{children:`input_image`}),`, `,_jsx(_components.code,{children:`input_file`}),`).`]})}),_jsx(ParamField,{body:`id`,type:`string | null`,id:`param-id-3`,children:_jsx(_components.p,{children:`Optional ID for the output item.`})}),_jsx(ParamField,{body:`status`,type:`string`,id:`param-status-2`,children:_jsxs(_components.p,{children:[`Status. Supported values: `,_jsx(_components.code,{children:`in_progress`}),`, `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`incomplete`}),`.`]})})]}),_jsxs(Tab,{title:`Reasoning`,id:`reasoning`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-10`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`reasoning`}),`.`]})}),_jsx(ParamField,{body:`id`,type:`string`,required:true,id:`param-id-4`,children:_jsx(_components.p,{children:`The unique ID of the reasoning item.`})}),_jsx(ParamField,{body:`summary`,type:`object[]`,id:`param-summary`,children:_jsxs(_components.p,{children:[`Array of reasoning summary text items, each with `,_jsx(_components.code,{children:`type: \"summary_text\"`}),` and `,_jsx(_components.code,{children:`text`}),`.`]})}),_jsx(ParamField,{body:`content`,type:`object[] | null`,id:`param-content-3`,children:_jsxs(_components.p,{children:[`Array of reasoning text content items, each with `,_jsx(_components.code,{children:`type: \"reasoning_text\"`}),` and `,_jsx(_components.code,{children:`text`}),`.`]})}),_jsx(ParamField,{body:`encrypted_content`,type:`string | null`,id:`param-encrypted-content`,children:_jsx(_components.p,{children:`Encrypted reasoning content for models that support it.`})}),_jsx(ParamField,{body:`status`,type:`string`,id:`param-status-3`,children:_jsxs(_components.p,{children:[`Status. Supported values: `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`incomplete`}),`, `,_jsx(_components.code,{children:`in_progress`}),`.`]})}),_jsx(ParamField,{body:`signature`,type:`string | null`,id:`param-signature`,children:_jsx(_components.p,{children:`A signature for the reasoning content, used for verification.`})})]})]})})]}),`\n`,_jsx(ParamField,{body:`instructions`,type:`string | null`,id:`param-instructions`,children:_jsxs(_components.p,{children:[`Inserts a system (or developer) message as the first item in the model’s context. When used with `,_jsx(_components.code,{children:`input`}),`, the instructions are inserted at the start of the input.`]})}),`\n`,_jsx(ParamField,{body:`stream`,type:`boolean`,default:false,id:`param-stream`,children:_jsxs(_components.p,{children:[`If set to `,_jsx(_components.code,{children:`true`}),`, the response will be streamed using server-sent events (SSE). Streams are subject to an idle timeout and a lifetime ceiling — see `,_jsx(_components.a,{href:`/llm/limits#stream-lifetime`,children:`Output limits and stream lifetime`}),`. A non-streaming request is terminated at the edge if the response takes too long to arrive, so any request that may generate for more than ~90 seconds must set `,_jsx(_components.code,{children:`stream: true`}),` — see `,_jsx(_components.a,{href:`/llm/limits#non-streaming-requests-the-edge-timeout`,children:`the edge timeout`}),`.`]})}),`\n`,_jsx(ParamField,{body:`max_output_tokens`,type:`number | null`,id:`param-max-output-tokens`,children:_jsxs(_components.p,{children:[`An upper bound for the number of output tokens, including visible output tokens and reasoning tokens. A value above the model’s own ceiling is rejected with `,_jsx(_components.code,{children:`400`}),` rather than reduced. See `,_jsx(_components.a,{href:`/llm/limits`,children:`Output limits`}),`.`]})}),`\n`,_jsx(ParamField,{body:`temperature`,type:`number | null`,id:`param-temperature`,children:_jsxs(_components.p,{children:[`Sampling temperature between 0 and 2. Higher values increase randomness. For OpenAI reasoning models (`,_jsx(_components.code,{children:`gpt-5.x`}),`, `,_jsx(_components.code,{children:`gpt-6-*`}),`) with reasoning enabled, `,_jsx(_components.code,{children:`temperature`}),` and `,_jsx(_components.code,{children:`top_p`}),` are not supported upstream and are dropped silently by the gateway.`]})}),`\n`,_jsx(ParamField,{body:`top_p`,type:`number | null`,id:`param-top-p`,children:_jsx(_components.p,{children:`Nucleus sampling parameter. An alternative to sampling with temperature.`})}),`\n`,_jsx(ParamField,{body:`top_k`,type:`number`,id:`param-top-k`,children:_jsx(_components.p,{children:`Sample only from the top K options for each subsequent token. Used to remove “long tail” low-probability responses.`})}),`\n`,_jsx(ParamField,{body:`frequency_penalty`,type:`number | null`,id:`param-frequency-penalty`,children:_jsx(_components.p,{children:`Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text.`})}),`\n`,_jsx(ParamField,{body:`presence_penalty`,type:`number | null`,id:`param-presence-penalty`,children:_jsx(_components.p,{children:`Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they already appear in the text.`})}),`\n`,_jsx(ParamField,{body:`top_logprobs`,type:`integer | null`,id:`param-top-logprobs`,children:_jsx(_components.p,{children:`An integer specifying the number of most likely tokens to return at each token position.`})}),`\n`,_jsx(ParamField,{body:`max_tool_calls`,type:`integer | null`,id:`param-max-tool-calls`,children:_jsx(_components.p,{children:`Maximum number of tool calls the model can make in a single response.`})}),`\n`,_jsxs(ParamField,{body:`tools`,type:`object[]`,id:`param-tools`,children:[_jsx(_components.p,{children:`An array of tools the model may call.`}),_jsx(Expandable,{title:`tool types`,children:_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Function`,id:`function`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-11`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`function`}),`.`]})}),_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name-1`,children:_jsx(_components.p,{children:`The name of the function.`})}),_jsx(ParamField,{body:`description`,type:`string | null`,id:`param-description`,children:_jsx(_components.p,{children:`A description of the function.`})}),_jsx(ParamField,{body:`parameters`,type:`object | null`,id:`param-parameters`,children:_jsx(_components.p,{children:`A JSON Schema object defining the function parameters.`})}),_jsx(ParamField,{body:`strict`,type:`boolean | null`,id:`param-strict`,children:_jsx(_components.p,{children:`Whether strict schema adherence is enabled.`})})]}),_jsxs(Tab,{title:`Web Search Preview`,id:`web-search-preview`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-12`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`web_search_preview`}),` or `,_jsx(_components.code,{children:`web_search_preview_2025_03_11`}),`.`]})}),_jsx(ParamField,{body:`search_context_size`,type:`string`,id:`param-search-context-size`,children:_jsxs(_components.p,{children:[`Size of the search context. Supported values: `,_jsx(_components.code,{children:`low`}),`, `,_jsx(_components.code,{children:`medium`}),`, `,_jsx(_components.code,{children:`high`}),`.`]})}),_jsxs(ParamField,{body:`user_location`,type:`object`,id:`param-user-location`,children:[_jsx(_components.p,{children:`User location information for search personalization.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-13`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`approximate`}),`.`]})}),_jsx(ParamField,{body:`city`,type:`string | null`,id:`param-city`,children:_jsx(_components.p,{children:`City name.`})}),_jsx(ParamField,{body:`country`,type:`string | null`,id:`param-country`,children:_jsx(_components.p,{children:`Country name.`})}),_jsx(ParamField,{body:`region`,type:`string | null`,id:`param-region`,children:_jsx(_components.p,{children:`Region/state name.`})}),_jsx(ParamField,{body:`timezone`,type:`string | null`,id:`param-timezone`,children:_jsx(_components.p,{children:`IANA timezone name.`})})]})]})]}),_jsxs(Tab,{title:`Web Search`,id:`web-search`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-14`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`web_search`}),` or `,_jsx(_components.code,{children:`web_search_2025_08_26`}),`.`]})}),_jsx(ParamField,{body:`search_context_size`,type:`string`,id:`param-search-context-size-1`,children:_jsxs(_components.p,{children:[`Size of the search context. Supported values: `,_jsx(_components.code,{children:`low`}),`, `,_jsx(_components.code,{children:`medium`}),`, `,_jsx(_components.code,{children:`high`}),`.`]})}),_jsxs(ParamField,{body:`filters`,type:`object | null`,id:`param-filters`,children:[_jsx(_components.p,{children:`Domain filters for search results.`}),_jsx(Expandable,{title:`properties`,children:_jsx(ParamField,{body:`allowed_domains`,type:`string[] | null`,id:`param-allowed-domains`,children:_jsx(_components.p,{children:`List of allowed domains to restrict search results to.`})})})]}),_jsx(ParamField,{body:`user_location`,type:`object`,id:`param-user-location-1`,children:_jsx(_components.p,{children:`User location information for search personalization.`})})]}),_jsxs(Tab,{title:`File Search`,id:`file-search`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-15`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`file_search`}),`.`]})}),_jsx(ParamField,{body:`vector_store_ids`,type:`string[]`,required:true,id:`param-vector-store-ids`,children:_jsx(_components.p,{children:`IDs of vector stores to search.`})}),_jsx(ParamField,{body:`filters`,type:`object`,id:`param-filters-1`,children:_jsxs(_components.p,{children:[`Filters for file search. Can be a comparison filter (`,_jsx(_components.code,{children:`eq`}),`, `,_jsx(_components.code,{children:`ne`}),`, `,_jsx(_components.code,{children:`gt`}),`, `,_jsx(_components.code,{children:`gte`}),`, `,_jsx(_components.code,{children:`lt`}),`, `,_jsx(_components.code,{children:`lte`}),`) or a compound filter (`,_jsx(_components.code,{children:`and`}),`, `,_jsx(_components.code,{children:`or`}),`).`]})}),_jsx(ParamField,{body:`max_num_results`,type:`integer`,id:`param-max-num-results`,children:_jsx(_components.p,{children:`Maximum number of results to return.`})}),_jsxs(ParamField,{body:`ranking_options`,type:`object`,id:`param-ranking-options`,children:[_jsx(_components.p,{children:`Ranking options for search results.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`ranker`,type:`string`,id:`param-ranker`,children:_jsxs(_components.p,{children:[`Ranker to use. Supported values: `,_jsx(_components.code,{children:`auto`}),`, `,_jsx(_components.code,{children:`default-2024-11-15`}),`.`]})}),_jsx(ParamField,{body:`score_threshold`,type:`number`,id:`param-score-threshold`,children:_jsx(_components.p,{children:`Minimum score threshold for results.`})})]})]})]}),_jsxs(Tab,{title:`Computer Use Preview`,id:`computer-use-preview`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-16`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`computer_use_preview`}),`.`]})}),_jsx(ParamField,{body:`display_height`,type:`number`,required:true,id:`param-display-height`,children:_jsx(_components.p,{children:`Display height in pixels.`})}),_jsx(ParamField,{body:`display_width`,type:`number`,required:true,id:`param-display-width`,children:_jsx(_components.p,{children:`Display width in pixels.`})}),_jsx(ParamField,{body:`environment`,type:`string`,required:true,id:`param-environment`,children:_jsxs(_components.p,{children:[`The environment. Supported values: `,_jsx(_components.code,{children:`windows`}),`, `,_jsx(_components.code,{children:`mac`}),`, `,_jsx(_components.code,{children:`linux`}),`, `,_jsx(_components.code,{children:`ubuntu`}),`, `,_jsx(_components.code,{children:`browser`}),`.`]})})]}),_jsxs(Tab,{title:`Code Interpreter`,id:`code-interpreter`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-17`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`code_interpreter`}),`.`]})}),_jsxs(ParamField,{body:`container`,type:`string | object`,required:true,id:`param-container`,children:[_jsx(_components.p,{children:`Container configuration. Can be a container ID string or an object.`}),_jsxs(Expandable,{title:`properties (when object)`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-18`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`auto`}),`.`]})}),_jsx(ParamField,{body:`file_ids`,type:`string[]`,id:`param-file-ids`,children:_jsx(_components.p,{children:`File IDs to make available in the container.`})}),_jsx(ParamField,{body:`memory_limit`,type:`string | null`,id:`param-memory-limit`,children:_jsxs(_components.p,{children:[`Memory limit. Supported values: `,_jsx(_components.code,{children:`1g`}),`, `,_jsx(_components.code,{children:`4g`}),`, `,_jsx(_components.code,{children:`16g`}),`, `,_jsx(_components.code,{children:`64g`}),`.`]})})]})]})]}),_jsxs(Tab,{title:`MCP`,id:`mcp`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-19`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`mcp`}),`.`]})}),_jsx(ParamField,{body:`server_label`,type:`string`,required:true,id:`param-server-label`,children:_jsx(_components.p,{children:`A label for the MCP server.`})}),_jsx(ParamField,{body:`server_url`,type:`string`,id:`param-server-url`,children:_jsx(_components.p,{children:`The URL of the MCP server.`})}),_jsx(ParamField,{body:`allowed_tools`,type:`string[] | object`,id:`param-allowed-tools`,children:_jsx(_components.p,{children:`Tools the model is allowed to use from this server.`})}),_jsx(ParamField,{body:`require_approval`,type:`string | object`,id:`param-require-approval`,children:_jsxs(_components.p,{children:[`Approval requirements for tool calls. String values: `,_jsx(_components.code,{children:`always`}),`, `,_jsx(_components.code,{children:`never`}),`. Can also be an object with `,_jsx(_components.code,{children:`never`}),` and `,_jsx(_components.code,{children:`always`}),` lists.`]})}),_jsx(ParamField,{body:`headers`,type:`object | null`,id:`param-headers`,children:_jsx(_components.p,{children:`Custom headers to include in requests to the MCP server.`})}),_jsx(ParamField,{body:`server_description`,type:`string`,id:`param-server-description`,children:_jsx(_components.p,{children:`Description of the MCP server.`})})]}),_jsxs(Tab,{title:`Image Generation`,id:`image-generation`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-20`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`image_generation`}),`.`]})}),_jsx(ParamField,{body:`background`,type:`string`,id:`param-background`,children:_jsxs(_components.p,{children:[`Background type. Supported values: `,_jsx(_components.code,{children:`transparent`}),`, `,_jsx(_components.code,{children:`opaque`}),`, `,_jsx(_components.code,{children:`auto`}),`.`]})}),_jsx(ParamField,{body:`model`,type:`string`,id:`param-model-1`,children:_jsxs(_components.p,{children:[`Model to use. Supported values: `,_jsx(_components.code,{children:`gpt-image-1`}),`, `,_jsx(_components.code,{children:`gpt-image-1-mini`}),`.`]})}),_jsx(ParamField,{body:`quality`,type:`string`,id:`param-quality`,children:_jsxs(_components.p,{children:[`Image quality. Supported values: `,_jsx(_components.code,{children:`low`}),`, `,_jsx(_components.code,{children:`medium`}),`, `,_jsx(_components.code,{children:`high`}),`, `,_jsx(_components.code,{children:`auto`}),`.`]})}),_jsx(ParamField,{body:`size`,type:`string`,id:`param-size`,children:_jsxs(_components.p,{children:[`Image size. Supported values: `,_jsx(_components.code,{children:`1024x1024`}),`, `,_jsx(_components.code,{children:`1024x1536`}),`, `,_jsx(_components.code,{children:`1536x1024`}),`, `,_jsx(_components.code,{children:`auto`}),`.`]})}),_jsx(ParamField,{body:`output_format`,type:`string`,id:`param-output-format`,children:_jsxs(_components.p,{children:[`Output format. Supported values: `,_jsx(_components.code,{children:`png`}),`, `,_jsx(_components.code,{children:`webp`}),`, `,_jsx(_components.code,{children:`jpeg`}),`.`]})}),_jsx(ParamField,{body:`moderation`,type:`string`,id:`param-moderation`,children:_jsxs(_components.p,{children:[`Moderation level. Supported values: `,_jsx(_components.code,{children:`auto`}),`, `,_jsx(_components.code,{children:`low`}),`.`]})}),_jsx(ParamField,{body:`output_compression`,type:`number`,id:`param-output-compression`,children:_jsx(_components.p,{children:`Compression level for output.`})}),_jsx(ParamField,{body:`partial_images`,type:`number`,id:`param-partial-images`,children:_jsx(_components.p,{children:`Number of partial images to return during generation.`})})]})]})})]}),`\n`,_jsxs(ParamField,{body:`tool_choice`,type:`string | object`,id:`param-tool-choice`,children:[_jsxs(_components.p,{children:[`Controls tool selection behavior. String values: `,_jsx(_components.code,{children:`none`}),`, `,_jsx(_components.code,{children:`auto`}),`, `,_jsx(_components.code,{children:`required`}),`. Can also specify a particular function or tool type.`]}),_jsx(Expandable,{title:`object variants`,children:_jsxs(Tabs,{children:[_jsxs(Tab,{title:`function`,id:`function-2`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-21`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`function`}),`.`]})}),_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name-2`,children:_jsx(_components.p,{children:`The name of the function to use.`})})]}),_jsx(Tab,{title:`web_search_preview`,id:`web_search_preview`,children:_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-22`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`web_search_preview`}),` or `,_jsx(_components.code,{children:`web_search_preview_2025_03_11`}),`.`]})})})]})})]}),`\n`,_jsx(ParamField,{body:`parallel_tool_calls`,type:`boolean | null`,id:`param-parallel-tool-calls`,children:_jsx(_components.p,{children:`Whether to allow the model to run tool calls in parallel.`})}),`\n`,_jsxs(ParamField,{body:`text`,type:`object`,id:`param-text-1`,children:[_jsx(_components.p,{children:`Configuration for text response format.`}),_jsxs(Expandable,{title:`properties`,children:[_jsxs(ParamField,{body:`format`,type:`object`,id:`param-format-1`,children:[_jsx(_components.p,{children:`The text format configuration.`}),_jsx(Expandable,{title:`format types`,children:_jsxs(Tabs,{children:[_jsx(Tab,{title:`text`,id:`text`,children:_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-23`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`text`}),`.`]})})}),_jsx(Tab,{title:`json_object`,id:`json_object`,children:_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-24`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`json_object`}),`.`]})})}),_jsxs(Tab,{title:`json_schema`,id:`json_schema`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-25`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`json_schema`}),`.`]})}),_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name-3`,children:_jsx(_components.p,{children:`The name of the response format.`})}),_jsx(ParamField,{body:`schema`,type:`object`,required:true,id:`param-schema`,children:_jsx(_components.p,{children:`The JSON schema definition.`})}),_jsx(ParamField,{body:`description`,type:`string`,id:`param-description-1`,children:_jsx(_components.p,{children:`Description of the schema.`})}),_jsx(ParamField,{body:`strict`,type:`boolean | null`,id:`param-strict-1`,children:_jsx(_components.p,{children:`Whether strict schema adherence is enabled.`})})]})]})})]}),_jsx(ParamField,{body:`verbosity`,type:`string | null`,id:`param-verbosity`,children:_jsxs(_components.p,{children:[`Controls the verbosity of the text output. Supported values: `,_jsx(_components.code,{children:`high`}),`, `,_jsx(_components.code,{children:`medium`}),`, `,_jsx(_components.code,{children:`low`}),`.`]})})]})]}),`\n`,_jsxs(ParamField,{body:`reasoning`,type:`object`,id:`param-reasoning`,children:[_jsx(_components.p,{children:`Configuration for reasoning output.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`effort`,type:`string`,id:`param-effort`,children:_jsxs(_components.p,{children:[`Constrains effort on reasoning. Supported values: `,_jsx(_components.code,{children:`xhigh`}),`, `,_jsx(_components.code,{children:`high`}),`, `,_jsx(_components.code,{children:`medium`}),`, `,_jsx(_components.code,{children:`low`}),`, `,_jsx(_components.code,{children:`minimal`}),`, `,_jsx(_components.code,{children:`none`}),`.`]})}),_jsx(ParamField,{body:`summary`,type:`string`,id:`param-summary-1`,children:_jsxs(_components.p,{children:[`Controls reasoning summary verbosity. Supported values: `,_jsx(_components.code,{children:`auto`}),`, `,_jsx(_components.code,{children:`concise`}),`, `,_jsx(_components.code,{children:`detailed`}),`.`]})}),_jsx(ParamField,{body:`max_tokens`,type:`number | null`,id:`param-max-tokens`,children:_jsx(_components.p,{children:`Maximum number of tokens for reasoning.`})}),_jsx(ParamField,{body:`enabled`,type:`boolean | null`,id:`param-enabled`,children:_jsx(_components.p,{children:`Whether reasoning is enabled.`})})]})]}),`\n`,_jsx(ParamField,{body:`thinking`,type:`object`,id:`param-thinking`,children:_jsxs(_components.p,{children:[`Cross-vendor switch for extended thinking. For OpenAI-family reasoning models (`,_jsx(_components.code,{children:`gpt-5.x`}),`, `,_jsx(_components.code,{children:`gpt-6-*`}),`) the gateway maps it to the reasoning effort: `,_jsx(_components.code,{children:`{\"type\": \"disabled\"}`}),` becomes `,_jsx(_components.code,{children:`reasoning.effort: \"none\"`}),`, `,_jsx(_components.code,{children:`{\"type\": \"enabled\"}`}),` leaves the model’s default effort, and an explicit `,_jsx(_components.code,{children:`reasoning.effort`}),` (or `,_jsx(_components.code,{children:`reasoning_effort`}),`) always wins.`]})}),`\n`,_jsx(ParamField,{body:`modalities`,type:`string[]`,id:`param-modalities`,children:_jsxs(_components.p,{children:[`Output modalities for the response. Supported values: `,_jsx(_components.code,{children:`text`}),`, `,_jsx(_components.code,{children:`image`}),`.`]})}),`\n`,_jsx(ParamField,{body:`previous_response_id`,type:`string | null`,id:`param-previous-response-id`,children:_jsxs(_components.p,{children:[`The ID of a previous response to use as context for this request — send the `,_jsx(_components.code,{children:`id`}),` Sunra returned for that response. An id Sunra does not recognize is rejected with `,_jsx(_components.code,{children:`400 invalid_request_error`}),`. See `,_jsx(_components.a,{href:`/llm/response-tracking#continuing-a-conversation-previous_response_id`,children:`Continuing a conversation`}),` for the transition period and failure behavior.`]})}),`\n`,_jsx(ParamField,{body:`include`,type:`string[]`,id:`param-include`,children:_jsxs(_components.p,{children:[`Additional fields to include in the response. Supported values: `,_jsx(_components.code,{children:`file_search_call.results`}),`, `,_jsx(_components.code,{children:`message.input_image.image_url`}),`, `,_jsx(_components.code,{children:`computer_call_output.output.image_url`}),`, `,_jsx(_components.code,{children:`reasoning.encrypted_content`}),`, `,_jsx(_components.code,{children:`code_interpreter_call.outputs`}),`.`]})}),`\n`,_jsx(ParamField,{body:`store`,type:`boolean`,id:`param-store`,children:_jsx(_components.p,{children:`Whether to store the generated response for later retrieval.`})}),`\n`,_jsx(ParamField,{body:`service_tier`,type:`string`,id:`param-service-tier`,children:_jsxs(_components.p,{children:[`The service tier to use for this request. Supported values: `,_jsx(_components.code,{children:`auto`}),`.`]})}),`\n`,_jsx(ParamField,{body:`truncation`,type:`string`,id:`param-truncation`,children:_jsxs(_components.p,{children:[`Truncation strategy. Supported values: `,_jsx(_components.code,{children:`auto`}),`, `,_jsx(_components.code,{children:`disabled`}),`.`]})}),`\n`,_jsx(ParamField,{body:`background`,type:`boolean | null`,id:`param-background-1`,children:_jsx(_components.p,{children:`Whether to run the request in the background.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`object`,id:`param-metadata`,children:_jsx(_components.p,{children:`Set of key-value pairs that can be attached to the response. Keys must be ≤64 characters. Values must be ≤512 characters. Maximum 16 pairs allowed.`})}),`\n`,_jsx(ParamField,{body:`user`,type:`string`,id:`param-user`,children:_jsx(_components.p,{children:`A unique identifier representing your end-user. Maximum of 128 characters.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(_components.p,{children:`Successful response object.`}),`\n`,_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-5`,children:_jsxs(_components.p,{children:[`Unique response identifier. Currently the upstream model provider’s own id, forwarded as-is (e.g. `,_jsx(_components.code,{children:`resp_...`}),`). This is switching to a Sunra-issued value (breaking change, date to be announced): see `,_jsx(_components.a,{href:`/llm/response-tracking#the-id-field-is-switching-to-a-sunra-issued-value`,children:`Response identifiers and tracking`}),`. The same id is always available via the `,_jsxs(_components.a,{href:`/llm/response-tracking#the-x-sunra-prediction-id-header`,children:[_jsx(_components.code,{children:`x-sunra-prediction-id`}),` response header`]}),`, unaffected by that change. On streaming responses, the equivalent value is `,_jsx(_components.code,{children:`response.id`}),` on `,_jsx(_components.code,{children:`response.created`}),`, `,_jsx(_components.code,{children:`response.completed`}),`, and other response-carrying events. Use this id (not a raw upstream id) as `,_jsx(_components.code,{children:`previous_response_id`}),` to continue the conversation — see `,_jsx(_components.a,{href:`/llm/response-tracking#continuing-a-conversation-previous_response_id`,children:`Continuing a conversation`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`object`,type:`string`,id:`param-object`,children:_jsxs(_components.p,{children:[`The object type. Always `,_jsx(_components.code,{children:`response`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`created_at`,type:`number`,id:`param-created-at`,children:_jsx(_components.p,{children:`Unix timestamp (in seconds) of when the response was created.`})}),`\n`,_jsx(ResponseField,{name:`completed_at`,type:`number | null`,id:`param-completed-at`,children:_jsx(_components.p,{children:`Unix timestamp (in seconds) of when the response completed.`})}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status-4`,children:_jsxs(_components.p,{children:[`The status of the response. Possible values: `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`incomplete`}),`, `,_jsx(_components.code,{children:`in_progress`}),`, `,_jsx(_components.code,{children:`failed`}),`, `,_jsx(_components.code,{children:`cancelled`}),`, `,_jsx(_components.code,{children:`queued`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`model`,type:`string`,id:`param-model-2`,children:_jsx(_components.p,{children:`The model used for generating the response.`})}),`\n`,_jsxs(ResponseField,{name:`output`,type:`object[]`,id:`param-output-1`,children:[_jsx(_components.p,{children:`An array of output items generated by the model.`}),_jsx(Expandable,{title:`output item types`,children:_jsxs(Tabs,{children:[_jsxs(Tab,{title:`OutputMessage`,id:`outputmessage-2`,\"data-child-tab-ids\":`[\"outputtext\",\"refusal\"]`,children:[_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type-26`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`message`}),`.`]})}),_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-6`,children:_jsx(_components.p,{children:`The unique ID of the output message.`})}),_jsx(ResponseField,{name:`role`,type:`string`,id:`param-role-3`,children:_jsxs(_components.p,{children:[`Always `,_jsx(_components.code,{children:`assistant`}),`.`]})}),_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status-5`,children:_jsxs(_components.p,{children:[`Status of the message. Possible values: `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`incomplete`}),`, `,_jsx(_components.code,{children:`in_progress`}),`.`]})}),_jsxs(ResponseField,{name:`content`,type:`object[]`,id:`param-content-4`,children:[_jsx(_components.p,{children:`The content of the output message.`}),_jsx(Expandable,{title:`content types`,children:_jsxs(Tabs,{children:[_jsxs(Tab,{title:`OutputText`,id:`outputtext`,children:[_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type-27`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`output_text`}),`.`]})}),_jsx(ResponseField,{name:`text`,type:`string`,id:`param-text-2`,children:_jsx(_components.p,{children:`The generated text content.`})}),_jsxs(ResponseField,{name:`annotations`,type:`object[]`,id:`param-annotations`,children:[_jsx(_components.p,{children:`Annotations for the content. Types include:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`file_citation`}),`: `,_jsx(_components.code,{children:`{type, file_id, filename, index}`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`url_citation`}),`: `,_jsx(_components.code,{children:`{type, url, title, start_index, end_index}`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`file_path`}),`: `,_jsx(_components.code,{children:`{type, file_id, index}`})]}),`\n`]})]}),_jsx(ResponseField,{name:`logprobs`,type:`object[]`,id:`param-logprobs`,children:_jsxs(_components.p,{children:[`Log probability information for output tokens. Each item contains `,_jsx(_components.code,{children:`token`}),`, `,_jsx(_components.code,{children:`bytes`}),`, `,_jsx(_components.code,{children:`logprob`}),`, and `,_jsx(_components.code,{children:`top_logprobs`}),`.`]})})]}),_jsxs(Tab,{title:`Refusal`,id:`refusal`,children:[_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type-28`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`refusal`}),`.`]})}),_jsx(ResponseField,{name:`refusal`,type:`string`,id:`param-refusal`,children:_jsx(_components.p,{children:`The refusal message.`})})]})]})})]}),_jsx(ResponseField,{name:`phase`,type:`string`,id:`param-phase-2`,children:_jsxs(_components.p,{children:[`The phase of the message. Possible values: `,_jsx(_components.code,{children:`commentary`}),`, `,_jsx(_components.code,{children:`final_answer`}),`.`]})})]}),_jsxs(Tab,{title:`Reasoning`,id:`reasoning-2`,children:[_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type-29`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`reasoning`}),`.`]})}),_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-7`,children:_jsx(_components.p,{children:`The unique ID of the reasoning item.`})}),_jsx(ResponseField,{name:`content`,type:`object[] | null`,id:`param-content-5`,children:_jsxs(_components.p,{children:[`Array of reasoning text items, each with `,_jsx(_components.code,{children:`type: \"reasoning_text\"`}),` and `,_jsx(_components.code,{children:`text`}),`.`]})}),_jsx(ResponseField,{name:`summary`,type:`object[]`,id:`param-summary-2`,children:_jsxs(_components.p,{children:[`Array of reasoning summary items, each with `,_jsx(_components.code,{children:`type: \"summary_text\"`}),` and `,_jsx(_components.code,{children:`text`}),`.`]})}),_jsx(ResponseField,{name:`encrypted_content`,type:`string | null`,id:`param-encrypted-content-1`,children:_jsx(_components.p,{children:`Encrypted reasoning content.`})}),_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status-6`,children:_jsxs(_components.p,{children:[`Status. Possible values: `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`incomplete`}),`, `,_jsx(_components.code,{children:`in_progress`}),`.`]})}),_jsx(ResponseField,{name:`signature`,type:`string | null`,id:`param-signature-1`,children:_jsx(_components.p,{children:`A signature for the reasoning content, used for verification.`})}),_jsx(ResponseField,{name:`format`,type:`string | null`,id:`param-format-2`,children:_jsxs(_components.p,{children:[`The format of the reasoning content. Possible values: `,_jsx(_components.code,{children:`unknown`}),`, `,_jsx(_components.code,{children:`openai-responses-v1`}),`, `,_jsx(_components.code,{children:`azure-openai-responses-v1`}),`, `,_jsx(_components.code,{children:`xai-responses-v1`}),`, `,_jsx(_components.code,{children:`anthropic-claude-v1`}),`, `,_jsx(_components.code,{children:`google-gemini-v1`}),`.`]})})]}),_jsxs(Tab,{title:`FunctionCall`,id:`functioncall-2`,children:[_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type-30`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`function_call`}),`.`]})}),_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-8`,children:_jsx(_components.p,{children:`The unique ID of the function call.`})}),_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name-4`,children:_jsx(_components.p,{children:`The name of the function called.`})}),_jsx(ResponseField,{name:`arguments`,type:`string`,id:`param-arguments-1`,children:_jsx(_components.p,{children:`The arguments in JSON string format.`})}),_jsx(ResponseField,{name:`call_id`,type:`string`,id:`param-call-id-2`,children:_jsx(_components.p,{children:`The call ID for matching with function call output.`})}),_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status-7`,children:_jsxs(_components.p,{children:[`Status. Possible values: `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`incomplete`}),`, `,_jsx(_components.code,{children:`in_progress`}),`.`]})})]}),_jsxs(Tab,{title:`WebSearchCall`,id:`websearchcall`,children:[_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type-31`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`web_search_call`}),`.`]})}),_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-9`,children:_jsx(_components.p,{children:`The unique ID of the web search call.`})}),_jsxs(ResponseField,{name:`action`,type:`object`,id:`param-action`,children:[_jsx(_components.p,{children:`The search action. Types include:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`search`}),`: `,_jsx(_components.code,{children:`{type, query, queries?, sources?}`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`open_page`}),`: `,_jsx(_components.code,{children:`{type, url}`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`find_in_page`}),`: `,_jsx(_components.code,{children:`{type, pattern, url}`})]}),`\n`]})]}),_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status-8`,children:_jsxs(_components.p,{children:[`Status. Possible values: `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`searching`}),`, `,_jsx(_components.code,{children:`in_progress`}),`, `,_jsx(_components.code,{children:`failed`}),`.`]})})]}),_jsxs(Tab,{title:`FileSearchCall`,id:`filesearchcall`,children:[_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type-32`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`file_search_call`}),`.`]})}),_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-10`,children:_jsx(_components.p,{children:`The unique ID of the file search call.`})}),_jsx(ResponseField,{name:`queries`,type:`string[]`,id:`param-queries`,children:_jsx(_components.p,{children:`The search queries used.`})}),_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status-9`,children:_jsxs(_components.p,{children:[`Status. Possible values: `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`searching`}),`, `,_jsx(_components.code,{children:`in_progress`}),`, `,_jsx(_components.code,{children:`failed`}),`.`]})})]}),_jsxs(Tab,{title:`ImageGenerationCall`,id:`imagegenerationcall`,children:[_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type-33`,children:_jsxs(_components.p,{children:[`Value: `,_jsx(_components.code,{children:`image_generation_call`}),`.`]})}),_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-11`,children:_jsx(_components.p,{children:`The unique ID of the image generation call.`})}),_jsx(ResponseField,{name:`result`,type:`string | null`,id:`param-result`,children:_jsx(_components.p,{children:`The generated image data (base64).`})}),_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status-10`,children:_jsxs(_components.p,{children:[`Status. Possible values: `,_jsx(_components.code,{children:`in_progress`}),`, `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`generating`}),`, `,_jsx(_components.code,{children:`failed`}),`.`]})})]})]})})]}),`\n`,_jsx(ResponseField,{name:`output_text`,type:`string`,id:`param-output-text`,children:_jsx(_components.p,{children:`Convenience field containing the concatenated text output from all output messages.`})}),`\n`,_jsxs(ResponseField,{name:`incomplete_details`,type:`object | null`,id:`param-incomplete-details`,children:[_jsx(_components.p,{children:`Details about why the response is incomplete, if applicable.`}),_jsx(Expandable,{title:`properties`,children:_jsx(ResponseField,{name:`reason`,type:`string`,id:`param-reason`,children:_jsxs(_components.p,{children:[`The reason. Possible values: `,_jsx(_components.code,{children:`max_output_tokens`}),`, `,_jsx(_components.code,{children:`content_filter`}),`.`]})})})]}),`\n`,_jsxs(ResponseField,{name:`error`,type:`object | null`,id:`param-error`,children:[_jsx(_components.p,{children:`An error object if the generation failed.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`code`,type:`string`,id:`param-code`,children:_jsxs(_components.p,{children:[`Error code. Possible values: `,_jsx(_components.code,{children:`server_error`}),`, `,_jsx(_components.code,{children:`rate_limit_exceeded`}),`, `,_jsx(_components.code,{children:`invalid_prompt`}),`, `,_jsx(_components.code,{children:`vector_store_timeout`}),`, `,_jsx(_components.code,{children:`invalid_image`}),`, `,_jsx(_components.code,{children:`invalid_image_format`}),`, `,_jsx(_components.code,{children:`invalid_base64_image`}),`, `,_jsx(_components.code,{children:`invalid_image_url`}),`, `,_jsx(_components.code,{children:`image_too_large`}),`, `,_jsx(_components.code,{children:`image_too_small`}),`, `,_jsx(_components.code,{children:`image_parse_error`}),`, `,_jsx(_components.code,{children:`image_content_policy_violation`}),`, `,_jsx(_components.code,{children:`invalid_image_mode`}),`, `,_jsx(_components.code,{children:`image_file_too_large`}),`, `,_jsx(_components.code,{children:`unsupported_image_media_type`}),`, `,_jsx(_components.code,{children:`empty_image_file`}),`, `,_jsx(_components.code,{children:`failed_to_download_image`}),`, `,_jsx(_components.code,{children:`image_file_not_found`}),`.`]})}),_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message`,children:_jsx(_components.p,{children:`Human-readable error message.`})})]})]}),`\n`,_jsxs(ResponseField,{name:`usage`,type:`object`,id:`param-usage`,children:[_jsx(_components.p,{children:`Token usage statistics for the response.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`input_tokens`,type:`number`,id:`param-input-tokens`,children:_jsx(_components.p,{children:`The number of input tokens.`})}),_jsx(ResponseField,{name:`output_tokens`,type:`number`,id:`param-output-tokens`,children:_jsx(_components.p,{children:`The number of output tokens.`})}),_jsx(ResponseField,{name:`total_tokens`,type:`number`,id:`param-total-tokens`,children:_jsx(_components.p,{children:`The total number of tokens.`})}),_jsxs(ResponseField,{name:`input_tokens_details`,type:`object`,id:`param-input-tokens-details`,children:[_jsx(_components.p,{children:`Breakdown of input tokens.`}),_jsx(Expandable,{title:`properties`,children:_jsx(ResponseField,{name:`cached_tokens`,type:`number`,id:`param-cached-tokens`,children:_jsx(_components.p,{children:`The number of cached tokens.`})})})]}),_jsxs(ResponseField,{name:`output_tokens_details`,type:`object`,id:`param-output-tokens-details`,children:[_jsx(_components.p,{children:`Breakdown of output tokens.`}),_jsx(Expandable,{title:`properties`,children:_jsx(ResponseField,{name:`reasoning_tokens`,type:`number`,id:`param-reasoning-tokens`,children:_jsx(_components.p,{children:`The number of reasoning tokens.`})})})]})]})]}),`\n`,_jsx(ResponseField,{name:`temperature`,type:`number | null`,id:`param-temperature-1`,children:_jsx(_components.p,{children:`The sampling temperature used.`})}),`\n`,_jsx(ResponseField,{name:`top_p`,type:`number | null`,id:`param-top-p-1`,children:_jsx(_components.p,{children:`The nucleus sampling value used.`})}),`\n`,_jsx(ResponseField,{name:`max_output_tokens`,type:`number | null`,id:`param-max-output-tokens-1`,children:_jsx(_components.p,{children:`The max output tokens setting used.`})}),`\n`,_jsx(ResponseField,{name:`top_logprobs`,type:`number`,id:`param-top-logprobs-1`,children:_jsx(_components.p,{children:`The top logprobs setting used.`})}),`\n`,_jsx(ResponseField,{name:`max_tool_calls`,type:`number | null`,id:`param-max-tool-calls-1`,children:_jsx(_components.p,{children:`The max tool calls setting used.`})}),`\n`,_jsx(ResponseField,{name:`presence_penalty`,type:`number | null`,id:`param-presence-penalty-1`,children:_jsx(_components.p,{children:`The presence penalty used.`})}),`\n`,_jsx(ResponseField,{name:`frequency_penalty`,type:`number | null`,id:`param-frequency-penalty-1`,children:_jsx(_components.p,{children:`The frequency penalty used.`})}),`\n`,_jsx(ResponseField,{name:`instructions`,type:`string | object[] | null`,id:`param-instructions-1`,children:_jsx(_components.p,{children:`The instructions/system message used.`})}),`\n`,_jsx(ResponseField,{name:`metadata`,type:`object`,id:`param-metadata-1`,children:_jsx(_components.p,{children:`The metadata attached to the response.`})}),`\n`,_jsx(ResponseField,{name:`tools`,type:`object[]`,id:`param-tools-1`,children:_jsx(_components.p,{children:`The tools configuration used.`})}),`\n`,_jsx(ResponseField,{name:`tool_choice`,type:`string | object`,id:`param-tool-choice-1`,children:_jsx(_components.p,{children:`The tool choice configuration used.`})}),`\n`,_jsx(ResponseField,{name:`parallel_tool_calls`,type:`boolean`,id:`param-parallel-tool-calls-1`,children:_jsx(_components.p,{children:`Whether parallel tool calls was enabled.`})}),`\n`,_jsx(ResponseField,{name:`reasoning`,type:`object`,id:`param-reasoning-1`,children:_jsx(_components.p,{children:`The reasoning configuration used.`})}),`\n`,_jsx(ResponseField,{name:`service_tier`,type:`string`,id:`param-service-tier-1`,children:_jsxs(_components.p,{children:[`The service tier used. Possible values: `,_jsx(_components.code,{children:`auto`}),`, `,_jsx(_components.code,{children:`default`}),`, `,_jsx(_components.code,{children:`flex`}),`, `,_jsx(_components.code,{children:`priority`}),`, `,_jsx(_components.code,{children:`scale`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`store`,type:`boolean`,id:`param-store-1`,children:_jsx(_components.p,{children:`Whether the response was stored.`})}),`\n`,_jsx(ResponseField,{name:`truncation`,type:`string`,id:`param-truncation-1`,children:_jsxs(_components.p,{children:[`The truncation strategy used. Possible values: `,_jsx(_components.code,{children:`auto`}),`, `,_jsx(_components.code,{children:`disabled`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`text`,type:`object`,id:`param-text-3`,children:_jsx(_components.p,{children:`The text format configuration used.`})}),`\n`,_jsx(ResponseField,{name:`previous_response_id`,type:`string | null`,id:`param-previous-response-id-1`,children:_jsx(_components.p,{children:`The ID of the previous response used as context.`})}),`\n`,_jsx(ResponseField,{name:`background`,type:`boolean | null`,id:`param-background-2`,children:_jsx(_components.p,{children:`Whether the request ran in the background.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a response","api":"POST https://api-llm.sunra.ai/v1/responses","description":null,"href":"/llm/responses"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[213,337,"pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,RequestExample,ResponseExample,ResponseField,Tab,Tabs}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!"],[498,510,"questExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)"],[56248,56676,",`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`13`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api-llm.sunra.ai/v1/responses`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer \u003cSUNRA_KEY>\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"google/gemini-2.5-flash\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"input\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"message\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"role\": \"user\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content\": \"Hello, how are you?\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`20`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`20`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api-llm.sunra.ai/v1/responses\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer \u003cSUNRA_KEY>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/json\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"google/gemini-2.5-flash\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hello, how are you?\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.json())`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`19`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`19`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api-llm.sunra.ai/v1/responses\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Bearer \u003cSUNRA_KEY>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` model:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"google/gemini-2.5-flash\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` input:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` role:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` content:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Hello, how are you?\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})]}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`200`,numberOfLines:`57`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`57`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"resp-abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"response\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1704067200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"completed_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1704067201`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"google/gemini-2.5-flash\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"msg_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"assistant\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"output_text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hello! I'm doing well, thank you for asking. How can I help you today?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"annotations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output_text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hello! I'm doing well, thank you for asking. How can I help you today?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"incomplete_details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"temperature\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1.0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"top_p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1.0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"max_output_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"top_logprobs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"presence_penalty\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"frequency_penalty\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"instructions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tools\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tool_choice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"auto\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"parallel_tool_calls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reasoning\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"service_tier\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"auto\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"store\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"truncation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"disabled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"format\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"usage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`15`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`18`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`33`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input_tokens_details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cached_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output_tokens_details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reasoning_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}"]]},"mdxExtracts":{"tableOfContents":[{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Request","slug":"request","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"13\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api-llm.sunra.ai/v1/responses\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer \u0026#x3C;SUNRA_KEY>\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"google/gemini-2.5-flash\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"input\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"type\": \"message\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"role\": \"user\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"content\": \"Hello, how are you?\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"20\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">response \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.post(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api-llm.sunra.ai/v1/responses\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Bearer \u0026#x3C;SUNRA_KEY>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"application/json\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> json\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"google/gemini-2.5-flash\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"input\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"role\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"user\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"content\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Hello, how are you?\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(response.json())\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"JavaScript","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"19\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://api-llm.sunra.ai/v1/responses\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> method:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"POST\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Bearer \u0026#x3C;SUNRA_KEY>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"application/json\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> body:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> JSON\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">stringify\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> model:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"google/gemini-2.5-flash\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> input:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> type:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> role:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"user\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> content:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Hello, how are you?\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> })\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> data\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">data\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"57\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"resp-abc123\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"object\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"response\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1704067200\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"completed_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1704067201\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"completed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"model\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"google/gemini-2.5-flash\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"output\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"msg_abc123\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"role\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"assistant\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"completed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"content\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"output_text\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"text\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Hello! I'm doing well, thank you for asking. How can I help you today?\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"annotations\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: []\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"output_text\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Hello! I'm doing well, thank you for asking. How can I help you today?\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"incomplete_details\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"temperature\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1.0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"top_p\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1.0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"max_output_tokens\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"top_logprobs\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"presence_penalty\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"frequency_penalty\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"instructions\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"metadata\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"tools\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"tool_choice\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"auto\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"parallel_tool_calls\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"reasoning\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"service_tier\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"auto\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"store\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"truncation\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"disabled\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"text\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"format\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"text\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"usage\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"input_tokens\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">15\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"output_tokens\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">18\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"total_tokens\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">33\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"input_tokens_details\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"cached_tokens\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"output_tokens_details\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"reasoning_tokens\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Create a response","path":"/v1/responses","servers":[{"url":"https://api-llm.sunra.ai"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{"Authorization":{"schema":[{"type":"string","description":"Bearer token. Use your API key as the bearer token in the Authorization header. Format: `Bearer \u003cSUNRA_KEY>`","required":true}]}},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"model":[{"type":"string","description":"Model ID used to generate the response. Browse available models at sunra.ai/models .","required":true}],"provider":[{"type":"object","properties":{},"description":"Optional provider routing preferences. Omit for automatic routing. See Provider routing for supported fields and provider discovery."}],"input":[{"type":"array","items":[{"type":"object","properties":{"role":[{"type":"string","description":"Value: `assistant` .","required":true}],"content":[{"type":"object","properties":{},"description":"Array of reasoning text content items, each with `type: \"reasoning_text\"` and `text` ."}],"type":[{"type":"string","description":"Value: `reasoning` .","required":true}],"phase":[{"type":"string","description":"The phase. Supported values: `commentary` , `final_answer` ."}],"id":[{"type":"string","description":"The unique ID of the reasoning item.","required":true}],"status":[{"type":"string","description":"Status. Supported values: `completed` , `incomplete` , `in_progress` ."}],"call_id":[{"type":"string","description":"The call ID of the function call being responded to.","required":true}],"name":[{"type":"string","description":"The name of the function.","required":true}],"arguments":[{"type":"string","description":"The arguments in JSON string format.","required":true}],"output":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"The output of the function call. Can be a string or array of content parts ( `input_text` , `input_image` , `input_file` ).","required":true}],"summary":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Array of reasoning summary text items, each with `type: \"summary_text\"` and `text` ."}],"encrypted_content":[{"type":"object","properties":{},"description":"Encrypted reasoning content for models that support it."}],"signature":[{"type":"object","properties":{},"description":"A signature for the reasoning content, used for verification."}]}}],"description":"Input for the response request. Can be a string or an array of input items including messages, function calls, function call outputs, reasoning items, and output messages."}],"instructions":[{"type":"object","properties":{},"description":"Inserts a system (or developer) message as the first item in the model’s context. When used with `input` , the instructions are inserted at the start of the input."}],"stream":[{"type":"boolean","description":"If set to `true` , the response will be streamed using server-sent events (SSE). Streams are subject to an idle timeout and a lifetime ceiling — see Output limits and stream lifetime . A non-streaming request is terminated at the edge if the response takes too long to arrive, so any request that may generate for more than ~90 seconds must set `stream: true` — see the edge timeout ."}],"max_output_tokens":[{"type":"object","properties":{},"description":"An upper bound for the number of output tokens, including visible output tokens and reasoning tokens. A value above the model’s own ceiling is rejected with `400` rather than reduced. See Output limits ."}],"temperature":[{"type":"object","properties":{},"description":"Sampling temperature between 0 and 2. Higher values increase randomness. For OpenAI reasoning models ( `gpt-5.x` , `gpt-6-*` ) with reasoning enabled, `temperature` and `top_p` are not supported upstream and are dropped silently by the gateway."}],"top_p":[{"type":"object","properties":{},"description":"Nucleus sampling parameter. An alternative to sampling with temperature."}],"top_k":[{"type":"number","description":"Sample only from the top K options for each subsequent token. Used to remove “long tail” low-probability responses."}],"frequency_penalty":[{"type":"object","properties":{},"description":"Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text."}],"presence_penalty":[{"type":"object","properties":{},"description":"Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they already appear in the text."}],"top_logprobs":[{"type":"object","properties":{},"description":"An integer specifying the number of most likely tokens to return at each token position."}],"max_tool_calls":[{"type":"object","properties":{},"description":"Maximum number of tool calls the model can make in a single response."}],"tools":[{"type":"array","items":[{"type":"object","properties":{"type":[{"type":"string","description":"Value: `image_generation` .","required":true}],"name":[{"type":"string","description":"The name of the function.","required":true}],"description":[{"type":"object","properties":{},"description":"A description of the function."}],"parameters":[{"type":"object","properties":{},"description":"A JSON Schema object defining the function parameters."}],"strict":[{"type":"object","properties":{},"description":"Whether strict schema adherence is enabled."}],"search_context_size":[{"type":"string","description":"Size of the search context. Supported values: `low` , `medium` , `high` ."}],"user_location":[{"type":"object","properties":{},"description":"User location information for search personalization."}],"filters":[{"type":"object","properties":{},"description":"Filters for file search. Can be a comparison filter ( `eq` , `ne` , `gt` , `gte` , `lt` , `lte` ) or a compound filter ( `and` , `or` )."}],"vector_store_ids":[{"type":"array","items":[{"type":"string"}],"description":"IDs of vector stores to search.","required":true}],"max_num_results":[{"type":"integer","description":"Maximum number of results to return."}],"ranking_options":[{"type":"object","properties":{"ranker":[{"type":"string","description":"Ranker to use. Supported values: `auto` , `default-2024-11-15` ."}],"score_threshold":[{"type":"number","description":"Minimum score threshold for results."}]},"description":"Ranking options for search results."}],"display_height":[{"type":"number","description":"Display height in pixels.","required":true}],"display_width":[{"type":"number","description":"Display width in pixels.","required":true}],"environment":[{"type":"string","description":"The environment. Supported values: `windows` , `mac` , `linux` , `ubuntu` , `browser` .","required":true}],"container":[{"type":"object","properties":{"type":[{"type":"string","description":"Value: `auto` .","required":true}],"file_ids":[{"type":"array","items":[{"type":"string"}],"description":"File IDs to make available in the container."}],"memory_limit":[{"type":"object","properties":{},"description":"Memory limit. Supported values: `1g` , `4g` , `16g` , `64g` ."}]},"description":"Container configuration. Can be a container ID string or an object.","required":true}],"server_label":[{"type":"string","description":"A label for the MCP server.","required":true}],"server_url":[{"type":"string","description":"The URL of the MCP server."}],"allowed_tools":[{"type":"object","properties":{},"description":"Tools the model is allowed to use from this server."}],"require_approval":[{"type":"object","properties":{},"description":"Approval requirements for tool calls. String values: `always` , `never` . Can also be an object with `never` and `always` lists."}],"headers":[{"type":"object","properties":{},"description":"Custom headers to include in requests to the MCP server."}],"server_description":[{"type":"string","description":"Description of the MCP server."}],"background":[{"type":"string","description":"Background type. Supported values: `transparent` , `opaque` , `auto` ."}],"model":[{"type":"string","description":"Model to use. Supported values: `gpt-image-1` , `gpt-image-1-mini` ."}],"quality":[{"type":"string","description":"Image quality. Supported values: `low` , `medium` , `high` , `auto` ."}],"size":[{"type":"string","description":"Image size. Supported values: `1024x1024` , `1024x1536` , `1536x1024` , `auto` ."}],"output_format":[{"type":"string","description":"Output format. Supported values: `png` , `webp` , `jpeg` ."}],"moderation":[{"type":"string","description":"Moderation level. Supported values: `auto` , `low` ."}],"output_compression":[{"type":"number","description":"Compression level for output."}],"partial_images":[{"type":"number","description":"Number of partial images to return during generation."}]}}],"description":"An array of tools the model may call."}],"tool_choice":[{"type":"object","properties":{"type":[{"type":"string","description":"Value: `web_search_preview` or `web_search_preview_2025_03_11` .","required":true}],"name":[{"type":"string","description":"The name of the function to use.","required":true}]},"description":"Controls tool selection behavior. String values: `none` , `auto` , `required` . Can also specify a particular function or tool type."}],"parallel_tool_calls":[{"type":"object","properties":{},"description":"Whether to allow the model to run tool calls in parallel."}],"text":[{"type":"object","properties":{"format":[{"type":"object","properties":{"type":[{"type":"string","description":"Value: `json_schema` .","required":true}],"name":[{"type":"string","description":"The name of the response format.","required":true}],"schema":[{"type":"object","properties":{},"description":"The JSON schema definition.","required":true}],"description":[{"type":"string","description":"Description of the schema."}],"strict":[{"type":"object","properties":{},"description":"Whether strict schema adherence is enabled."}]},"description":"The text format configuration."}],"verbosity":[{"type":"object","properties":{},"description":"Controls the verbosity of the text output. Supported values: `high` , `medium` , `low` ."}]},"description":"Configuration for text response format."}],"reasoning":[{"type":"object","properties":{"effort":[{"type":"string","description":"Constrains effort on reasoning. Supported values: `xhigh` , `high` , `medium` , `low` , `minimal` , `none` ."}],"summary":[{"type":"string","description":"Controls reasoning summary verbosity. Supported values: `auto` , `concise` , `detailed` ."}],"max_tokens":[{"type":"object","properties":{},"description":"Maximum number of tokens for reasoning."}],"enabled":[{"type":"object","properties":{},"description":"Whether reasoning is enabled."}]},"description":"Configuration for reasoning output."}],"thinking":[{"type":"object","properties":{},"description":"Cross-vendor switch for extended thinking. For OpenAI-family reasoning models ( `gpt-5.x` , `gpt-6-*` ) the gateway maps it to the reasoning effort: `{\"type\": \"disabled\"}` becomes `reasoning.effort: \"none\"` , `{\"type\": \"enabled\"}` leaves the model’s default effort, and an explicit `reasoning.effort` (or `reasoning_effort` ) always wins."}],"modalities":[{"type":"array","items":[{"type":"string"}],"description":"Output modalities for the response. Supported values: `text` , `image` ."}],"previous_response_id":[{"type":"object","properties":{},"description":"The ID of a previous response to use as context for this request — send the `id` Sunra returned for that response. An id Sunra does not recognize is rejected with `400 invalid_request_error` . See Continuing a conversation for the transition period and failure behavior."}],"include":[{"type":"array","items":[{"type":"string"}],"description":"Additional fields to include in the response. Supported values: `file_search_call.results` , `message.input_image.image_url` , `computer_call_output.output.image_url` , `reasoning.encrypted_content` , `code_interpreter_call.outputs` ."}],"store":[{"type":"boolean","description":"Whether to store the generated response for later retrieval."}],"service_tier":[{"type":"string","description":"The service tier to use for this request. Supported values: `auto` ."}],"truncation":[{"type":"string","description":"Truncation strategy. Supported values: `auto` , `disabled` ."}],"background":[{"type":"object","properties":{},"description":"Whether to run the request in the background."}],"metadata":[{"type":"object","properties":{},"description":"Set of key-value pairs that can be attached to the response. Keys must be ≤64 characters. Values must be ≤512 characters. Maximum 16 pairs allowed."}],"user":[{"type":"string","description":"A unique identifier representing your end-user. Maximum of 128 characters."}]}}],"examples":{"example":{"value":{"model":"\u003cstring>","provider":{},"input":[{"role":"\u003cstring>","content":{},"type":"\u003cstring>","phase":"\u003cstring>","id":"\u003cstring>","status":"\u003cstring>","call_id":"\u003cstring>","name":"\u003cstring>","arguments":"\u003cstring>","output":[{}],"summary":[{}],"encrypted_content":{},"signature":{}}],"instructions":{},"stream":true,"max_output_tokens":{},"temperature":{},"top_p":{},"top_k":123,"frequency_penalty":{},"presence_penalty":{},"top_logprobs":{},"max_tool_calls":{},"tools":[{"type":"\u003cstring>","name":"\u003cstring>","description":{},"parameters":{},"strict":{},"search_context_size":"\u003cstring>","user_location":{},"filters":{},"vector_store_ids":["\u003cstring>"],"max_num_results":123,"ranking_options":{"ranker":"\u003cstring>","score_threshold":123},"display_height":123,"display_width":123,"environment":"\u003cstring>","container":{"type":"\u003cstring>","file_ids":["\u003cstring>"],"memory_limit":{}},"server_label":"\u003cstring>","server_url":"\u003cstring>","allowed_tools":{},"require_approval":{},"headers":{},"server_description":"\u003cstring>","background":"\u003cstring>","model":"\u003cstring>","quality":"\u003cstring>","size":"\u003cstring>","output_format":"\u003cstring>","moderation":"\u003cstring>","output_compression":123,"partial_images":123}],"tool_choice":{"type":"\u003cstring>","name":"\u003cstring>"},"parallel_tool_calls":{},"text":{"format":{"type":"\u003cstring>","name":"\u003cstring>","schema":{},"description":"\u003cstring>","strict":{}},"verbosity":{}},"reasoning":{"effort":"\u003cstring>","summary":"\u003cstring>","max_tokens":{},"enabled":{}},"thinking":{},"modalities":["\u003cstring>"],"previous_response_id":{},"include":["\u003cstring>"],"store":true,"service_tier":"\u003cstring>","truncation":"\u003cstring>","background":{},"metadata":{},"user":"\u003cstring>"}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"id":[{"type":"string","description":"Unique response identifier. Currently the upstream model provider’s own id, forwarded as-is (e.g. `resp_...` ). This is switching to a Sunra-issued value (breaking change, date to be announced): see Response identifiers and tracking . The same id is always available via the `x-sunra-prediction-id` response header , unaffected by that change. On streaming responses, the equivalent value is `response.id` on `response.created` , `response.completed` , and other response-carrying events. Use this id (not a raw upstream id) as `previous_response_id` to continue the conversation — see Continuing a conversation ."}],"object":[{"type":"string","description":"The object type. Always `response` ."}],"created_at":[{"type":"number","description":"Unix timestamp (in seconds) of when the response was created."}],"completed_at":[{"type":"object","properties":{},"description":"Unix timestamp (in seconds) of when the response completed."}],"status":[{"type":"string","description":"The status of the response. Possible values: `completed` , `incomplete` , `in_progress` , `failed` , `cancelled` , `queued` ."}],"model":[{"type":"string","description":"The model used for generating the response."}],"output":[{"type":"array","items":[{"type":"object","properties":{"type":[{"type":"string","description":"Value: `image_generation_call` ."}],"id":[{"type":"string","description":"The unique ID of the image generation call."}],"role":[{"type":"string","description":"Always `assistant` ."}],"status":[{"type":"string","description":"Status. Possible values: `in_progress` , `completed` , `generating` , `failed` ."}],"content":[{"type":"object","properties":{},"description":"Array of reasoning text items, each with `type: \"reasoning_text\"` and `text` ."}],"phase":[{"type":"string","description":"The phase of the message. Possible values: `commentary` , `final_answer` ."}],"summary":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Array of reasoning summary items, each with `type: \"summary_text\"` and `text` ."}],"encrypted_content":[{"type":"object","properties":{},"description":"Encrypted reasoning content."}],"signature":[{"type":"object","properties":{},"description":"A signature for the reasoning content, used for verification."}],"format":[{"type":"object","properties":{},"description":"The format of the reasoning content. Possible values: `unknown` , `openai-responses-v1` , `azure-openai-responses-v1` , `xai-responses-v1` , `anthropic-claude-v1` , `google-gemini-v1` ."}],"name":[{"type":"string","description":"The name of the function called."}],"arguments":[{"type":"string","description":"The arguments in JSON string format."}],"call_id":[{"type":"string","description":"The call ID for matching with function call output."}],"action":[{"type":"object","properties":{},"description":"The search action. Types include: `search` : `{type, query, queries?, sources?}` `open_page` : `{type, url}` `find_in_page` : `{type, pattern, url}`"}],"queries":[{"type":"array","items":[{"type":"string"}],"description":"The search queries used."}],"result":[{"type":"object","properties":{},"description":"The generated image data (base64)."}]}}],"description":"An array of output items generated by the model."}],"output_text":[{"type":"string","description":"Convenience field containing the concatenated text output from all output messages."}],"incomplete_details":[{"type":"object","properties":{"reason":[{"type":"string","description":"The reason. Possible values: `max_output_tokens` , `content_filter` ."}]},"description":"Details about why the response is incomplete, if applicable."}],"error":[{"type":"object","properties":{"code":[{"type":"string","description":"Error code. Possible values: `server_error` , `rate_limit_exceeded` , `invalid_prompt` , `vector_store_timeout` , `invalid_image` , `invalid_image_format` , `invalid_base64_image` , `invalid_image_url` , `image_too_large` , `image_too_small` , `image_parse_error` , `image_content_policy_violation` , `invalid_image_mode` , `image_file_too_large` , `unsupported_image_media_type` , `empty_image_file` , `failed_to_download_image` , `image_file_not_found` ."}],"message":[{"type":"string","description":"Human-readable error message."}]},"description":"An error object if the generation failed."}],"usage":[{"type":"object","properties":{"input_tokens":[{"type":"number","description":"The number of input tokens."}],"output_tokens":[{"type":"number","description":"The number of output tokens."}],"total_tokens":[{"type":"number","description":"The total number of tokens."}],"input_tokens_details":[{"type":"object","properties":{"cached_tokens":[{"type":"number","description":"The number of cached tokens."}]},"description":"Breakdown of input tokens."}],"output_tokens_details":[{"type":"object","properties":{"reasoning_tokens":[{"type":"number","description":"The number of reasoning tokens."}]},"description":"Breakdown of output tokens."}]},"description":"Token usage statistics for the response."}],"temperature":[{"type":"object","properties":{},"description":"The sampling temperature used."}],"top_p":[{"type":"object","properties":{},"description":"The nucleus sampling value used."}],"max_output_tokens":[{"type":"object","properties":{},"description":"The max output tokens setting used."}],"top_logprobs":[{"type":"number","description":"The top logprobs setting used."}],"max_tool_calls":[{"type":"object","properties":{},"description":"The max tool calls setting used."}],"presence_penalty":[{"type":"object","properties":{},"description":"The presence penalty used."}],"frequency_penalty":[{"type":"object","properties":{},"description":"The frequency penalty used."}],"instructions":[{"type":"object","properties":{},"description":"The instructions/system message used."}],"metadata":[{"type":"object","properties":{},"description":"The metadata attached to the response."}],"tools":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"The tools configuration used."}],"tool_choice":[{"type":"object","properties":{},"description":"The tool choice configuration used."}],"parallel_tool_calls":[{"type":"boolean","description":"Whether parallel tool calls was enabled."}],"reasoning":[{"type":"object","properties":{},"description":"The reasoning configuration used."}],"service_tier":[{"type":"string","description":"The service tier used. Possible values: `auto` , `default` , `flex` , `priority` , `scale` ."}],"store":[{"type":"boolean","description":"Whether the response was stored."}],"truncation":[{"type":"string","description":"The truncation strategy used. Possible values: `auto` , `disabled` ."}],"text":[{"type":"object","properties":{},"description":"The text format configuration used."}],"previous_response_id":[{"type":"object","properties":{},"description":"The ID of the previous response used as context."}],"background":[{"type":"object","properties":{},"description":"Whether the request ran in the background."}]}}],"examples":{"example":{"value":{"id":"\u003cstring>","object":"\u003cstring>","created_at":123,"completed_at":{},"status":"\u003cstring>","model":"\u003cstring>","output":[{"type":"\u003cstring>","id":"\u003cstring>","role":"\u003cstring>","status":"\u003cstring>","content":{},"phase":"\u003cstring>","summary":[{}],"encrypted_content":{},"signature":{},"format":{},"name":"\u003cstring>","arguments":"\u003cstring>","call_id":"\u003cstring>","action":{},"queries":["\u003cstring>"],"result":{}}],"output_text":"\u003cstring>","incomplete_details":{"reason":"\u003cstring>"},"error":{"code":"\u003cstring>","message":"\u003cstring>"},"usage":{"input_tokens":123,"output_tokens":123,"total_tokens":123,"input_tokens_details":{"cached_tokens":123},"output_tokens_details":{"reasoning_tokens":123}},"temperature":{},"top_p":{},"max_output_tokens":{},"top_logprobs":123,"max_tool_calls":{},"presence_penalty":{},"frequency_penalty":{},"instructions":{},"metadata":{},"tools":[{}],"tool_choice":{},"parallel_tool_calls":true,"reasoning":{},"service_tier":"\u003cstring>","store":true,"truncation":"\u003cstring>","text":{},"previous_response_id":{},"background":{}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"sunraai","siteName":"Sunra.ai","title":"Create a response - Sunra.ai","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/llm/responses","matchLevel":0},"zh-Hans":{"href":"/zh-Hans/llm/responses","matchLevel":1},"zh-Hant":{"href":"/zh-Hant/llm/responses","matchLevel":1},"fr":{"href":"/fr/llm/responses","matchLevel":1},"ja":{"href":"/ja/llm/responses","matchLevel":1},"es":{"href":"/es/llm/responses","matchLevel":1},"pt":{"href":"/pt/llm/responses","matchLevel":1},"hi":{"href":"/hi/llm/responses","matchLevel":1},"tr":{"href":"/tr/llm/responses","matchLevel":1},"de":{"href":"/de/llm/responses","matchLevel":1},"id":{"href":"/id/llm/responses","matchLevel":1},"it":{"href":"/it/llm/responses","matchLevel":1},"ko":{"href":"/ko/llm/responses","matchLevel":1},"ru":{"href":"/ru/llm/responses","matchLevel":1}}},"lastModified":"2026-09-19T11:27:30.134Z","originalFileLocation":"llm/responses.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=\"system\"}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=\"application-name\" content=\"Sunra.ai\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sunraai/LRMCLsYjFvskNvgC/_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/sunraai/LRMCLsYjFvskNvgC/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sunraai/LRMCLsYjFvskNvgC/_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/sunraai/LRMCLsYjFvskNvgC/_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/sunraai/LRMCLsYjFvskNvgC/_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/sunraai/LRMCLsYjFvskNvgC/_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/sunraai/LRMCLsYjFvskNvgC/_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/sunraai/LRMCLsYjFvskNvgC/_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/sunraai/LRMCLsYjFvskNvgC/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a response - Sunra.ai\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Sunra.ai\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.sunra.ai/llm/responses\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sunraai.mintlify.app/_mintlify/api/og/v2?division=LLM\u0026amp;title=Create+a+response\u0026amp;theme=bd1a022ff2457f18109208ab\u0026amp;signature=7480a6bef199e67ba0aa97972c2a241e222e8fbbeba4d1544f522547e639dd2f\">\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 a response - Sunra.ai\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sunraai.mintlify.app/_mintlify/api/og/v2?division=LLM\u0026amp;title=Create+a+response\u0026amp;theme=bd1a022ff2457f18109208ab\u0026amp;signature=7480a6bef199e67ba0aa97972c2a241e222e8fbbeba4d1544f522547e639dd2f\">\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/sunraai/LRMCLsYjFvskNvgC/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Sunra.ai\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ff632f\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.sunra.ai/llm/responses\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/llm/responses.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.sunra.ai/llm/responses\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hans\" href=\"https://docs.sunra.ai/zh-Hans/llm/responses\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hant\" href=\"https://docs.sunra.ai/zh-Hant/llm/responses\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.sunra.ai/fr/llm/responses\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.sunra.ai/ja/llm/responses\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.sunra.ai/es/llm/responses\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt\" href=\"https://docs.sunra.ai/pt/llm/responses\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"hi\" href=\"https://docs.sunra.ai/hi/llm/responses\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"tr\" href=\"https://docs.sunra.ai/tr/llm/responses\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.sunra.ai/de/llm/responses\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"id\" href=\"https://docs.sunra.ai/id/llm/responses\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"it\" href=\"https://docs.sunra.ai/it/llm/responses\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.sunra.ai/ko/llm/responses\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ru\" href=\"https://docs.sunra.ai/ru/llm/responses\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.sunra.ai/llm/responses\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.sunra.ai/#organization\",\"name\":\"Sunra.ai\",\"url\":\"https://docs.sunra.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/sunraai/U2o8uzmv75no70tM/logo/light.svg?fit=max\u0026auto=format\u0026n=U2o8uzmv75no70tM\u0026q=85\u0026s=520c0afb29ad1fddc46fec66c975eb2a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.sunra.ai#website\",\"name\":\"Sunra.ai\",\"url\":\"https://docs.sunra.ai\",\"publisher\":{\"@id\":\"https://docs.sunra.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.sunra.ai/llm/responses#webpage\",\"url\":\"https://docs.sunra.ai/llm/responses\",\"name\":\"Create a response\",\"dateModified\":\"2026-09-19T11:27:30.134Z\",\"isPartOf\":{\"@id\":\"https://docs.sunra.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.sunra.ai/llm/responses#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.sunra.ai/llm/responses#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"LLM\",\"item\":\"https://docs.sunra.ai/llm/llm-quickstart\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a response\",\"item\":\"https://docs.sunra.ai/llm/responses\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.sunra.ai/llm/responses#apireference\",\"headline\":\"Create a response\",\"name\":\"Create a response\",\"url\":\"https://docs.sunra.ai/llm/responses\",\"mainEntityOfPage\":{\"@id\":\"https://docs.sunra.ai/llm/responses#webpage\"},\"dateModified\":\"2026-09-19T11:27:30.134Z\",\"publisher\":{\"@id\":\"https://docs.sunra.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.sunra.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Sunra.ai\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Sunra.ai","nav":{"global":{"anchors":[{"anchor":"X (Twitter)","icon":"x-twitter","href":"https://x.com/sunra_ai"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/897qCzvCcU"},{"anchor":"GitHub","icon":"github","href":"https://github.com/sunra-ai"}]},"languages":[{"language":"en","groups":[{"group":"Overview","pages":[{"title":"Introduction","href":""}]},{"group":"Platform","pages":[{"title":"Authentication","href":"/platform/authentication"},{"title":"Budget keys","href":"/platform/budget-keys"},{"title":"Shared budget pools","href":"/platform/budget-pools"},{"title":"File Upload","href":"/platform/file-upload"},{"title":"Pricing","href":"/platform/pricing"},{"title":"Errors","href":"/platform/errors"}]},{"group":"Multimodal","pages":[{"title":"Quickstart","href":"/multimodal/quickstart"},{"title":"Text to Image","href":"/multimodal/text-to-image"},{"title":"Text to Video","href":"/multimodal/text-to-video"},{"title":"Image to Video","href":"/multimodal/image-to-video"},{"title":"Speech to Text","href":"/multimodal/speech-to-text"},{"title":"ElevenLabs Voices","href":"/multimodal/elevenlabs-voices"},{"title":"Canonical Model Endpoints","href":"/multimodal/canonical-model-endpoints"},{"title":"MCP Server","href":"/multimodal/mcp-server-setup"},{"title":"Queue","href":"/multimodal/queue"},{"title":"Server-Side Integration","href":"/multimodal/server-side-integration"}]},{"group":"LLM","pages":[{"title":"LLM Quickstart","href":"/llm/llm-quickstart"},{"title":"Provider routing","href":"/llm/provider-routing"},{"title":"Token usage","href":"/llm/token-usage"},{"title":"Output limits and stream lifetime","href":"/llm/limits"},{"title":"Response identifiers and tracking","href":"/llm/response-tracking"},{"title":"Create a chat completion","api":"POST https://api-llm.sunra.ai/v1/chat/completions","href":"/llm/chat"},{"title":"Create a message","api":"POST https://api-llm.sunra.ai/v1/messages","description":null,"href":"/llm/messages"},{"title":"Create a response","api":"POST https://api-llm.sunra.ai/v1/responses","href":"/llm/responses"},{"title":"Create embeddings","api":"POST https://api-llm.sunra.ai/v1/embeddings","description":null,"href":"/llm/embeddings"}]},{"group":"Client Libraries","pages":[{"title":"JavaScript / TypeScript","href":"/client-libraries/javascript"},{"title":"Python","href":"/client-libraries/python"},{"title":"Java","href":"/client-libraries/java"},{"title":"Request New Client","href":"/client-libraries/request-new-client"}]}]},{"language":"zh-Hans","pages":[{"title":"zh-Hans","href":"/zh-Hans/llm/responses"}]},{"language":"zh-Hant","pages":[{"title":"zh-Hant","href":"/zh-Hant/llm/responses"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/llm/responses"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/llm/responses"}]},{"language":"es","pages":[{"title":"es","href":"/es/llm/responses"}]},{"language":"pt","pages":[{"title":"pt","href":"/pt/llm/responses"}]},{"language":"hi","pages":[{"title":"hi","href":"/hi/llm/responses"}]},{"language":"tr","pages":[{"title":"tr","href":"/tr/llm/responses"}]},{"language":"de","pages":[{"title":"de","href":"/de/llm/responses"}]},{"language":"id","pages":[{"title":"id","href":"/id/llm/responses"}]},{"language":"it","pages":[{"title":"it","href":"/it/llm/responses"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/llm/responses"}]},{"language":"ru","pages":[{"title":"ru","href":"/ru/llm/responses"}]}]},"basePath":"","title":"Create a response - Sunra.ai","buildId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","deploymentId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["BannerMarkdown-DHaG7hr_.js","dist-DKZWslLH.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","clsx-BIWXJmsZ.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-DCDCdBVX.js","utils-ME8dDnLe.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-0e84ACsd.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-wgRBj-ia.js","snippetPresets-C11Sgb-o.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-C0lapOpP.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-ZeRQV8fF.js","shallow-BupWh095.js","getApiPlaygroundDisplay-BnYQO2Ss.js","CodeSnippet-RKKOc8c_.js","CodeSnippets-Drf_m8wS.js","Page-Bevw23-4.js","getPastedJson-u6QiPzNZ.js","icon-Bb-CBSxO.js","MethodPill-F7l5AI7V.js","DuplicateIcon-IiAXkdSg.js","createIcon-FliI8EBc.js","DynamicMarkdown-B62XqCSI.js","SectionHeading-Dj31pT03.js","axios-vUo_bRtp.js"]}