The 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.
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
{"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-opus-4-1-20250805-thinking/official/web-search","slug":"/api-reference/claude/claude-opus-4-1-20250805-thinking/official/web-search","pageMetadata":{"title":"Web Search","api":"POST /v1/messages","description":null,"mode":"wide","href":"/api-reference/claude/claude-opus-4-1-20250805-thinking/official/web-search"},"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 ClaudeWebSearch=({model=`claude-haiku-4-5-20251001`})=>{const{CodeBlock,CodeGroup}=_provideComponents()||{};if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);const curlExample=`curl --location '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\": [\n {\n \"type\": \"text\",\n \"text\": \"World Snooker Championship winner in 2025??\"\n }\n ]\n }\n ],\n \"tools\": [\n {\n \"type\": \"web_search_20250305\",\n \"name\": \"web_search\",\n \"max_uses\": 5\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\": \"World Snooker Championship winner in 2025??\"\n }\n ]\n }\n ],\n \"tools\": [\n {\n \"type\": \"web_search_20250305\",\n \"name\": \"web_search\",\n \"max_uses\": 5\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.json())`;const jsExample=`const response = await fetch('https://aiandgpu.com/v1/messages', {\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: [\n {\n role: 'user',\n content: [\n {\n type: 'text',\n text: \"World Snooker Championship winner in 2025??\"\n }\n ]\n }\n ],\n tools: [\n {\n \"type\": \"web_search_20250305\",\n \"name\": \"web_search\",\n \"max_uses\": 5\n }\n ]\n })\n});\n\nconst data = await response.json();\nconsole.log(data);`;const goExample=`package main\n\nimport (\n\\t\"fmt\"\n\\t\"io\"\n\\t\"net/http\"\n\\t\"strings\"\n)\n\nfunc main() {\n\\turl := \"https://aiandgpu.com/v1/messages\"\n\n\\tpayload := strings.NewReader(\\`{\n\\t\\t\"model\": \"${model}\",\n\\t\\t\"max_tokens\": 1024,\n\\t\\t\"messages\": [{\"role\": \"user\", \"content\": [{\"type\": \"text\", \"text\": \"World Snooker Championship winner in 2025??\"}]}],\n\\t\\t\"tools\": [{ \"type\": \"web_search_20250305\", \"name\": \"web_search\", \"max_uses\": 5 }]\n\\t}\\`)\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\\tdefer res.Body.Close()\n\n\\tbody, _ := io.ReadAll(res.Body)\n\\tfmt.Println(string(body))\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\": [\n {\"type\": \"text\", \"text\": \"World Snooker Championship winner in 2025??\"}\n ]\n }\n ],\n \"tools\": [\n {\n \"type\": \"web_search_20250305\",\n \"name\": \"web_search\",\n \"max_uses\": 5\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' => \"World Snooker Championship winner in 2025??\"]\n ]\n ]\n ],\n 'tools' => [\n [\n 'type' => 'web_search_20250305',\n 'name' => 'web_search',\n 'max_uses' => 5\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);\ncurl_close($curl);\n\necho $response;`;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\"\": [\n {\"\"type\"\": \"\"text\"\", \"\"text\"\": \"\"World Snooker Championship winner in 2025??\"\"}\n ]\n }\n ],\n \"\"tools\"\": [\n {\n \"\"type\"\": \"\"web_search_20250305\"\",\n \"\"name\"\": \"\"web_search\"\",\n \"\"max_uses\"\": 5\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();\nConsole.WriteLine(content);`;return _jsxs(_Fragment,{children:[_jsx(`h2`,{children:`Request Examples`}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{language:`bash`,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`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Table,_MdxComponentBoundary}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,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:`ClaudeWebSearch`,children:_jsx(ClaudeWebSearch,{model:`claude-opus-4-1-20250805-thinking`})}),`\n`,_jsx(Expandable,{title:`Sync Responses`,children:_jsx(_MdxComponentBoundary,{name:`ClaudeChatResponse`,children:_jsx(ClaudeChatResponse,{successJson:`{\n \"model\": \"claude-opus-4-1-20250805-thinking\",\n \"id\": \"msg_bdrk_01LQUV5bYD9xZbYC46bLhzub\",\n \"type\": \"message\",\n \"role\": \"assistant\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"I don't have a real-time weather tool available in my current set of tools. However, I can search the web for you to find the current weather in NYC.\"\n },\n {\n \"type\": \"tool_use\",\n \"id\": \"toolu_bdrk_017KRUUMZystbdPik3aNbG9g\",\n \"name\": \"web_search\",\n \"input\": {\n \"query\": \"weather NYC New York City current\"\n }\n }\n ],\n \"stop_reason\": \"tool_use\",\n \"stop_sequence\": null,\n \"usage\": {\n \"input_tokens\": 561,\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\": 94\n }\n}`,title:``,groupId:`sync`})})}),`\n`,_jsx(Expandable,{title:`Async Responses`,children:_jsx(_MdxComponentBoundary,{name:`ClaudeChatResponse`,children:_jsx(ClaudeChatResponse,{successJson:`{\n \"id\": \"6e06be0e-de35-4a68-83dd-5caf4cd639fe\",\n \"object\": \"task\",\n \"status\": \"pending\",\n \"created_at\": 1773142523\n}`,title:``,groupId:`async`})})}),`\n`,_jsx(Expandable,{title:`Streaming Responses`,children:_jsx(_MdxComponentBoundary,{name:`ClaudeChatResponse`,children:_jsx(ClaudeChatResponse,{groupId:`stream`,successJson:`\ndata: {\"type\":\"message_start\",\"message\":{\"model\":\"claude-opus-4-1-20250805-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 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:`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,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`claude-opus-4-6`})}),_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:`string | array\u003cobject>`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`✅`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`-`}),_jsx(_components.td,{style:{textAlign:`left`},children:`An array of message objects representing the conversation history.`})]}),_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:`1024`})}),_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:`tools`})}),_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:`-`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Array of tool objects. For web search, must include the web_search tool configuration with type web_search_20250305.`})]}),_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`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Whether to return an asynchronous response. Only supported for non-streaming requests. See `,_jsx(_components.a,{href:`#tools-object-structure`,children:`Tools`}),`.`]})]}),_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:`-`}),_jsx(_components.td,{style:{textAlign:`left`},children:`System prompt that sets the behavior and context for the assistant.`})]}),_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.`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`tools-object-structure`,children:`Tools Object 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:[`The tool type. Must be `,_jsx(_components.code,{children:`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:`✅`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Override the default tool name. Default: `,_jsx(_components.code,{children:`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:`-`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Maximum number of web search requests allowed per model turn. Range `,_jsx(_components.code,{children:`1-20`}),`.`]})]}),_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\u003cstring>`})}),_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\u003cstring>`})}),_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,{style:{textAlign:`left`},children:`Approximate user location for localized search results.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`>user_location.type`})}),_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:[`Must be `,_jsx(_components.code,{children:`approximate`}),` if provided.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`>user_location.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:[`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:`>user_location.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:[`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:`>user_location.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:[`Two-letter country code (e.g., `,_jsx(_components.code,{children:`\"US\"`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`>user_location.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:[`IANA timezone (e.g., `,_jsx(_components.code,{children:`\"America/New_York\"`}),`).`]})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"web_search_20250305\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"web_search\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"max_uses\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"allowed_domains\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"trusteddomain.org\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"user_location\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"approximate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"city\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"San Francisco\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"region\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"California\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"country\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"US\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timezone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"America/Los_Angeles\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`max-uses`,children:`Max Uses`}),`\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`]}),`\n`,_jsx(Heading,{level:`3`,id:`domain-filtering`,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 `,_jsx(_components.code,{children:`example.com`}),` instead of `,_jsx(_components.code,{children:`https://example.com`}),`)`]}),`\n`,_jsxs(_components.li,{children:[`Subdomains are automatically included (`,_jsx(_components.code,{children:`example.com`}),` covers `,_jsx(_components.code,{children:`docs.example.com`}),`)`]}),`\n`,_jsxs(_components.li,{children:[`Specific subdomains restrict results to only that subdomain (`,_jsx(_components.code,{children:`docs.example.com`}),` returns only results from that subdomain, not from `,_jsx(_components.code,{children:`example.com`}),` or `,_jsx(_components.code,{children:`api.example.com`}),`)`]}),`\n`,_jsxs(_components.li,{children:[`Subpaths are supported (`,_jsx(_components.code,{children:`example.com/blog`}),`)`]}),`\n`,_jsxs(_components.li,{children:[`You can use either `,_jsx(_components.code,{children:`allowed_domains`}),` or `,_jsx(_components.code,{children:`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`]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{ClaudeChatResponse,ClaudeWebSearch,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":"Web Search","api":"POST /v1/messages","description":null,"mode":"wide","href":"/api-reference/claude/claude-opus-4-1-20250805-thinking/official/web-search"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[154,8488,")=>null;const ClaudeWebSearch=()=>null;f"]]},"mdxExtracts":{"tableOfContents":[{"title":"Authorization","slug":"authorization","depth":2,"children":[{"title":"Async Chat Response Field Description","slug":"async-chat-response-field-description","depth":3,"children":[]}]},{"title":"Parameters","slug":"parameters","depth":2,"children":[{"title":"Tools Object Structure","slug":"tools-object-structure","depth":3,"children":[]},{"title":"Max Uses","slug":"max-uses","depth":3,"children":[]},{"title":"Domain Filtering","slug":"domain-filtering","depth":3,"children":[]}]}],"codeExamples":{},"endpoint":{"title":"Web Search","path":"/v1/messages","method":"post","request":{"security":[],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"yvshun-470c5ffb","siteName":"AGCloud API","title":"Web Search - AGCloud API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-16T09:54:46.974Z","originalFileLocation":"api-reference/claude/claude-opus-4-1-20250805-thinking/official/web-search.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=\"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=\"Web Search - AGCloud API\">\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-opus-4-1-20250805-thinking/official/web-search\">\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-opus-4-1-20250805-thinking\u0026amp;title=Web+Search\u0026amp;theme=171cba6b282c2b3c40280205\u0026amp;signature=e883deb93e57b345bd04998d3d2b2b65f0236dc05d1614d2d63d59936739d5ef\">\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=\"Web Search - AGCloud API\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://yvshun-470c5ffb.mintlify.app/_mintlify/api/og/v2?division=claude-opus-4-1-20250805-thinking\u0026amp;title=Web+Search\u0026amp;theme=171cba6b282c2b3c40280205\u0026amp;signature=e883deb93e57b345bd04998d3d2b2b65f0236dc05d1614d2d63d59936739d5ef\">\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-opus-4-1-20250805-thinking/official/web-search\">\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-opus-4-1-20250805-thinking/official/web-search.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-opus-4-1-20250805-thinking/official/web-search#webpage\",\"url\":\"https://docs.aiandgpu.com/api-reference/claude/claude-opus-4-1-20250805-thinking/official/web-search\",\"name\":\"Web Search\",\"dateModified\":\"2026-10-16T09:54:46.974Z\",\"isPartOf\":{\"@id\":\"https://docs.aiandgpu.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.aiandgpu.com/api-reference/claude/claude-opus-4-1-20250805-thinking/official/web-search#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.aiandgpu.com/api-reference/claude/claude-opus-4-1-20250805-thinking/official/web-search#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\":\"claude-opus-4-1-20250805-thinking\",\"item\":\"https://docs.aiandgpu.com/api-reference/claude/claude-opus-4-1-20250805-thinking/official/text-to-text\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Web Search\",\"item\":\"https://docs.aiandgpu.com/api-reference/claude/claude-opus-4-1-20250805-thinking/official/web-search\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.aiandgpu.com/api-reference/claude/claude-opus-4-1-20250805-thinking/official/web-search#apireference\",\"headline\":\"Web Search\",\"name\":\"Web Search\",\"url\":\"https://docs.aiandgpu.com/api-reference/claude/claude-opus-4-1-20250805-thinking/official/web-search\",\"mainEntityOfPage\":{\"@id\":\"https://docs.aiandgpu.com/api-reference/claude/claude-opus-4-1-20250805-thinking/official/web-search#webpage\"},\"dateModified\":\"2026-10-16T09:54:46.974Z\",\"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}","description":"Query the result of an asynchronous chat task using the task 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","description":null,"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","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}","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":"Web Search - 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"]}