The type of tool. Must be web_search_20250305 for web search
name
string
✅
-
The name of the tool. Use web_search
max_uses
integer
-
-
Maximum number of times the web search tool can be used in a single request, range in 1-10
allowed_domains
array
-
-
Only include search results from these domains. Cannot be used with blocked_domains
blocked_domains
array
-
-
Never include search results from these domains. Cannot be used with allowed_domains
user_location
object
-
-
Localize search results based on user’s location. See User Location
Max Uses StructureThe max_uses parameter limits the number of searches performed. If Claude attempts more searches than allowed, the web_search_tool_result will be an error with the max_uses_exceeded error code.Domain FilteringWhen using domain filters:
Domains should not include the HTTP/HTTPS scheme (use example.com instead of https://example.com)
Subdomains are automatically included (example.com covers docs.example.com)
Specific subdomains restrict results to only that subdomain (docs.example.com returns only results from that subdomain, not from example.com or api.example.com)
Subpaths are supported (example.com/blog)
You can use either allowed_domains or blocked_domains, but not both in the same request
Request-level domain restrictions must be compatible with organization-level domain restrictions configured in the Console
Tool selection mode. auto: model decides whether to use a tool, any: model must use one of the available tools, tool: model must use the specific tool specified by name.
name
string
-
The name of the specific tool to use. Required only when type is tool.
Thinking mode. enabled: model uses extended thinking for internal reasoning before generating the response, disabled: standard response mode.
budget_tokens
integer
-
Maximum tokens allocated for thinking. Required when type is enabled. The model uses these tokens for internal reasoning before producing the final output.
An external identifier for the user making the request. Useful for analytics, abuse detection, and logging.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"AGCloud API","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/yvshun-470c5ffb/qvjVHG-wIG2CZTlO/logo/favicon.svg?fit=max\u0026auto=format\u0026n=qvjVHG-wIG2CZTlO\u0026q=85\u0026s=bfb952660ac07ff827fe518f6b6a0132","dark":"https://mintcdn.com/yvshun-470c5ffb/qvjVHG-wIG2CZTlO/logo/favicon.svg?fit=max\u0026auto=format\u0026n=qvjVHG-wIG2CZTlO\u0026q=85\u0026s=bfb952660ac07ff827fe518f6b6a0132"},"favicon":"https://mintcdn.com/yvshun-470c5ffb/qvjVHG-wIG2CZTlO/logo/favicon.svg?fit=max\u0026auto=format\u0026n=qvjVHG-wIG2CZTlO\u0026q=85\u0026s=bfb952660ac07ff827fe518f6b6a0132","api":{"playground":{"display":"simple"},"examples":{"autogenerate":false}},"navbar":{"primary":{"type":"button","label":"Dashboard","href":"https://developer.aiandgpu.com"}},"footer":{"socials":{"x":"https://x.com/mintlify","github":"https://github.com/mintlify","linkedin":"https://linkedin.com/company/mintlify"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"yvshun-470c5ffb","hasAudioNarration":false,"actualSubdomain":"yvshun-470c5ffb","customDomains":["docs.aiandgpu.com"],"gitSource":{"type":"github","owner":"white-poto","repo":"docs","deployBranch":"main","isPrivate":true,"contentDirectory":"","mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad1f44b8e4eb469a4fedf2d","collectionId":"1ff90ff4-8367-4db7-8457-3a64e767f5aa","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad1f44b8e4eb469a4fedf2d"},"entitlements":{},"buildId":"6ad1f44b8e4eb469a4fedf2d","clientVersion":"0.0.3965","searchFilterCounts":[{"language":"default","tag":"API reference","count":309},{"language":"default","tag":"API Reference","count":309},{"language":"default","tag":"OpenAI","count":172},{"language":"default","tag":"Claude","count":72},{"language":"default","tag":"Gemini","count":54},{"language":"default","tag":"Guides","count":12},{"language":"default","tag":"How to use","count":9},{"language":"default","tag":"火山引擎","count":8},{"language":"default","tag":"gpt-4.1-2025-04-14","count":6},{"language":"default","tag":"gpt-4.1-mini-2025-04-14","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"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":"editor-v7-file-tree","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":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"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":"editor-agent-model-picker","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":"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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".space-y-px>li>button{align-items:center}.space-y-px>li>button div:nth-child(1):nth-last-child(2),.space-y-px>li>button div:nth-child(2):nth-last-child(2){width:100%}"}],"page":{"pagePath":"api-reference/claude/claude-sonnet-4-5-20250929-thinking/text-to-text","slug":"/api-reference/claude/claude-sonnet-4-5-20250929-thinking/text-to-text","pageMetadata":{"title":"Text To Text","api":"POST /v1/messages","description":"Create an chat message","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-5-20250929-thinking/text-to-text"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create an chat message\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const ClaudeChatResponse=({successJson,title=`Sync Chat Response`,streaming=false,groupId=``})=>{const{CodeBlock,CodeGroup}=_provideComponents()||{};if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);const prefix=groupId?`[${groupId}] `:``;const error400=`{\n \"type\": \"error\",\n \"error\": {\n \"type\": \"invalid_request_error\",\n \"message\": \"parameter 'ARGUMENT' is required\"\n }\n }`;const error401=`{\n \"type\": \"error\",\n \"error\": {\n \"type\": \"authentication_error\",\n \"message\": \"Invalid API Key\"\n }\n }`;const error402=`{\n \"type\": \"error\",\n \"error\": {\n \"type\": \"insufficient_balance\",\n \"message\": \"Insufficient balance\"\n }\n }`;const error403=`{\n \"type\": \"error\",\n \"error\": {\n \"type\": \"quota_exceeded\",\n \"message\": \"Quota exceeded\"\n }\n }`;const error404=`{\n \"type\": \"error\",\n \"error\": {\n \"type\": \"invalid_request_error\",\n \"message\": \"Invalid URL\"\n }\n }`;const error429=`{\n \"type\": \"error\",\n \"error\": {\n \"type\": \"rate_limit_error\",\n \"message\": \"Too many requests\"\n }\n }`;const error500=`{\n \"type\": \"error\",\n \"error\": {\n \"type\": \"internal_server_error\",\n \"message\": \"Internal server error\"\n }\n }`;return _jsxs(_Fragment,{children:[_jsx(`h3`,{children:title}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{language:streaming?`text`:`json`,filename:streaming?`${prefix}200 - Success (SSE)`:`${prefix}200 - Success`,children:successJson}),_jsx(CodeBlock,{language:`json`,filename:`${prefix}400 - Bad Request`,children:error400}),_jsx(CodeBlock,{language:`json`,filename:`${prefix}401 - Unauthorized`,children:error401}),_jsx(CodeBlock,{language:`json`,filename:`${prefix}402 - Insufficient Balance`,children:error402}),_jsx(CodeBlock,{language:`json`,filename:`${prefix}403 - Quota Exceeded`,children:error403}),_jsx(CodeBlock,{language:`json`,filename:`${prefix}404 - Invalid URL`,children:error404}),_jsx(CodeBlock,{language:`json`,filename:`${prefix}429 - Too Many Requests`,children:error429}),_jsx(CodeBlock,{language:`json`,filename:`${prefix}500 - Internal Server Error`,children:error500})]})]})};const ClaudeChat=({model=`claude-haiku-4-5-20251001`})=>{const{CodeBlock,CodeGroup}=_provideComponents()||{};if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);const curlExample=`curl --request POST \\\\\n --url https://aiandgpu.com/v1/messages \\\\\n --header 'Authorization: Bearer \u003cYOUR_API_KEY>' \\\\\n --header 'Content-Type: application/json' \\\\\n --data '{\n \"model\": \"${model}\",\n \"max_tokens\": 1024,\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": [{\"type\": \"text\", \"text\": \"Hello\"}]\n }\n ]\n}'`;const pythonExample=`import requests\n\nurl = \"https://aiandgpu.com/v1/messages\"\n\npayload = {\n \"model\": \"${model}\",\n \"max_tokens\": 1024,\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"Hello\"\n }\n ]\n }\n ]\n}\n\nheaders = {\n \"Authorization\": \"Bearer \u003cYOUR_API_KEY>\",\n \"Content-Type\": \"application/json\"\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\n\nprint(response.text)`;const jsExample=`const options = {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer \u003cYOUR_API_KEY>',\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify({\n model: '${model}',\n max_tokens: 1024,\n messages: [{role: 'user', content: [{type: 'text', text: 'Hello'}]}]\n })\n};\n\nfetch('https://aiandgpu.com/v1/messages', options)\n .then(res => res.json())\n .then(res => console.log(res))\n .catch(err => console.error(err));`;const goExample=`package main\n\nimport (\n\\t\"bytes\"\n\\t\"encoding/json\"\n\\t\"fmt\"\n\\t\"net/http\"\n\\t\"io\"\n)\n\nfunc main() {\n\\turl := \"https://aiandgpu.com/v1/messages\"\n\n\\tpayload := strings.NewReader(\"{\\\\\"model\\\\\": \\\\\"claude-haiku-4-5-20251001\\\\\", \\\\\"max_tokens\\\\\": 1024, \\\\\"messages\\\\\": [{\\\\\"role\\\\\": \\\\\"user\\\\\", \\\\\"content\\\\\": [{ \\\\\"type\\\\\": \\\\\"text\\\\\", \\\\\"text\\\\\": \\\\\"who are you?\\\\\"}]}]}\")\n\n\\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\\treq.Header.Add(\"Authorization\", \"Bearer \u003cYOUR_API_KEY>\")\n\\treq.Header.Add(\"Content-Type\", \"application/json\")\n\n\\tres, _ := http.DefaultClient.Do(req)\n\n\\tdefer res.Body.Close()\n\\tresBody, _ := io.ReadAll(res.Body)\n\n\\tfmt.Println(string(resBody))\n}`;const javaExample=`import java.net.http.*;\nimport java.net.URI;\n\nHttpClient client = HttpClient.newHttpClient();\n\nString body = \"\"\"\n{\n \"model\": \"${model}\",\n \"max_tokens\": 1024,\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": [{\"type\": \"text\", \"text\": \"Hello\"}]\n }\n ]\n}\n\"\"\";\n\nHttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://aiandgpu.com/v1/messages\"))\n .header(\"Authorization\", \"Bearer \u003cYOUR_API_KEY>\")\n .header(\"Content-Type\", \"application/json\")\n .POST(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\nHttpResponse\u003cString> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());`;const phpExample=`\u003c?php\n\n$curl = curl_init();\n\n$payload = json_encode([\n 'model' => '${model}',\n 'max_tokens' => 1024,\n 'messages' => [\n [\n 'role' => 'user',\n 'content' => [\n ['type' => 'text', 'text' => 'Hello']\n ]\n ]\n ]\n]);\n\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"https://aiandgpu.com/v1/messages\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_POSTFIELDS => $payload,\n CURLOPT_HTTPHEADER => [\n \"Authorization: Bearer \u003cYOUR_API_KEY>\",\n \"Content-Type: application/json\"\n ],\n]);\n\n$response = curl_exec($curl);\n$err = curl_error($curl);\n\ncurl_close($curl);\n\nif ($err) {\n echo \"cURL Error #:\" . $err;\n} else {\n echo $response;\n}`;const csharpExample=`using System.Net.Http;\nusing System.Text;\n\nvar client = new HttpClient();\n\nvar payload = @\"{\n \"\"model\"\": \"\"${model}\"\",\n \"\"max_tokens\"\": 1024,\n \"\"messages\"\": [\n {\n \"\"role\"\": \"\"user\"\",\n \"\"content\"\": [{\"\"type\"\": \"\"text\"\", \"\"text\"\": \"\"Hello\"\"}]\n }\n ]\n}\";\n\nvar request = new HttpRequestMessage(HttpMethod.Post, \"https://aiandgpu.com/v1/messages\");\nrequest.Headers.Add(\"Authorization\", \"Bearer \u003cYOUR_API_KEY>\");\nrequest.Content = new StringContent(payload, Encoding.UTF8, \"application/json\");\n\nvar response = await client.SendAsync(request);\nvar content = await response.Content.ReadAsStringAsync();\n\nConsole.WriteLine(content);`;return _jsxs(_Fragment,{children:[_jsx(`h2`,{children:`Request Examples`}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{language:`shellscript`,filename:`cURL`,children:curlExample}),_jsx(CodeBlock,{language:`python`,filename:`Python`,children:pythonExample}),_jsx(CodeBlock,{language:`javascript`,filename:`JavaScript`,children:jsExample}),_jsx(CodeBlock,{language:`go`,filename:`Go`,children:goExample}),_jsx(CodeBlock,{language:`java`,filename:`Java`,children:javaExample}),_jsx(CodeBlock,{language:`php`,filename:`PHP`,children:phpExample}),_jsx(CodeBlock,{language:`csharp`,filename:`C#`,children:csharpExample})]})]})};function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Expandable,Heading,Table,Warning,_MdxComponentBoundary}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`authorization`,children:`Authorization`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Auth Type`}),`: `,_jsx(_components.code,{children:`Bearer Auth`}),` (In: `,_jsx(_components.code,{children:`header`}),`)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Format`}),`: `,_jsx(_components.code,{children:`Authorization: Bearer \u003cYOUR_API_KEY>`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Description`}),`: Use `,_jsx(_components.code,{children:`Bearer \u003cYOUR_API_KEY>`}),`. Format: `,_jsx(_components.code,{children:`Authorization: Bearer sk-xxxxxx.`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`API Key`}),`: where `,_jsx(`strong`,{children:`API Key`}),` is your `,_jsx(`a`,{href:`https://developer.aiandgpu.com`,target:`_blank`,rel:`noopener noreferrer`,children:`AGCloud API KEY`})]}),`\n`]}),`\n`,_jsx(_MdxComponentBoundary,{name:`ClaudeChat`,children:_jsx(ClaudeChat,{model:`claude-sonnet-4-5-20250929-thinking`})}),`\n`,_jsx(Heading,{level:`2`,id:`response-examples`,children:`Response Examples`}),`\n`,_jsx(Expandable,{title:`Sync Responses`,children:_jsx(_MdxComponentBoundary,{name:`ClaudeChatResponse`,children:_jsx(ClaudeChatResponse,{groupId:`sync`,successJson:`{\n\"model\": \"claude-opus-4-6-v1\",\n\"id\": \"msg_01CStyGUyAva65uTfcD1vVi5\",\n\"type\": \"message\",\n\"role\": \"assistant\",\n\"content\": [\n {\n \"type\": \"text\",\n \"text\": \"你好!我是Claude,一个由Anthropic公司开发的AI助手。\\n\\n我可以帮助你:\\n- 回答各种问题\\n- 进行写作和编辑\\n- 分析和解决问题\\n- 进行创意头脑风暴\\n- 提供学习和研究帮助\\n- 进行日常对话\\n\\n有什么我可以帮助你的吗?\"\n }\n],\n\"stop_reason\": \"end_turn\",\n\"stop_sequence\": null,\n\"usage\": {\n \"input_tokens\": 13,\n \"cache_creation_input_tokens\": 0,\n \"cache_read_input_tokens\": 0,\n \"cache_creation\": {\n \"ephemeral_5m_input_tokens\": 0,\n \"ephemeral_1h_input_tokens\": 0\n },\n \"output_tokens\": 115,\n \"service_tier\": \"standard\",\n \"inference_geo\": \"not_available\"\n}\n}`})})}),`\n`,_jsx(Expandable,{title:`Async Responses`,children:_jsx(_MdxComponentBoundary,{name:`ClaudeChatResponse`,children:_jsx(ClaudeChatResponse,{groupId:`async`,successJson:`{\n\"id\": \"6e3d4989-9ea4-44d7-bce6-2f53916ea29c\",\n\"object\": \"task\",\n\"status\": \"pending\",\n\"created_at\": 1773041803\n}`,title:`Async Chat Responses`})})}),`\n`,_jsx(Expandable,{title:`Streaming Responses`,children:_jsx(_MdxComponentBoundary,{name:`ClaudeChatResponse`,children:_jsx(ClaudeChatResponse,{groupId:`stream`,successJson:`\ndata: {\"type\":\"message_start\",\"message\":{\"model\":\"claude-sonnet-4-5-20250929-thinking\",\"id\":\"msg_01AYiJR1dKUNjjaCwuR3YoSN\",\"type\":\"message\",\"role\":\"assistant\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":13,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"cache_creation\":{\"ephemeral_5m_input_tokens\":0,\"ephemeral_1h_input_tokens\":0},\"output_tokens\":2,\"service_tier\":\"standard\",\"inference_geo\":\"not_available\"}} }\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"} }\n\nevent: ping\ndata: {\"type\": \"ping\"}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"你\"} }\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"好!\"} }\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"👋 \"} }\n\n...\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"有\"} }\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"什么我可以帮助\"} }\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"你的吗?\"} }\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"😊\"} }\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":13,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":169} }\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n`,title:`Streaming Chat Responses`,streaming:`true`})})}),`\n`,_jsx(Heading,{level:`3`,id:`async-chat-response-field-description`,children:`Async Chat Response Field Description`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Range`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`id`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{style:{textAlign:`left`},children:`The current chat task id.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`object`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The type of object returned by the API. In this case it is always `,_jsx(_components.code,{children:`task`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`status`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`string`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`pending`}),` `,_jsx(`br`,{}),` `,_jsx(_components.code,{children:`processing`}),` `,_jsx(`br`,{}),` `,_jsx(_components.code,{children:`success`}),` `,_jsx(`br`,{}),` `,_jsx(_components.code,{children:`failed`})]}),_jsx(_components.td,{style:{textAlign:`left`},children:`Current status of the task.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`number`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Unix timestamp (in seconds) indicating when the task was created.`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`streaming-events`,children:`Streaming Events`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Event`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`message_start`})}),_jsx(_components.td,{children:`Indicates the start of a new message`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`content_block_start`})}),_jsx(_components.td,{children:`Indicates the start of a content block`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`content_block_delta`})}),_jsx(_components.td,{children:`Contains incremental text content`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`content_block_stop`})}),_jsx(_components.td,{children:`Indicates the end of a content block`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`message_delta`})}),_jsx(_components.td,{children:`Contains final message metadata (stop_reason, usage)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`message_stop`})}),_jsx(_components.td,{children:`Indicates the end of the message`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Required`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Default`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`model`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`✅`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{style:{textAlign:`left`},children:`The model ID to use for this request.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`messages`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`array\u003cobject>`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`✅`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`An array of message objects representing the conversation history. See `,_jsx(_components.a,{href:`#messages-array-structure`,children:`Messages`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`max_tokens`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`integer`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`✅`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`4096`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The maximum number of tokens the model can generate in the response. Range `,_jsx(_components.code,{children:`1-32000`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`async`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`boolean`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Whether to return an asynchronous response. Only supported for non-streaming requests.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`stream`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`boolean`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`false`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`If `,_jsx(_components.code,{children:`true`}),`, returns a stream of server-sent events (SSE) as the response is generated.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`system`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`string | array\u003cobject>`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`System prompt that sets the behavior and context for the assistant. See `,_jsx(_components.a,{href:`#system-array-structure`,children:`System`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`temperature`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`number`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`1.0`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Controls the randomness of the output. Lower values produce more focused responses, higher values produce more creative outputs. Range `,_jsx(_components.code,{children:`0.0-1.0`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`top_p`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`number`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`1.0`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Nucleus sampling parameter. The model considers tokens with top_p cumulative probability mass. Range `,_jsx(_components.code,{children:`0.0-1.0`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`top_k`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`integer`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Limits token selection to the K most probable tokens at each step.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`stop_sequences`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`array\u003cstring>`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{style:{textAlign:`left`},children:`An array of strings that will stop generation when encountered.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`tools`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`array\u003cobject>`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`A list of tools the model may call to generate the response. See `,_jsx(_components.a,{href:`#tools-array-structure`,children:`Tools`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`tool_choice`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`object`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`auto`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Controls how the model selects which tool(s) to use. Can be `,_jsx(_components.code,{children:`auto`}),` `,_jsx(_components.code,{children:`any`}),` `,_jsx(_components.code,{children:`tool`}),`. See `,_jsx(_components.a,{href:`#tool-choices-structure`,children:`Tool Choices`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`thinking`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`object`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Configuration for extended thinking (chain-of-thought) mode. See `,_jsx(_components.a,{href:`#thinking-structure`,children:`Thinking`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`metadata`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`object`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Optional metadata to associate with the request. See `,_jsx(_components.a,{href:`#metadata-structure`,children:`Metadata`})]})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`If both `,_jsx(_components.code,{children:`stream`}),` and `,_jsx(_components.code,{children:`async`}),` are true, `,_jsx(_components.code,{children:`stream`}),` takes precedence.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`messages-array-structure`,children:`Messages Array Structure`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Required`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Default`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`role`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`✅`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The role of the message. Can be: `,_jsx(_components.code,{children:`user`}),` or `,_jsx(_components.code,{children:`assistant`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`content`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`string`}),` | `,_jsx(_components.code,{children:`array`})]}),_jsx(_components.td,{style:{textAlign:`left`},children:`✅`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{style:{textAlign:`left`},children:`The content of the message. Can be a simple string for text-only messages, or an array of content blocks for multimodal content`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`>content.type`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`string`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`✅ if `,_jsx(_components.code,{children:`content`}),` is array`]}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Must be text`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`>content.text`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`string`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`✅ if `,_jsx(_components.code,{children:`content`}),` is array`]}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{style:{textAlign:`left`},children:`The text content`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`system-array-structure`,children:`System Array Structure`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Required`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Default`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`✅`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The system tips, default `,_jsx(_components.code,{children:`text`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`text`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`✅`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Describe the role the model plays.`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`tools-array-structure`,children:`Tools Array Structure`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Required`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Default`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`✅`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{style:{textAlign:`left`},children:`The type of tool. Must be web_search_20250305 for web search`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`✅`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{style:{textAlign:`left`},children:`The name of the tool. Use web_search`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`max_uses`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`integer`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Maximum number of times the web search tool can be used in a single request, range in `,_jsx(_components.code,{children:`1-10`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`allowed_domains`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`array`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Only include search results from these domains. Cannot be used with blocked_domains`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`blocked_domains`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`array`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Never include search results from these domains. Cannot be used with allowed_domains`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`user_location`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`object`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Localize search results based on user’s location. See `,_jsx(_components.a,{href:`#user-location-structure`,children:`User Location`})]})]})]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Max Uses Structure`})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`max_uses`}),` parameter limits the number of searches performed. If Claude attempts more searches than allowed, the `,_jsx(_components.code,{children:`web_search_tool_result`}),` will be an error with the `,_jsx(_components.code,{children:`max_uses_exceeded`}),` error code.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Domain Filtering`})}),`\n`,_jsx(_components.p,{children:`When using domain filters:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Domains should not include the HTTP/HTTPS scheme (use example.com instead of `,_jsx(_components.a,{href:`https://example.com`,children:`https://example.com`}),`)`]}),`\n`,_jsx(_components.li,{children:`Subdomains are automatically included (example.com covers docs.example.com)`}),`\n`,_jsx(_components.li,{children:`Specific subdomains restrict results to only that subdomain (docs.example.com returns only results from that subdomain, not from example.com or api.example.com)`}),`\n`,_jsx(_components.li,{children:`Subpaths are supported (example.com/blog)`}),`\n`,_jsx(_components.li,{children:`You can use either allowed_domains or blocked_domains, but not both in the same request`}),`\n`,_jsx(_components.li,{children:`Request-level domain restrictions must be compatible with organization-level domain restrictions configured in the Console`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`user-location-structure`,children:`User Location Structure`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`user_location`}),` object allows you to localize search results based on user’s location:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Required`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`✅`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The type of location. Must be `,_jsx(_components.code,{children:`approximate`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`city`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The city name (e.g., `,_jsx(_components.code,{children:`San Francisco`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`region`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The region or state (e.g., `,_jsx(_components.code,{children:`California`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`country`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The country code in ISO 3166-1 alpha-2 format (e.g., `,_jsx(_components.code,{children:`US`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`timezone`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The IANA timezone ID (e.g., `,_jsx(_components.code,{children:`America/Los_Angeles`}),`)`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`tool-choices-structure`,children:`Tool Choices Structure`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Required`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`✅`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Tool selection mode. `,_jsx(_components.code,{children:`auto`}),`: model decides whether to use a tool, `,_jsx(_components.code,{children:`any`}),`: model must use one of the available tools, `,_jsx(_components.code,{children:`tool`}),`: model must use the specific tool specified by `,_jsx(_components.code,{children:`name`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The name of the specific tool to use. Required only when `,_jsx(_components.code,{children:`type`}),` is `,_jsx(_components.code,{children:`tool`}),`.`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`thinking-structure`,children:`Thinking Structure`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Required`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`✅`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Thinking mode. `,_jsx(_components.code,{children:`enabled`}),`: model uses extended thinking for internal reasoning before generating the response, `,_jsx(_components.code,{children:`disabled`}),`: standard response mode.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`budget_tokens`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`integer`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Maximum tokens allocated for thinking. Required when `,_jsx(_components.code,{children:`type`}),` is `,_jsx(_components.code,{children:`enabled`}),`. The model uses these tokens for internal reasoning before producing the final output.`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`metadata-structure`,children:`Metadata Structure`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Required`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`user_id`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{style:{textAlign:`left`},children:`An external identifier for the user making the request. Useful for analytics, abuse detection, and logging.`})]})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{ClaudeChatResponse,ClaudeChat,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":"Text To Text","api":"POST /v1/messages","description":"Create an chat message","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-5-20250929-thinking/text-to-text"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[154,7389,")=>null;const ClaudeChat=()=>null;functi"]]},"mdxExtracts":{"tableOfContents":[{"title":"Authorization","slug":"authorization","depth":2,"children":[]},{"title":"Response Examples","slug":"response-examples","depth":2,"children":[{"title":"Async Chat Response Field Description","slug":"async-chat-response-field-description","depth":3,"children":[]},{"title":"Streaming Events","slug":"streaming-events","depth":3,"children":[]}]},{"title":"Parameters","slug":"parameters","depth":2,"children":[{"title":"Messages Array Structure","slug":"messages-array-structure","depth":3,"children":[]},{"title":"System Array Structure","slug":"system-array-structure","depth":3,"children":[]},{"title":"Tools Array Structure","slug":"tools-array-structure","depth":3,"children":[]},{"title":"User Location Structure","slug":"user-location-structure","depth":3,"children":[]},{"title":"Tool Choices Structure","slug":"tool-choices-structure","depth":3,"children":[]},{"title":"Thinking Structure","slug":"thinking-structure","depth":3,"children":[]},{"title":"Metadata Structure","slug":"metadata-structure","depth":3,"children":[]}]}],"codeExamples":{},"endpoint":{"title":"Text To Text","path":"/v1/messages","method":"post","request":{"security":[],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"yvshun-470c5ffb","siteName":"AGCloud API","title":"Text To Text - AGCloud API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-04T06:17:28.746Z","originalFileLocation":"api-reference/claude/claude-sonnet-4-5-20250929-thinking/text-to-text.mdx"},"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=\"description\" content=\"Create an chat message\">\u003cmeta data-mint-head name=\"application-name\" content=\"AGCloud API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/yvshun-470c5ffb/37J9JdzaOwAn9sAF/_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/yvshun-470c5ffb/37J9JdzaOwAn9sAF/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/yvshun-470c5ffb/37J9JdzaOwAn9sAF/_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/yvshun-470c5ffb/37J9JdzaOwAn9sAF/_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/yvshun-470c5ffb/37J9JdzaOwAn9sAF/_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/yvshun-470c5ffb/37J9JdzaOwAn9sAF/_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/yvshun-470c5ffb/37J9JdzaOwAn9sAF/_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/yvshun-470c5ffb/37J9JdzaOwAn9sAF/_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/yvshun-470c5ffb/37J9JdzaOwAn9sAF/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Text To Text - AGCloud API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create an chat message\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AGCloud API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.aiandgpu.com/api-reference/claude/claude-sonnet-4-5-20250929-thinking/text-to-text\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://yvshun-470c5ffb.mintlify.app/_mintlify/api/og/v2?division=claude-sonnet-4-5-20250929-thinking\u0026amp;title=Text+To+Text\u0026amp;description=Create+an+chat+message\u0026amp;theme=171cba6b282c2b3c40280205\u0026amp;signature=96dbb78d5326f5057d15248d6c501a05cacfe3947dbd94885027c07e1150e381\">\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=\"Text To Text - AGCloud API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create an chat message\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://yvshun-470c5ffb.mintlify.app/_mintlify/api/og/v2?division=claude-sonnet-4-5-20250929-thinking\u0026amp;title=Text+To+Text\u0026amp;description=Create+an+chat+message\u0026amp;theme=171cba6b282c2b3c40280205\u0026amp;signature=96dbb78d5326f5057d15248d6c501a05cacfe3947dbd94885027c07e1150e381\">\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/yvshun-470c5ffb/37J9JdzaOwAn9sAF/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AGCloud API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.aiandgpu.com/api-reference/claude/claude-sonnet-4-5-20250929-thinking/text-to-text\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/claude/claude-sonnet-4-5-20250929-thinking/text-to-text.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.aiandgpu.com/#organization\",\"name\":\"AGCloud API\",\"url\":\"https://docs.aiandgpu.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/yvshun-470c5ffb/qvjVHG-wIG2CZTlO/logo/favicon.svg?fit=max\u0026auto=format\u0026n=qvjVHG-wIG2CZTlO\u0026q=85\u0026s=bfb952660ac07ff827fe518f6b6a0132\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.aiandgpu.com#website\",\"name\":\"AGCloud API\",\"url\":\"https://docs.aiandgpu.com\",\"publisher\":{\"@id\":\"https://docs.aiandgpu.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.aiandgpu.com/api-reference/claude/claude-sonnet-4-5-20250929-thinking/text-to-text#webpage\",\"url\":\"https://docs.aiandgpu.com/api-reference/claude/claude-sonnet-4-5-20250929-thinking/text-to-text\",\"name\":\"Text To Text\",\"description\":\"Create an chat message\",\"dateModified\":\"2026-06-04T06:17:28.746Z\",\"isPartOf\":{\"@id\":\"https://docs.aiandgpu.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.aiandgpu.com/api-reference/claude/claude-sonnet-4-5-20250929-thinking/text-to-text#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.aiandgpu.com/api-reference/claude/claude-sonnet-4-5-20250929-thinking/text-to-text#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.aiandgpu.com/api-reference/api-overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Claude\",\"item\":\"https://docs.aiandgpu.com/api-reference/claude/claude-opus-4-8/text-to-text\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Text To Text\",\"item\":\"https://docs.aiandgpu.com/api-reference/claude/claude-sonnet-4-5-20250929-thinking/text-to-text\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.aiandgpu.com/api-reference/claude/claude-sonnet-4-5-20250929-thinking/text-to-text#apireference\",\"headline\":\"Text To Text\",\"name\":\"Text To Text\",\"description\":\"Create an chat message\",\"url\":\"https://docs.aiandgpu.com/api-reference/claude/claude-sonnet-4-5-20250929-thinking/text-to-text\",\"mainEntityOfPage\":{\"@id\":\"https://docs.aiandgpu.com/api-reference/claude/claude-sonnet-4-5-20250929-thinking/text-to-text#webpage\"},\"dateModified\":\"2026-06-04T06:17:28.746Z\",\"publisher\":{\"@id\":\"https://docs.aiandgpu.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.aiandgpu.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"AGCloud API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"AGCloud API","nav":{"global":null,"tabs":[{"tab":"Guides","icon":"rocket-launch","pages":[{"title":"Guides","href":"/guides/introduction"}]},{"tab":"API reference","icon":"code","groups":[{"group":"API Reference","icon":"code","root":{"title":"API Overview","href":"/api-reference/api-overview"},"pages":[{"group":"OpenAI","icon":"/images/gpt.png","pages":[{"group":"gpt-5.5-pro","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5.5-pro/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.5-pro/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.5-pro/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5.5-pro/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.5-pro/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.5-pro/web-search-response"}]},{"group":"gpt-5.5","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5.5/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.5/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.5/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5.5/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.5/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.5/web-search-response"}]},{"group":"gpt-5.4-pro","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5.4-pro/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.4-pro/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.4-pro/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5.4-pro/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.4-pro/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.4-pro/web-search-response"}]},{"group":"gpt-5.4-xhigh","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5.4-xhigh/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.4-xhigh/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.4-xhigh/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5.4-xhigh/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.4-xhigh/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.4-xhigh/web-search-response"}]},{"group":"gpt-5.4-high","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5.4-high/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.4-high/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.4-high/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5.4-high/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.4-high/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.4-high/web-search-response"}]},{"group":"gpt-5.4","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5.4/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.4/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.4/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5.4/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.4/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.4/web-search-response"}]},{"group":"gpt-5.3-codex","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5.3-codex/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.3-codex/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.3-codex/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5.3-codex/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.3-codex/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.3-codex/web-search-response"}]},{"group":"gpt-5.2-codex","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5.2-codex/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.2-codex/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.2-codex/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5.2-codex/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.2-codex/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5.2-codex/web-search-response"}]},{"group":"gpt-image-2","pages":[{"title":"Image Edit","api":"POST /v1/image/edits","mode":"wide","href":"/api-reference/openAI/gpt-image-2/image-edit"},{"title":"Text to Image","api":"POST /v1/images/generations","mode":"wide","href":"/api-reference/openAI/gpt-image-2/text-to-image"},{"title":"Image Generations","api":"POST /sp/v1/images/generations","mode":"wide","href":"/api-reference/openAI/gpt-image-2/text-to-image-sp"},{"title":"Image Generation - Query Task","api":"GET /sp/v1/images/generations/{id}","mode":"wide","href":"/api-reference/openAI/gpt-image-2/query-task-sp"}]},{"group":"gpt-5-chat-latest","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5-chat-latest/official/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-chat-latest/official/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-chat-latest/official/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5-chat-latest/official/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-chat-latest/official/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-chat-latest/official/web-search-response"}]},{"group":"gpt-5-chat","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5-chat/official/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-chat/official/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-chat/official/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5-chat/official/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-chat/official/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-chat/official/web-search-response"}]},{"group":"gpt-5-codex","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5-codex/official/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-codex/official/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-codex/official/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5-codex/official/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-codex/official/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-codex/official/web-search-response"}]},{"group":"gpt-5","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5/official/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5/official/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5/official/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5/official/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5/official/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5/official/web-search-response"}]},{"group":"gpt-5-2025-08-07","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5-2025-08-07/official/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-2025-08-07/official/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-2025-08-07/official/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5-2025-08-07/official/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-2025-08-07/official/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-2025-08-07/official/web-search-response"}]},{"group":"gpt-5-mini","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5-mini/official/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-mini/official/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-mini/official/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5-mini/official/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-mini/official/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-mini/official/web-search-response"}]},{"group":"gpt-5-mini-2025-08-07","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5-mini-2025-08-07/official/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-mini-2025-08-07/official/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-mini-2025-08-07/official/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5-mini-2025-08-07/official/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-mini-2025-08-07/official/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-mini-2025-08-07/official/web-search-response"}]},{"group":"gpt-5-nano","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5-nano/official/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-nano/official/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-nano/official/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-5-nano/official/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-nano/official/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-5-nano/official/web-search-response"}]},{"group":"gpt-4.1","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4.1/official/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1/official/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1/official/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4.1/official/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1/official/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1/official/web-search-response"}]},{"group":"gpt-4.1-2025-04-14","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4.1-2025-04-14/official/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1-2025-04-14/official/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1-2025-04-14/official/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4.1-2025-04-14/official/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1-2025-04-14/official/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1-2025-04-14/official/web-search-response"}]},{"group":"gpt-4.1-mini","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4.1-mini/official/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1-mini/official/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1-mini/official/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4.1-mini/official/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1-mini/official/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1-mini/official/web-search-response"}]},{"group":"gpt-4.1-mini-2025-04-14","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4.1-mini-2025-04-14/official/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1-mini-2025-04-14/official/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1-mini-2025-04-14/official/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4.1-mini-2025-04-14/official/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1-mini-2025-04-14/official/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1-mini-2025-04-14/official/web-search-response"}]},{"group":"gpt-4.1-nano","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4.1-nano/official/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1-nano/official/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1-nano/official/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4.1-nano/official/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1-nano/official/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1-nano/official/web-search-response"}]},{"group":"gpt-4.1-nano-2025-04-14","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4.1-nano-2025-04-14/official/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1-nano-2025-04-14/official/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1-nano-2025-04-14/official/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4.1-nano-2025-04-14/official/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1-nano-2025-04-14/official/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4.1-nano-2025-04-14/official/web-search-response"}]},{"group":"gpt-4o","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4o/official/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o/official/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o/official/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4o/official/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o/official/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o/official/web-search-response"}]},{"group":"gpt-4o-2024-11-20","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4o-2024-11-20/official/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o-2024-11-20/official/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o-2024-11-20/official/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4o-2024-11-20/official/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o-2024-11-20/official/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o-2024-11-20/official/web-search-response"}]},{"group":"gpt-4o-2024-08-06","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4o-2024-08-06/official/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o-2024-08-06/official/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o-2024-08-06/official/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4o-2024-08-06/official/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o-2024-08-06/official/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o-2024-08-06/official/web-search-response"}]},{"group":"gpt-4o-2024-05-13","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4o-2024-05-13/official/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o-2024-05-13/official/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o-2024-05-13/official/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4o-2024-05-13/official/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o-2024-05-13/official/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o-2024-05-13/official/web-search-response"}]},{"group":"gpt-4o-mini","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4o-mini/official/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o-mini/official/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o-mini/official/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4o-mini/official/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o-mini/official/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o-mini/official/web-search-response"}]},{"group":"gpt-4o-mini-2024-07-18","pages":[{"title":"Chat","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4o-mini-2024-07-18/official/chat"},{"title":"Chat - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o-mini-2024-07-18/official/chat-response"},{"title":"File Analysis","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o-mini-2024-07-18/official/file-analysis"},{"title":"Image to Text","api":"POST /v1/chat/completions","mode":"wide","href":"/api-reference/openAI/gpt-4o-mini-2024-07-18/official/image-to-text"},{"title":"Image to Text - Response","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o-mini-2024-07-18/official/image-to-text-response"},{"title":"Web Search","api":"POST /v1/responses","mode":"wide","href":"/api-reference/openAI/gpt-4o-mini-2024-07-18/official/web-search-response"}]}]},{"group":"Gemini","icon":"/images/gemini.png","pages":[{"group":"gemini-3.1-pro-preview-customtools","pages":[{"title":"Chat","api":"POST /v1beta/models/gemini-3.1-pro-preview-customtools:{action}","mode":"wide","href":"/api-reference/gemini/gemini-3.1-pro-preview-customtools/official/chat"},{"title":"Image to Text","api":"POST /v1beta/models/gemini-3.1-pro-preview-customtools:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-3.1-pro-preview-customtools/official/image-to-text"},{"title":"File Analysis","api":"POST /v1beta/models/gemini-3.1-pro-preview-customtools:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-3.1-pro-preview-customtools/official/file-analysis"},{"title":"Web Search","api":"POST /v1beta/models/gemini-3.1-pro-preview-customtools:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-3.1-pro-preview-customtools/official/web-search"}]},{"group":"gemini-3.1-pro-preview","pages":[{"title":"Chat","api":"POST /v1beta/models/gemini-3.1-pro-preview:{action}","mode":"wide","href":"/api-reference/gemini/gemini-3.1-pro-preview/official/chat"},{"title":"Image to Text","api":"POST /v1beta/models/gemini-3.1-pro-preview:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-3.1-pro-preview/official/image-to-text"},{"title":"File Analysis","api":"POST /v1beta/models/gemini-3.1-pro-preview:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-3.1-pro-preview/official/file-analysis"},{"title":"Web Search","api":"POST /v1beta/models/gemini-3.1-pro-preview:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-3.1-pro-preview/official/web-search"}]},{"group":"gemini-3.1-flash-lite-preview","pages":[{"title":"Chat","api":"POST /v1beta/models/gemini-3.1-flash-lite-preview:{action}","mode":"wide","href":"/api-reference/gemini/gemini-3.1-flash-lite-preview/official/chat"},{"title":"Image to Text","api":"POST /v1beta/models/gemini-3.1-flash-lite-preview:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-3.1-flash-lite-preview/official/image-to-text"},{"title":"File Analysis","api":"POST /v1beta/models/gemini-3.1-flash-lite-preview:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-3.1-flash-lite-preview/official/file-analysis"},{"title":"Web Search","api":"POST /v1beta/models/gemini-3.1-flash-lite-preview:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-3.1-flash-lite-preview/official/web-search"}]},{"group":"gemini-3.1-flash-image-preview","pages":[{"title":"Image Edit","api":"POST /v1beta/models/gemini-3.1-flash-image-preview:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-3.1-flash-image-preview/official/image-edit"},{"title":"Text To Image","api":"POST /v1beta/models/gemini-3.1-flash-image-preview:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-3.1-flash-image-preview/official/text-to-image"}]},{"group":"gemini-3-flash-preview","pages":[{"title":"Chat","api":"POST /v1beta/models/gemini-3-flash-preview:{action}","mode":"wide","href":"/api-reference/gemini/gemini-3-flash-preview/official/chat"},{"title":"Image to Text","api":"POST /v1beta/models/gemini-3-flash-preview:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-3-flash-preview/official/image-to-text"},{"title":"File Analysis","api":"POST /v1beta/models/gemini-3-flash-preview:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-3-flash-preview/official/file-analysis"},{"title":"Web Search","api":"POST /v1beta/models/gemini-3-flash-preview:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-3-flash-preview/official/web-search"}]},{"group":"gemini-3-pro-image-preview","pages":[{"title":"Image Edit","api":"POST /v1beta/models/gemini-3-pro-image-preview:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-3-pro-image-preview/official/image-edit"},{"title":"Text To Image","api":"POST /v1beta/models/gemini-3-pro-image-preview:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-3-pro-image-preview/official/text-to-image"}]},{"group":"gemini-3-pro-preview-thinking","pages":[{"title":"Chat","api":"POST /v1beta/models/gemini-3-pro-preview-thinking:{action}","mode":"wide","href":"/api-reference/gemini/gemini-3-pro-preview-thinking/official/chat"},{"title":"Image to Text","api":"POST /v1beta/models/gemini-3-pro-preview-thinking:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-3-pro-preview-thinking/official/image-to-text"},{"title":"File Analysis","api":"POST /v1beta/models/gemini-3-pro-preview-thinking:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-3-pro-preview-thinking/official/file-analysis"},{"title":"Web Search","api":"POST /v1beta/models/gemini-3-pro-preview-thinking:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-3-pro-preview-thinking/official/web-search"}]},{"group":"gemini-3-pro-preview","pages":[{"title":"Chat","api":"POST /v1beta/models/gemini-3-pro-preview:{action}","mode":"wide","href":"/api-reference/gemini/gemini-3-pro-preview/official/chat"},{"title":"Image to Text","api":"POST /v1beta/models/gemini-3-pro-preview:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-3-pro-preview/official/image-to-text"},{"title":"File Analysis","api":"POST /v1beta/models/gemini-3-pro-preview:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-3-pro-preview/official/file-analysis"},{"title":"Web Search","api":"POST /v1beta/models/gemini-3-pro-preview:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-3-pro-preview/official/web-search"}]},{"group":"gemini-2.5-pro","pages":[{"title":"Chat","api":"POST /v1beta/models/gemini-2.5-pro:{action}","mode":"wide","href":"/api-reference/gemini/gemini-2.5-pro/official/chat"},{"title":"Image to Text","api":"POST /v1beta/models/gemini-2.5-pro:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-2.5-pro/official/image-to-text"},{"title":"File Analysis","api":"POST /v1beta/models/gemini-2.5-pro:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-2.5-pro/official/file-analysis"},{"title":"Web Search","api":"POST /v1beta/models/gemini-2.5-pro:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-2.5-pro/official/web-search"}]},{"group":"gemini-2.5-flash","pages":[{"title":"Chat","api":"POST /v1beta/models/gemini-2.5-flash:{action}","mode":"wide","href":"/api-reference/gemini/gemini-2.5-flash/official/chat"},{"title":"Image to Text","api":"POST /v1beta/models/gemini-2.5-flash:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-2.5-flash/official/image-to-text"},{"title":"File Analysis","api":"POST /v1beta/models/gemini-2.5-flash:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-2.5-flash/official/file-analysis"},{"title":"Web Search","api":"POST /v1beta/models/gemini-2.5-flash:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-2.5-flash/official/web-search"}]},{"group":"gemini-2.5-flash-thinking","pages":[{"title":"Chat","api":"POST /v1beta/models/gemini-2.5-flash-thinking:{action}","mode":"wide","href":"/api-reference/gemini/gemini-2.5-flash-thinking/official/chat"},{"title":"Image to Text","api":"POST /v1beta/models/gemini-2.5-flash-thinking:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-2.5-flash-thinking/official/image-to-text"},{"title":"File Analysis","api":"POST /v1beta/models/gemini-2.5-flash-thinking:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-2.5-flash-thinking/official/file-analysis"},{"title":"Web Search","api":"POST /v1beta/models/gemini-2.5-flash-thinking:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-2.5-flash-thinking/official/web-search"}]},{"group":"gemini-2.5-flash-nothinking","pages":[{"title":"Chat","api":"POST /v1beta/models/gemini-2.5-flash-nothinking:{action}","mode":"wide","href":"/api-reference/gemini/gemini-2.5-flash-nothinking/official/chat"},{"title":"Image to Text","api":"POST /v1beta/models/gemini-2.5-flash-nothinking:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-2.5-flash-nothinking/official/image-to-text"},{"title":"File Analysis","api":"POST /v1beta/models/gemini-2.5-flash-nothinking:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-2.5-flash-nothinking/official/file-analysis"},{"title":"Web Search","api":"POST /v1beta/models/gemini-2.5-flash-nothinking:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-2.5-flash-nothinking/official/web-search"}]},{"group":"gemini-2.5-flash-image","pages":[{"title":"Image Edit","api":"POST /v1beta/models/gemini-2.5-flash-image:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-2.5-flash-image/official/image-edit"},{"title":"Text To Image","api":"POST /v1beta/models/gemini-2.5-flash-image:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-2.5-flash-image/official/text-to-image"}]},{"group":"gemini-2.5-flash-lite","pages":[{"title":"Chat","api":"POST /v1beta/models/gemini-2.5-flash-lite:{action}","mode":"wide","href":"/api-reference/gemini/gemini-2.5-flash-lite/official/chat"},{"title":"Image to Text","api":"POST /v1beta/models/gemini-2.5-flash-lite:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-2.5-flash-lite/official/image-to-text"},{"title":"File Analysis","api":"POST /v1beta/models/gemini-2.5-flash-lite:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-2.5-flash-lite/official/file-analysis"},{"title":"Web Search","api":"POST /v1beta/models/gemini-2.5-flash-lite:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-2.5-flash-lite/official/web-search"}]},{"group":"gemini-2.0-flash","pages":[{"title":"Chat","api":"POST /v1beta/models/gemini-2.0-flash:{action}","mode":"wide","href":"/api-reference/gemini/gemini-2.0-flash/official/chat"},{"title":"Image to Text","api":"POST /v1beta/models/gemini-2.0-flash:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-2.0-flash/official/image-to-text"},{"title":"File Analysis","api":"POST /v1beta/models/gemini-2.0-flash:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-2.0-flash/official/file-analysis"},{"title":"Web Search","api":"POST /v1beta/models/gemini-2.0-flash:generateContent","mode":"wide","href":"/api-reference/gemini/gemini-2.0-flash/official/web-search"}]}]},{"group":"Claude","icon":"/images/claude.png","pages":[{"group":"claude-opus-4-8","pages":[{"title":"Text To Text","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-8/text-to-text"},{"title":"Query Chat Result","api":"GET /v1/tasks/{id}","mode":"wide","href":"/api-reference/claude/claude-opus-4-8/chat-async-result"},{"title":"Web Search","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-8/web-search"},{"title":"File Analysis","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-8/file-analysis"}]},{"group":"claude-opus-4-7","pages":[{"title":"Text To Text","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-7/text-to-text"},{"title":"Query Chat Result","api":"GET /v1/tasks/{id}","mode":"wide","href":"/api-reference/claude/claude-opus-4-7/chat-async-result"},{"title":"Web Search","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-7/web-search"},{"title":"File Analysis","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-7/file-analysis"}]},{"group":"claude-opus-4-6","pages":[{"title":"Text To Text","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-6/text-to-text"},{"title":"Query Chat Result","api":"GET /v1/tasks/{id}","mode":"wide","href":"/api-reference/claude/claude-opus-4-6/chat-async-result"},{"title":"Web Search","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-6/web-search"},{"title":"File Analysis","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-6/file-analysis"}]},{"group":"claude-opus-4-6-thinking","pages":[{"title":"Text To Text","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-6-thinking/text-to-text"},{"title":"Query Chat Result","api":"GET /v1/tasks/{id}","mode":"wide","href":"/api-reference/claude/claude-opus-4-6-thinking/chat-async-result"},{"title":"Web Search","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-6-thinking/web-search"},{"title":"File Analysis","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-6-thinking/file-analysis"}]},{"group":"claude-opus-4-5-20251101","pages":[{"title":"Text To Text","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-5-20251101/official/text-to-text"},{"title":"Query Chat Result","api":"GET /v1/tasks/{id}","mode":"wide","href":"/api-reference/claude/claude-opus-4-5-20251101/official/chat-async-result"},{"title":"Web Search","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-5-20251101/official/web-search"},{"title":"File Analysis","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-5-20251101/official/file-analysis"}]},{"group":"claude-opus-4-5-20251101-thinking","pages":[{"title":"Text To Text","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-5-20251101-thinking/official/text-to-text"},{"title":"Query Chat Result","api":"GET /v1/tasks/{id}","mode":"wide","href":"/api-reference/claude/claude-opus-4-5-20251101-thinking/official/chat-async-result"},{"title":"Web Search","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-5-20251101-thinking/official/web-search"},{"title":"File Analysis","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-5-20251101-thinking/official/file-analysis"}]},{"group":"claude-opus-4-1-20250805","pages":[{"title":"Text To Text","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-1-20250805/official/text-to-text"},{"title":"Query Chat Result","api":"GET /v1/tasks/{id}","mode":"wide","href":"/api-reference/claude/claude-opus-4-1-20250805/official/chat-async-result"},{"title":"Web Search","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-1-20250805/official/web-search"},{"title":"File Analysis","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-1-20250805/official/file-analysis"}]},{"group":"claude-opus-4-1-20250805-thinking","pages":[{"title":"Text To Text","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-1-20250805-thinking/official/text-to-text"},{"title":"Query Chat Result","api":"GET /v1/tasks/{id}","mode":"wide","href":"/api-reference/claude/claude-opus-4-1-20250805-thinking/official/chat-async-result"},{"title":"Web Search","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-1-20250805-thinking/official/web-search"},{"title":"File Analysis","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-opus-4-1-20250805-thinking/official/file-analysis"}]},{"group":"claude-sonnet-4-6","pages":[{"title":"Text To Text","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-6/text-to-text"},{"title":"Query Chat Result","api":"GET /v1/tasks/{id}","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-6/chat-async-result"},{"title":"Web Search","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-6/web-search"},{"title":"File Analysis","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-6/file-analysis"}]},{"group":"claude-sonnet-4-6-thinking","pages":[{"title":"Text To Text","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-6-thinking/text-to-text"},{"title":"Query Chat Result","api":"GET /v1/tasks/{id}","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-6-thinking/chat-async-result"},{"title":"Web Search","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-6-thinking/web-search"},{"title":"File Analysis","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-6-thinking/file-analysis"}]},{"group":"claude-sonnet-4-5-20250929","pages":[{"title":"Text To Text","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-5-20250929/text-to-text"},{"title":"Query Chat Result","api":"GET /v1/tasks/{id}","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-5-20250929/chat-async-result"},{"title":"Web Search","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-5-20250929/web-search"},{"title":"File Analysis","api":"POST /v1/messages","description":null,"mode":"wide","href":"/api-reference/claude/claude-sonnet-4-5-20250929/file-analysis"}]},{"group":"claude-sonnet-4-5-20250929-thinking","pages":[{"title":"Text To Text","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-5-20250929-thinking/text-to-text"},{"title":"Query Chat Result","api":"GET /v1/tasks/{id}","description":"Query the result of an asynchronous chat task using the task ID","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-5-20250929-thinking/chat-async-result"},{"title":"Web Search","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-5-20250929-thinking/web-search"},{"title":"File Analysis","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-5-20250929-thinking/file-analysis"}]},{"group":"claude-sonnet-4-20250514","pages":[{"title":"Text To Text","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-20250514/text-to-text"},{"title":"Query Chat Result","api":"GET /v1/tasks/{id}","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-20250514/chat-async-result"},{"title":"Web Search","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-20250514/web-search"},{"title":"File Analysis","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-20250514/file-analysis"}]},{"group":"claude-sonnet-4-20250514-thinking","pages":[{"title":"Text To Text","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-20250514-thinking/text-to-text"},{"title":"Query Chat Result","api":"GET /v1/tasks/{id}","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-20250514-thinking/chat-async-result"},{"title":"Web Search","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-20250514-thinking/web-search"},{"title":"File Analysis","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-sonnet-4-20250514-thinking/file-analysis"}]},{"group":"claude-haiku-4-5-20251001","pages":[{"title":"Text To Text","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-haiku-4-5-20251001/official/text-to-text"},{"title":"Query Chat Result","api":"GET /v1/tasks/{id}","mode":"wide","href":"/api-reference/claude/claude-haiku-4-5-20251001/official/chat-async-result"},{"title":"Web Search","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-haiku-4-5-20251001/official/web-search"},{"title":"File Analysis","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-haiku-4-5-20251001/official/file-analysis"}]},{"group":"claude-haiku-4-5-20251001-thinking","pages":[{"title":"Text To Text","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-haiku-4-5-20251001-thinking/official/text-to-text"},{"title":"Query Chat Result","api":"GET /v1/tasks/{id}","mode":"wide","href":"/api-reference/claude/claude-haiku-4-5-20251001-thinking/official/chat-async-result"},{"title":"Web Search","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-haiku-4-5-20251001-thinking/official/web-search"},{"title":"File Analysis","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-haiku-4-5-20251001-thinking/official/file-analysis"}]},{"group":"claude-3-5-sonnet-20241022","pages":[{"title":"Text To Text","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-3-5-sonnet-20241022/official/text-to-text"},{"title":"Query Chat Result","api":"GET /v1/tasks/{id}","mode":"wide","href":"/api-reference/claude/claude-3-5-sonnet-20241022/official/chat-async-result"},{"title":"Web Search","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-3-5-sonnet-20241022/official/web-search"},{"title":"File Analysis","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-3-5-sonnet-20241022/official/file-analysis"}]},{"group":"claude-3-5-sonnet-20240620","pages":[{"title":"Text To Text","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-3-5-sonnet-20240620/official/text-to-text"},{"title":"Query Chat Result","api":"GET /v1/tasks/{id}","mode":"wide","href":"/api-reference/claude/claude-3-5-sonnet-20240620/official/chat-async-result"},{"title":"Web Search","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-3-5-sonnet-20240620/official/web-search"},{"title":"File Analysis","api":"POST /v1/messages","mode":"wide","href":"/api-reference/claude/claude-3-5-sonnet-20240620/official/file-analysis"}]}]},{"group":"火山引擎","icon":"/images/doubao.png","pages":[{"group":"doubao-seedance-2-0","pages":[{"title":"Text to Video","api":"POST /api/v3/contents/generations/tasks","mode":"wide","href":"/api-reference/byteDance/doubao-seedance-2-0/text-to-video"},{"title":"Query Task","api":"GET /api/v3/contents/generations/tasks/:id","mode":"wide","href":"/api-reference/byteDance/doubao-seedance-2-0/query-task"}]},{"group":"doubao-seedance-2-0-fast","pages":[{"title":"Text to Video","api":"POST /api/v3/contents/generations/tasks","mode":"wide","href":"/api-reference/byteDance/doubao-seedance-2-0-fast/text-to-video"},{"title":"Query Task","api":"GET /api/v3/contents/generations/tasks/:id","mode":"wide","href":"/api-reference/byteDance/doubao-seedance-2-0-fast/query-task"}]},{"group":"doubao-seedance-2-0-fast-filter-off","pages":[{"title":"Text to Video","api":"POST /api/v3/contents/generations/tasks","mode":"wide","href":"/api-reference/byteDance/doubao-seedance-2-0-fast-filter-off/text-to-video"},{"title":"Query Task","api":"GET /api/v3/contents/generations/tasks/:id","mode":"wide","href":"/api-reference/byteDance/doubao-seedance-2-0-fast-filter-off/query-task"}]},{"group":"doubao-seedance-2-0-filter-off","pages":[{"title":"Text to Video","api":"POST /api/v3/contents/generations/tasks","mode":"wide","href":"/api-reference/byteDance/doubao-seedance-2-0-filter-off/text-to-video"},{"title":"Query Task","api":"GET /api/v3/contents/generations/tasks/:id","mode":"wide","href":"/api-reference/byteDance/doubao-seedance-2-0-filter-off/query-task"}]}]},{"group":"kc","icon":"rocket","pages":[{"group":"kkcc","pages":[{"title":"Text to Video","api":"POST /v1/video-tasks","mode":"wide","href":"/api-reference/byteDance/kkcc/text-to-video"},{"title":"Query Task","api":"POST /v1/video-tasks/query","mode":"wide","href":"/api-reference/byteDance/kkcc/query-task"},{"title":"Cancel Task","api":"POST /v1/video-tasks/cancel","mode":"wide","href":"/api-reference/byteDance/kkcc/cancel-task"}]}]}]}]}]},"title":"Text To Text - AGCloud API","buildId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","deploymentId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","dynamics":["c2aa737661","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-Bbp7I60D.js","utils-C3RIvJha.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DqD-vLt8.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B31Loprg.js","snippetPresets-DKpk-b8t.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","Page-n7I5XbKb.js","ApiExamples-Cj65AhOR.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BXtn5gcC.js","shallow-RY2b03Cp.js","getApiPlaygroundDisplay-B0jeiPk3.js","CodeSnippet-CYgBjjwn.js","CodeSnippets-DOngDrYB.js","getPastedJson-DRQbJx-T.js","icon-CQiQCicY.js","MethodPill-BKTLdNtu.js","DuplicateIcon-B9jpAdat.js","createIcon-DCddRrXv.js","DynamicMarkdown-a8hUKrw6.js","SectionHeading-eECVV2eH.js","axios-vUo_bRtp.js"]}