Bearer token used for request authentication. Alternatively, you can send the API key in the x-api-key header. Note: A payment method is required to use the API.
Controls the execution depth. queries_only: only decompose the message into sub-queries without performing searches; queries_and_search: decompose into sub-queries and return search results without LLM synthesis; full: decompose, search, and synthesize a final response using the LLM.
Whether to enable streaming output. When true, returns chat.completion.chunk objects incrementally with types: queries, search_done, content, finish, and usage.
Response
Successful Answer response. When stream=false, returns a single response object. When stream=true, returns a stream of chat.completion.chunk objects.
Non-streaming
Streaming
A non-streaming Answer response. Returned when stream=false.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Octen Docs","description":"The search infrastructure for AI. Real-time web search foundation that empowers LLMs to reason with the world's latest information. Engineered for AI Agents, Copilots, and Chatbots with real-time indexing, sub-100ms latency, and high reliability.","colors":{"primary":"#039855","light":"#FFFFFF","dark":"#0F1117"},"logo":{"light":"https://mintcdn.com/octen-ai/7a_UtFqtHVRx7z9z/logo/logo.svg?fit=max\u0026auto=format\u0026n=7a_UtFqtHVRx7z9z\u0026q=85\u0026s=26d2a863c023b0211afa7c6c0bce2d8e","dark":"https://mintcdn.com/octen-ai/7a_UtFqtHVRx7z9z/logo/logo-dark.svg?fit=max\u0026auto=format\u0026n=7a_UtFqtHVRx7z9z\u0026q=85\u0026s=bfbe0113ad39cf82fe68dd515c2091bf","href":"https://octen.ai"},"favicon":"https://mintcdn.com/octen-ai/R4_y7aW-VxkGajbE/logo/favicon.svg?fit=max\u0026auto=format\u0026n=R4_y7aW-VxkGajbE\u0026q=85\u0026s=f60d8117581e937a7e3cab4ecf74aa22","api":{"playground":{"display":"interactive"},"examples":{"prefill":true}},"navbar":{"links":[{"href":"mailto:support@octen.ai","label":"Support"}],"primary":{"type":"button","label":"API Platform","href":"https://octen.ai/platform"}},"footer":{},"seo":{"metatags":{"canonical":"https://docs.octen.ai","keywords":"octen,octen.ai,ai search infrastructure,real-time web search,search api,ai search engine,search for ai agents,retrieval layer for llms,llm grounding,real-time indexing,low latency retrieval,agentic search engine,live web data,sota embedding model,octen-8b,ai search api,web search api,api,search,ai,llms","og:description":"The search infrastructure for AI. Real-time web search foundation that empowers LLMs to reason with the world's latest information. Engineered for AI Agents, Copilots, and Chatbots with real-time indexing, sub-100ms latency, and high reliability.","og:image":"https://octen.ai/_next/static/media/octen-cover.dc74905e.png","og:url":"https://docs.octen.ai","og:site_name":"Octen Docs","twitter:card":"summary_large_image","twitter:description":"The search infrastructure for AI. Real-time web search foundation that empowers LLMs to reason with the world's latest information. Engineered for AI Agents, Copilots, and Chatbots with real-time indexing, sub-100ms latency, and high reliability.","twitter:image":"https://octen.ai/_next/static/media/octen-cover.dc74905e.png","google-site-verification":"WomFSLfAsZAC_vWB_WcRDmkF_IPlrOw-VHZROUA1LFE"},"indexing":"all"},"integrations":{"posthog":{"apiKey":"phc_S3tyhNZM8KsgXjF0kw1LYLgTQ8D2amhZNFA4vz1yHRo","sessionRecording":false}},"contextual":{"options":["copy","view"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"octen-ai","hasAudioNarration":false,"actualSubdomain":"octen-ai","customDomains":["docs.octen.ai"],"gitSource":{"type":"github","owner":"ai-apitech","repo":"apt_docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6af1f60ef9312b54bbd3e5f8","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"Documentation","count":37},{"language":"default","tag":"API Reference","count":22},{"language":"default","tag":"Capabilities","count":16},{"language":"default","tag":"Applications","count":16},{"language":"default","tag":"APIs","count":11},{"language":"default","tag":"Resources","count":9},{"language":"default","tag":"Octen Fast","count":8},{"language":"default","tag":"Octen Premier","count":6},{"language":"default","tag":"Integrations","count":6},{"language":"default","tag":"Overview","count":6}],"searchSettings":{"maxResults":6}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"fix-copy-page.css","content":"#page-context-menu.hidden{display:flex!important}#header>#page-context-menu.mt-3{display:none!important}"}],"page":{"pagePath":"api-reference/answer","slug":"/api-reference/answer","pageMetadata":{"title":"Answer API Reference","description":"Automatically decomposes user messages into multiple sub-queries, performs searches, and synthesizes results using an LLM.","deprecated":null,"version":null,"sidebarTitle":"Answer","openapi":"/api-reference/openapi.json post /answer","href":"/api-reference/answer","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Automatically decomposes user messages into multiple sub-queries, performs searches, and synthesizes results using an LLM.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Answer API Reference","description":"Automatically decomposes user messages into multiple sub-queries, performs searches, and synthesizes results using an LLM.","deprecated":null,"version":null,"sidebarTitle":"Answer","openapi":"/api-reference/openapi.json post /answer","href":"/api-reference/answer","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/octen-ai/1394afa843283735/tryit-button.js"],"openApiReferenceData":{"operation":{"summary":"Answer","description":"Automatically decomposes user messages into multiple sub-queries, performs searches, and synthesizes results using an LLM.","operationId":"answer","x-mint":{"metadata":{"title":"Answer API Reference","sidebarTitle":"Answer"}},"requestBody":"ae949a45-c67b-48e8-a3ac-634ea4e681a4","responses":{"200":"c60e67cf-ddef-4a4a-b164-3dc16c9b23c6","400":"4cd1146b-7b00-4f0b-9d59-a4bad2988be2","401":"340de03a-21c7-485e-a445-a9a2e424f3d6","403":"471fac55-d469-4ee8-be96-886877875f67","429":"e7c687e3-243f-49a3-9cbd-a3be6aa483a4","500":"3127302c-a17b-45d5-b56e-19a31c464a28"},"method":"post","type":"path","servers":["5fd65740-f929-41da-9bbb-1cbf6f244b41"],"security":["3641a170-0933-482a-8caf-16197fc63f1c","7fec3a23-89db-45ea-998a-1e809310f48b"],"path":"/answer","baseUrlOptions":["https://api.octen.ai"],"title":"Answer","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.messages.items.0.oneOf.2.role":"user","body.messages.items.0.oneOf.2.content.oneOf.0":"Latest trends and major players in the global AI chip market in 2026","body.model":"anthropic/claude-sonnet-4.6","body.max_queries":5,"body.web_search_options.count":10,"body.web_search_options.highlight.enable":true,"body.web_search_options.highlight.max_tokens":300,"body.web_search_options.full_content.enable":true,"body.web_search_options.full_content.max_tokens":2048,"body.stream":false},{"body.messages.items.0.oneOf.2.role":"user","body.messages.items.0.oneOf.2.content.oneOf.0":"What are the latest developments in quantum computing?","body.model":"anthropic/claude-sonnet-4.6","body.mode":"queries_only","body.max_queries":10},{"body.messages.items.0.oneOf.2.role":"user","body.messages.items.0.oneOf.2.content.oneOf.0":"Compare Tesla and BYD electric vehicle sales in 2026","body.model":"anthropic/claude-sonnet-4.6","body.mode":"queries_and_search","body.max_queries":8,"body.web_search_options.count":5,"body.web_search_options.highlight.enable":true,"body.web_search_options.highlight.max_tokens":300},{"body.messages.items.0.oneOf.2.role":"user","body.messages.items.0.oneOf.2.content.oneOf.0":"Who are the major players in the current chip market?","body.messages.items.1.oneOf.3.role":"assistant","body.messages.items.1.oneOf.3.content.oneOf.0":"Major players include NVIDIA, AMD, Intel, Broadcom, Google, Amazon, etc.","body.messages.items.2.oneOf.2.role":"user","body.messages.items.2.oneOf.2.content.oneOf.0":"What are their latest developments?","body.model":"anthropic/claude-sonnet-4.6","body.max_queries":10,"body.stream":false},{"body.messages.items.0.oneOf.2.role":"user","body.messages.items.0.oneOf.2.content.oneOf.0":"Latest central bank interest rate decisions globally","body.model":"anthropic/claude-sonnet-4.6","body.max_queries":15,"body.web_search_options.count":10,"body.web_search_options.include_domains.items.0":"reuters.com","body.web_search_options.exclude_domains.items.0":"medium.com","body.web_search_options.include_text.items.0":"interest rate","body.web_search_options.include_text.items.1":"central bank","body.web_search_options.exclude_text.items.0":"opinion","body.web_search_options.exclude_text.items.1":"rumor","body.web_search_options.time_basis":"published","body.web_search_options.start_time":"2025-01-01T00:00:00Z","body.web_search_options.end_time":"2025-01-31T23:59:59Z","body.web_search_options.highlight.enable":true,"body.web_search_options.highlight.max_tokens":300,"body.web_search_options.full_content.enable":true,"body.web_search_options.full_content.max_tokens":2048,"body.web_search_options.format":"markdown","body.web_search_options.safesearch":"strict","body.stream":false}]},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["messages"],"description":"Request body for the Answer API.","properties":{"messages":{"type":"array","description":"A list of messages comprising the conversation so far. User and assistant messages in chronological order for multi-turn conversations.","items":{"oneOf":[{"type":"object","required":["role","content"],"properties":{"role":{"type":"string","enum":["system"],"description":"The role of the message author. Always `system`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","description":"The system prompt content. A plain string or an array of content blocks.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","description":"A content block within a message.","required":["type"],"properties":{"type":{"type":"string","enum":["text","image","image_url"],"description":"The type of content block.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"The text content. Required when `type` is `text`.","uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].text","typeLabel":"string"},"image":{"type":"string","description":"Base64-encoded image. Required when `type` is `image`.","uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].image","typeLabel":"string"},"image_url":{"type":"object","description":"Image URL object. Required when `type` is `image_url`.","required":["url"],"properties":{"url":{"type":"string","description":"The URL of the image.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].image_url.url","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].image_url","typeLabel":"object"},"cache_control":{"type":"object","description":"Prompt caching marker. Sets a cache breakpoint so the stable prefix up to this block can be reused.","required":["type"],"properties":{"type":{"type":"string","enum":["ephemeral"],"description":"The cache control type. Always `ephemeral`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["5m","1h"],"default":"5m","description":"Cache lifetime.","uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].cache_control.ttl","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].cache_control","typeLabel":"object"}},"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"The system prompt content. A plain string or an array of content blocks.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.content","typeLabel":"string | object[]"}},"uniqueKey":"messages.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"A developer message. The OpenAI-protocol equivalent of `system` (sent by newer OpenAI SDKs); handled as `system`.","required":["role","content"],"properties":{"role":{"type":"string","enum":["developer"],"description":"The role of the message author. Always `developer`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","description":"The content. A plain string or an array of content blocks.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","description":"A content block within a message.","required":["type"],"properties":{"type":{"type":"string","enum":["text","image","image_url"],"description":"The type of content block.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"The text content. Required when `type` is `text`.","uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].text","typeLabel":"string"},"image":{"type":"string","description":"Base64-encoded image. Required when `type` is `image`.","uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].image","typeLabel":"string"},"image_url":{"type":"object","description":"Image URL object. Required when `type` is `image_url`.","required":["url"],"properties":{"url":{"type":"string","description":"The URL of the image.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].image_url.url","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].image_url","typeLabel":"object"},"cache_control":{"type":"object","description":"Prompt caching marker. Sets a cache breakpoint so the stable prefix up to this block can be reused.","required":["type"],"properties":{"type":{"type":"string","enum":["ephemeral"],"description":"The cache control type. Always `ephemeral`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["5m","1h"],"default":"5m","description":"Cache lifetime.","uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].cache_control.ttl","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].cache_control","typeLabel":"object"}},"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"The content. A plain string or an array of content blocks.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content","typeLabel":"string | object[]"}},"uniqueKey":"messages.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["role","content"],"properties":{"role":{"type":"string","enum":["user"],"description":"The role of the message author. Always `user`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","description":"The content of the message. A plain string or an array of content blocks.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","description":"A content block within a message.","required":["type"],"properties":{"type":{"type":"string","enum":["text","image","image_url"],"description":"The type of content block.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"The text content. Required when `type` is `text`.","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].text","typeLabel":"string"},"image":{"type":"string","description":"Base64-encoded image. Required when `type` is `image`.","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].image","typeLabel":"string"},"image_url":{"type":"object","description":"Image URL object. Required when `type` is `image_url`.","required":["url"],"properties":{"url":{"type":"string","description":"The URL of the image.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].image_url.url","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].image_url","typeLabel":"object"},"cache_control":{"type":"object","description":"Prompt caching marker. Sets a cache breakpoint so the stable prefix up to this block can be reused.","required":["type"],"properties":{"type":{"type":"string","enum":["ephemeral"],"description":"The cache control type. Always `ephemeral`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["5m","1h"],"default":"5m","description":"Cache lifetime.","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].cache_control.ttl","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].cache_control","typeLabel":"object"}},"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"The content of the message. A plain string or an array of content blocks.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content","typeLabel":"string | object[]"}},"uniqueKey":"messages.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["role"],"properties":{"role":{"type":"string","enum":["assistant"],"description":"The role of the message author. Always `assistant`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","description":"The assistant's text content. May be `null` or omitted when the assistant only produces tool calls.","uniqueKey":"messages.items.[INDEX].oneOf.3.content.oneOf.0","typeLabel":"string"},{"type":"null","description":"The assistant's text content. May be `null` or omitted when the assistant only produces tool calls.","uniqueKey":"messages.items.[INDEX].oneOf.3.content.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.3.content","typeLabel":"string | null"},"tool_calls":{"type":"array","items":{"type":"object","required":["id","type","function"],"description":"A custom function call generated by the model.","properties":{"id":{"type":"string","description":"A unique identifier for this tool call. Referenced by the corresponding `tool` message's `tool_call_id`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls.items.[INDEX].id","typeLabel":"string"},"type":{"type":"string","enum":["function"],"description":"The type of tool call. Always `function`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"function":{"type":"object","required":["name","arguments"],"description":"The function invocation details within a tool call.","properties":{"name":{"type":"string","description":"The name of the function to call.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls.items.[INDEX].function.name","typeLabel":"string"},"arguments":{"type":"string","description":"The arguments to the function, as a JSON string generated by the model.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls.items.[INDEX].function.arguments","typeLabel":"string"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls.items.[INDEX].function","typeLabel":"object"},"index":{"type":"integer","description":"The index of this tool call in the array.","uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls.items.[INDEX].index","typeLabel":"integer"},"thought_signature":{"type":"string","description":"Encrypted reasoning state, replayed verbatim. Required when the request ends with a `tool` message.","uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls.items.[INDEX].thought_signature","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls.items.[INDEX]","typeLabel":"object"},"description":"Tool calls generated by the model in a previous turn, replayed verbatim. Only valid when `role` is `assistant`.","uniqueKey":"messages.items.[INDEX].oneOf.3.tool_calls","typeLabel":"object[]"}},"uniqueKey":"messages.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["role","tool_call_id","content"],"properties":{"role":{"type":"string","enum":["tool"],"description":"The role of the message author. Always `tool`.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.4.role","typeLabel":"enum\u003cstring>"},"tool_call_id":{"type":"string","description":"The ID of the tool call this message responds to.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.4.tool_call_id","typeLabel":"string"},"content":{"type":"string","description":"The tool output, typically a JSON string with the function result.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.4.content","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"messages.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"messages","typeLabel":"object[]"},"model":{"type":"string","enum":["openai/gpt-6.1-sol","openai/gpt-6.1-terra","openai/gpt-6-astra","openai/gpt-5.6-sol","openai/gpt-5.6-terra","openai/gpt-5.6-luna","openai/gpt-5.4","anthropic/claude-fable-5.1","anthropic/claude-fable-5","anthropic/claude-opus-5.5","anthropic/claude-opus-5","anthropic/claude-opus-4.8","anthropic/claude-opus-4.6","anthropic/claude-sonnet-5.5","anthropic/claude-sonnet-5","anthropic/claude-sonnet-4.6","anthropic/claude-haiku-5.5","anthropic/claude-haiku-4.5","google/gemini-4-argon","google/gemini-3.8-flash","google/gemini-3.5-flash","google/gemini-3.5-flash-lite","google/gemini-3.1-pro-preview","google/gemini-3.1-flash-lite","google/gemini-3-flash-preview","moonshotai/kimi-k3.1-pro","moonshotai/kimi-k3","minimax/minimax-m3.1-flash","minimax/minimax-m3","qwen/qwen3.6-plus","deepseek/deepseek-v4.1-flash-1017","deepseek/deepseek-v4-pro-0813","deepseek/deepseek-v4-pro","deepseek/deepseek-v4-flash-0731"],"default":"anthropic/claude-sonnet-4.6","description":"The model to use for query decomposition and response synthesis.","uniqueKey":"model","typeLabel":"enum\u003cstring>"},"mode":{"type":"string","enum":["queries_only","queries_and_search","full"],"default":"full","description":"Controls the execution depth. `queries_only`: only decompose the message into sub-queries without performing searches; `queries_and_search`: decompose into sub-queries and return search results without LLM synthesis; `full`: decompose, search, and synthesize a final response using the LLM.","uniqueKey":"mode","typeLabel":"enum\u003cstring>"},"max_queries":{"type":"integer","minimum":1,"maximum":30,"default":30,"description":"Maximum number of sub-queries to generate.","uniqueKey":"max_queries","typeLabel":"integer"},"web_search_options":{"type":"object","description":"Search options. Shares the same parameters and defaults as the Web Search API. Queries are automatically generated from the messages.","properties":{"count":{"type":"integer","default":5,"minimum":1,"maximum":100,"description":"Number of results to return.","uniqueKey":"web_search_options.count","typeLabel":"integer"},"include_domains":{"type":"array","items":{"type":"string","maxLength":60,"uniqueKey":"web_search_options.include_domains.items.[INDEX]","typeLabel":"string"},"maxItems":1200,"description":"A list of domains to specifically include in the search results. The `site:` query operator adds to this list.","example":["octen.ai","wikipedia.org"],"uniqueKey":"web_search_options.include_domains","typeLabel":"string[]"},"exclude_domains":{"type":"array","items":{"type":"string","maxLength":60,"uniqueKey":"web_search_options.exclude_domains.items.[INDEX]","typeLabel":"string"},"maxItems":1200,"description":"A list of domains to specifically exclude from the search results. The `-site:` query operator adds to this list. If a domain appears in both `include_domains` and `exclude_domains`, `exclude_domains` takes precedence.","example":["spam.com","ads.example.net"],"uniqueKey":"web_search_options.exclude_domains","typeLabel":"string[]"},"include_text":{"type":"array","items":{"type":"string","maxLength":30,"uniqueKey":"web_search_options.include_text.items.[INDEX]","typeLabel":"string"},"maxItems":5,"description":"Strings that must appear in the result page text.","uniqueKey":"web_search_options.include_text","typeLabel":"string[]"},"exclude_text":{"type":"array","items":{"type":"string","maxLength":30,"uniqueKey":"web_search_options.exclude_text.items.[INDEX]","typeLabel":"string"},"maxItems":5,"description":"Strings that must not appear in the result page text.","uniqueKey":"web_search_options.exclude_text","typeLabel":"string[]"},"time_basis":{"type":"string","enum":["auto","published","crawled"],"default":"auto","description":"Determines which time field is used for time filtering. `published` uses time_published; `crawled` uses time_last_crawled. Results missing this field are excluded when filtering by time.","uniqueKey":"web_search_options.time_basis","typeLabel":"enum\u003cstring>"},"time_range":{"type":"string","enum":["day","week","month","year","d","w","m","y"],"description":"Relative time window counting back from the current time based on `time_basis`. Mutually exclusive with `start_time`/`end_time` — if both are provided, `start_time`/`end_time` take precedence.","uniqueKey":"web_search_options.time_range","typeLabel":"enum\u003cstring>"},"start_time":{"type":"string","format":"date-time","description":"Start time for filtering results. ISO 8601 format.","example":"2025-01-01T00:00:00+08:00","uniqueKey":"web_search_options.start_time","typeLabel":"string\u003cdate-time>"},"end_time":{"type":"string","format":"date-time","description":"End time for filtering results. ISO 8601 format.","example":"2025-01-01T00:00:00+08:00","uniqueKey":"web_search_options.end_time","typeLabel":"string\u003cdate-time>"},"language":{"type":"array","items":{"type":"string","enum":["ar","de","en","es","fr","hi","id","it","ja","ko","nl","pl","pt","ru","th","tr","vi","zh"],"uniqueKey":"web_search_options.language.items.[INDEX]","typeLabel":"enum\u003cstring>"},"default":[],"description":"A list of languages to restrict results to, as ISO 639-1 codes. By default, no language filter is applied.","example":["en","zh"],"uniqueKey":"web_search_options.language","typeLabel":"enum\u003cstring>[]"},"highlight":{"type":"object","description":"Controls highlight extraction from result pages.","properties":{"enable":{"type":"boolean","default":true,"description":"If true, returns query-relevant highlight in each result.","uniqueKey":"web_search_options.highlight.enable","typeLabel":"boolean"},"max_tokens":{"type":"integer","default":512,"minimum":100,"maximum":20000,"description":"Max tokens returned per highlight.","uniqueKey":"web_search_options.highlight.max_tokens","typeLabel":"integer"}},"uniqueKey":"web_search_options.highlight","typeLabel":"object"},"full_content":{"type":"object","description":"Controls whether to return the full raw content of each result page.","properties":{"enable":{"type":"boolean","default":false,"description":"If true, returns full_content for each result.","uniqueKey":"web_search_options.full_content.enable","typeLabel":"boolean"},"max_tokens":{"type":"integer","default":2048,"minimum":100,"maximum":100000,"description":"Maximum tokens of full content included per result.","uniqueKey":"web_search_options.full_content.max_tokens","typeLabel":"integer"}},"uniqueKey":"web_search_options.full_content","typeLabel":"object"},"format":{"type":"string","enum":["markdown","text"],"default":"text","description":"Controls the formatting of highlight outputs.","uniqueKey":"web_search_options.format","typeLabel":"enum\u003cstring>"},"safesearch":{"type":"string","enum":["off","strict"],"default":"strict","description":"Controls filtering of explicit/adult content. `off` disables filtering; `strict` drops all adult content.","uniqueKey":"web_search_options.safesearch","typeLabel":"enum\u003cstring>"},"include_images":{"type":"boolean","default":false,"description":"Whether to include images in each result.","uniqueKey":"web_search_options.include_images","typeLabel":"boolean"}},"uniqueKey":"web_search_options","typeLabel":"object"},"stream":{"type":"boolean","default":false,"description":"Whether to enable streaming output. When `true`, returns `chat.completion.chunk` objects incrementally with types: `queries`, `search_done`, `content`, `finish`, and `usage`.","uniqueKey":"stream","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"basic":{"title":"basic","value":{"model":"anthropic/claude-sonnet-4.6","messages":[{"role":"user","content":"Latest trends and major players in the global AI chip market in 2026"}],"max_queries":5,"stream":false,"web_search_options":{"count":10,"highlight":{"enable":true,"max_tokens":300},"full_content":{"enable":true,"max_tokens":2048}}}},"queriesOnly":{"title":"queriesOnly","value":{"model":"anthropic/claude-sonnet-4.6","messages":[{"role":"user","content":"What are the latest developments in quantum computing?"}],"mode":"queries_only","max_queries":10}},"queriesAndSearch":{"title":"queriesAndSearch","value":{"model":"anthropic/claude-sonnet-4.6","messages":[{"role":"user","content":"Compare Tesla and BYD electric vehicle sales in 2026"}],"mode":"queries_and_search","max_queries":8,"web_search_options":{"count":5,"highlight":{"enable":true,"max_tokens":300}}}},"multiTurn":{"title":"multiTurn","value":{"model":"anthropic/claude-sonnet-4.6","messages":[{"role":"user","content":"Who are the major players in the current chip market?"},{"role":"assistant","content":"Major players include NVIDIA, AMD, Intel, Broadcom, Google, Amazon, etc."},{"role":"user","content":"What are their latest developments?"}],"max_queries":10,"stream":false}},"withDomainFilter":{"title":"withDomainFilter","value":{"model":"anthropic/claude-sonnet-4.6","messages":[{"role":"user","content":"Latest central bank interest rate decisions globally"}],"max_queries":15,"stream":false,"web_search_options":{"count":10,"include_domains":["reuters.com"],"exclude_domains":["medium.com"],"include_text":["interest rate","central bank"],"exclude_text":["opinion","rumor"],"time_basis":"published","start_time":"2025-01-01T00:00:00Z","end_time":"2025-01-31T23:59:59Z","highlight":{"enable":true,"max_tokens":300},"format":"markdown","safesearch":"strict","full_content":{"enable":true,"max_tokens":2048}}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"c60e67cf-ddef-4a4a-b164-3dc16c9b23c6":{"description":"Successful Answer response. When `stream=false`, returns a single response object. When `stream=true`, returns a stream of `chat.completion.chunk` objects.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"Non-streaming","description":"A non-streaming Answer response. Returned when `stream=false`.","required":["request_id","model","choices"],"properties":{"request_id":{"type":"string","description":"The unique identifier for this request.","isRequired":true,"uniqueKey":"oneOf.0.request_id","typeLabel":"string"},"model":{"type":"string","description":"The model used for this completion.","isRequired":true,"uniqueKey":"oneOf.0.model","typeLabel":"string"},"choices":{"type":"array","description":"A list of completion choices containing the synthesized response.","items":{"type":"object","description":"A single completion choice in a non-streaming response.","properties":{"index":{"type":"integer","description":"The index of this choice. Usually 0.","uniqueKey":"oneOf.0.choices.items.[INDEX].index","typeLabel":"integer"},"finish_reason":{"type":"string","enum":["stop","length","tool_calls","content_filter","error"],"description":"The reason the model stopped generating. `stop` indicates normal completion.","uniqueKey":"oneOf.0.choices.items.[INDEX].finish_reason","typeLabel":"enum\u003cstring>"},"message":{"type":"object","description":"The assistant's response message.","properties":{"role":{"type":"string","enum":["assistant"],"description":"The role of the message author. Always `assistant`.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","description":"The assistant's text content. May be `null` when the model only produces tool calls or refuses.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.content.oneOf.0","typeLabel":"string"},{"type":"null","description":"The assistant's text content. May be `null` when the model only produces tool calls or refuses.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.content.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.choices.items.[INDEX].message.content","typeLabel":"string | null"},"tool_calls":{"type":"array","items":{"type":"object","required":["id","type","function"],"description":"A custom function call generated by the model.","properties":{"id":{"type":"string","description":"A unique identifier for this tool call. Referenced by the corresponding `tool` message's `tool_call_id`.","isRequired":true,"uniqueKey":"oneOf.0.choices.items.[INDEX].message.tool_calls.items.[INDEX].id","typeLabel":"string"},"type":{"type":"string","enum":["function"],"description":"The type of tool call. Always `function`.","isRequired":true,"uniqueKey":"oneOf.0.choices.items.[INDEX].message.tool_calls.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"function":{"type":"object","required":["name","arguments"],"description":"The function invocation details within a tool call.","properties":{"name":{"type":"string","description":"The name of the function to call.","isRequired":true,"uniqueKey":"oneOf.0.choices.items.[INDEX].message.tool_calls.items.[INDEX].function.name","typeLabel":"string"},"arguments":{"type":"string","description":"The arguments to the function, as a JSON string generated by the model.","isRequired":true,"uniqueKey":"oneOf.0.choices.items.[INDEX].message.tool_calls.items.[INDEX].function.arguments","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.0.choices.items.[INDEX].message.tool_calls.items.[INDEX].function","typeLabel":"object"},"index":{"type":"integer","description":"The index of this tool call in the array.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.tool_calls.items.[INDEX].index","typeLabel":"integer"},"thought_signature":{"type":"string","description":"Encrypted reasoning state, replayed verbatim. Required when the request ends with a `tool` message.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.tool_calls.items.[INDEX].thought_signature","typeLabel":"string"}},"uniqueKey":"oneOf.0.choices.items.[INDEX].message.tool_calls.items.[INDEX]","typeLabel":"object"},"description":"Custom function calls generated by the model. Present only when `finish_reason` is `tool_calls`.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.tool_calls","typeLabel":"object[]"},"annotations":{"type":"array","items":{"type":"object","description":"A citation annotation. Returned only when `octen_search` was used, currently only for `anthropic/` models. For other models, results are still available in `search_results`.","properties":{"type":{"type":"string","enum":["url_citation"],"description":"The annotation type.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.annotations.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"url_citation":{"type":"object","properties":{"url":{"type":"string","description":"The URL of the cited source.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.annotations.items.[INDEX].url_citation.url","typeLabel":"string"},"title":{"type":"string","description":"The title of the cited source.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.annotations.items.[INDEX].url_citation.title","typeLabel":"string"},"start_index":{"type":"integer","description":"Start position of the cited span in `content`.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.annotations.items.[INDEX].url_citation.start_index","typeLabel":"integer"},"end_index":{"type":"integer","description":"End position of the cited span in `content`.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.annotations.items.[INDEX].url_citation.end_index","typeLabel":"integer"}},"uniqueKey":"oneOf.0.choices.items.[INDEX].message.annotations.items.[INDEX].url_citation","typeLabel":"object"}},"uniqueKey":"oneOf.0.choices.items.[INDEX].message.annotations.items.[INDEX]","typeLabel":"object"},"description":"Citation annotations. Present only when `octen_broad_search` or `octen_search` was used.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.annotations","typeLabel":"object[]"},"refusal":{"oneOf":[{"type":"string","description":"A model-generated refusal message, or `null`.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.refusal.oneOf.0","typeLabel":"string"},{"type":"null","description":"A model-generated refusal message, or `null`.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.refusal.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.choices.items.[INDEX].message.refusal","typeLabel":"string | null"},"reasoning":{"oneOf":[{"type":"string","description":"Reasoning text. Present only for reasoning models, otherwise `null`.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.reasoning.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reasoning text. Present only for reasoning models, otherwise `null`.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.reasoning.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.choices.items.[INDEX].message.reasoning","typeLabel":"string | null"},"reasoning_details":{"type":"array","items":{"type":"object","description":"Detailed reasoning information. Returned only for reasoning models.","properties":{"format":{"type":"string","enum":["unknown","openai-responses-v1","azure-openai-responses-v1","xai-responses-v1","anthropic-claude-v1","google-gemini-v1"],"description":"The format of the reasoning information.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.reasoning_details.items.[INDEX].format","typeLabel":"enum\u003cstring>"},"index":{"type":"integer","description":"The position of this entry in the output. Usually 0.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.reasoning_details.items.[INDEX].index","typeLabel":"integer"},"type":{"type":"string","enum":["reasoning.text","reasoning.summary","reasoning.encrypted"],"description":"The kind of reasoning information.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.reasoning_details.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"Reasoning text. Present only when `type` is `reasoning.text`.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.reasoning_details.items.[INDEX].text","typeLabel":"string"},"summary":{"type":"string","description":"Reasoning summary. Present only when `type` is `reasoning.summary`.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.reasoning_details.items.[INDEX].summary","typeLabel":"string"},"data":{"type":"string","description":"Encrypted reasoning. Present only when `type` is `reasoning.encrypted`.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.reasoning_details.items.[INDEX].data","typeLabel":"string"}},"uniqueKey":"oneOf.0.choices.items.[INDEX].message.reasoning_details.items.[INDEX]","typeLabel":"object"},"description":"Detailed reasoning information. Present only for reasoning models.","uniqueKey":"oneOf.0.choices.items.[INDEX].message.reasoning_details","typeLabel":"object[]"}},"uniqueKey":"oneOf.0.choices.items.[INDEX].message","typeLabel":"object"},"logprobs":{"oneOf":[{"type":"object","description":"Log probability information for the output tokens. Present only when `logprobs` is `true`, otherwise `null`.","properties":{"content":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"token":{"type":"string","description":"The token text.","uniqueKey":"oneOf.0.choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].token","typeLabel":"string"},"logprob":{"type":"number","description":"The log probability of this token.","uniqueKey":"oneOf.0.choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].logprob","typeLabel":"number"},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer","uniqueKey":"oneOf.0.choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].bytes.oneOf.0.items.[INDEX]","typeLabel":"integer"},"description":"UTF-8 byte representation.","uniqueKey":"oneOf.0.choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].bytes.oneOf.0","typeLabel":"integer[]"},{"type":"null","items":{"type":"integer"},"description":"UTF-8 byte representation.","uniqueKey":"oneOf.0.choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].bytes.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].bytes","typeLabel":"integer[] | null"},"top_logprobs":{"type":"array","description":"The top candidate tokens at this position, same structure.","items":{"type":"object","uniqueKey":"oneOf.0.choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].top_logprobs","typeLabel":"object[]"}},"uniqueKey":"oneOf.0.choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"token":{"type":"string","description":"The token text."},"logprob":{"type":"number","description":"The log probability of this token."},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer"},"description":"UTF-8 byte representation."},{"type":"null","items":{"type":"integer"},"description":"UTF-8 byte representation."}]},"top_logprobs":{"type":"array","description":"The top candidate tokens at this position, same structure.","items":{"type":"object"}}}},"uniqueKey":"oneOf.0.choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.choices.items.[INDEX].logprobs.oneOf.0.content","typeLabel":"object[] | null"}},"uniqueKey":"oneOf.0.choices.items.[INDEX].logprobs.oneOf.0","typeLabel":"object"},{"type":"null","description":"Log probability information for the output tokens. Present only when `logprobs` is `true`, otherwise `null`.","properties":{"content":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"token":{"type":"string","description":"The token text."},"logprob":{"type":"number","description":"The log probability of this token."},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer"},"description":"UTF-8 byte representation."},{"type":"null","items":{"type":"integer"},"description":"UTF-8 byte representation."}]},"top_logprobs":{"type":"array","description":"The top candidate tokens at this position, same structure.","items":{"type":"object"}}}}},{"type":"null","items":{"type":"object","properties":{"token":{"type":"string","description":"The token text."},"logprob":{"type":"number","description":"The log probability of this token."},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer"},"description":"UTF-8 byte representation."},{"type":"null","items":{"type":"integer"},"description":"UTF-8 byte representation."}]},"top_logprobs":{"type":"array","description":"The top candidate tokens at this position, same structure.","items":{"type":"object"}}}}}]}},"uniqueKey":"oneOf.0.choices.items.[INDEX].logprobs.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.choices.items.[INDEX].logprobs","typeLabel":"object | null"}},"uniqueKey":"oneOf.0.choices.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.choices","typeLabel":"object[]"},"queries":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.queries.items.[INDEX]","typeLabel":"string"},"description":"The list of sub-queries automatically generated from the user message by the system.","uniqueKey":"oneOf.0.queries","typeLabel":"string[]"},"search_results":{"type":"array","description":"Search results grouped by query. Each sub-query has a corresponding result group.","items":{"type":"object","description":"A group of search results for a single sub-query.","properties":{"query":{"type":"string","description":"The sub-query that produced these results.","uniqueKey":"oneOf.0.search_results.items.[INDEX].query","typeLabel":"string"},"results":{"type":"array","description":"The search results for this sub-query.","items":{"type":"object","description":"A single search result.","properties":{"title":{"type":"string","description":"The title of the result page.","uniqueKey":"oneOf.0.search_results.items.[INDEX].results.items.[INDEX].title","typeLabel":"string"},"url":{"type":"string","description":"The URL of the result page.","uniqueKey":"oneOf.0.search_results.items.[INDEX].results.items.[INDEX].url","typeLabel":"string"},"highlight":{"type":"string","description":"Query-relevant highlight snippets. Returned only if highlight.enable is true.","uniqueKey":"oneOf.0.search_results.items.[INDEX].results.items.[INDEX].highlight","typeLabel":"string"},"full_content":{"type":"string","description":"Full raw page content. Returned only if full_content.enable is true.","uniqueKey":"oneOf.0.search_results.items.[INDEX].results.items.[INDEX].full_content","typeLabel":"string"},"authors":{"type":"string","description":"Website name or author.","uniqueKey":"oneOf.0.search_results.items.[INDEX].results.items.[INDEX].authors","typeLabel":"string"},"time_published":{"type":"string","format":"date-time","description":"Publish time in ISO 8601.","uniqueKey":"oneOf.0.search_results.items.[INDEX].results.items.[INDEX].time_published","typeLabel":"string\u003cdate-time>"},"time_last_crawled":{"type":"string","format":"date-time","description":"Last crawl time in ISO 8601.","uniqueKey":"oneOf.0.search_results.items.[INDEX].results.items.[INDEX].time_last_crawled","typeLabel":"string\u003cdate-time>"},"favicon":{"type":"string","description":"The favicon URL of the result site.","uniqueKey":"oneOf.0.search_results.items.[INDEX].results.items.[INDEX].favicon","typeLabel":"string"},"cover_image":{"type":"object","description":"The page cover image. Returned only when `include_images` is true and the page has a cover image.","properties":{"url":{"type":"string","description":"The cover image URL.","uniqueKey":"oneOf.0.search_results.items.[INDEX].results.items.[INDEX].cover_image.url","typeLabel":"string"},"description":{"type":"string","description":"Text description of the cover image.","uniqueKey":"oneOf.0.search_results.items.[INDEX].results.items.[INDEX].cover_image.description","typeLabel":"string"}},"uniqueKey":"oneOf.0.search_results.items.[INDEX].results.items.[INDEX].cover_image","typeLabel":"object"},"images":{"type":"array","description":"In-body images of the page, in order of appearance. Returned only when `include_images` is true.","items":{"type":"object","properties":{"url":{"type":"string","description":"The image URL.","uniqueKey":"oneOf.0.search_results.items.[INDEX].results.items.[INDEX].images.items.[INDEX].url","typeLabel":"string"},"description":{"type":"string","description":"Text description of the image.","uniqueKey":"oneOf.0.search_results.items.[INDEX].results.items.[INDEX].images.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"oneOf.0.search_results.items.[INDEX].results.items.[INDEX].images.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.search_results.items.[INDEX].results.items.[INDEX].images","typeLabel":"object[]"}},"uniqueKey":"oneOf.0.search_results.items.[INDEX].results.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.search_results.items.[INDEX].results","typeLabel":"object[]"},"latency":{"type":"integer","description":"Search latency for this query in milliseconds.","uniqueKey":"oneOf.0.search_results.items.[INDEX].latency","typeLabel":"integer"}},"uniqueKey":"oneOf.0.search_results.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.search_results","typeLabel":"object[]"},"references":{"type":"array","description":"All search results as one numbered list, in the same order as `search_results`.","items":{"type":"object","description":"A numbered search result.","properties":{"num":{"type":"integer","description":"Reference index; cited in the answer as `[^N]`.","uniqueKey":"oneOf.0.references.items.[INDEX].num","typeLabel":"integer"},"title":{"type":"string","description":"The title of the result page.","uniqueKey":"oneOf.0.references.items.[INDEX].title","typeLabel":"string"},"url":{"type":"string","description":"The URL of the result page.","uniqueKey":"oneOf.0.references.items.[INDEX].url","typeLabel":"string"},"highlight":{"type":"string","description":"Query-relevant highlight snippets. Returned only if highlight.enable is true.","uniqueKey":"oneOf.0.references.items.[INDEX].highlight","typeLabel":"string"},"authors":{"type":"string","description":"Website name or author.","uniqueKey":"oneOf.0.references.items.[INDEX].authors","typeLabel":"string"},"time_published":{"type":"string","format":"date-time","description":"Publish time in ISO 8601.","uniqueKey":"oneOf.0.references.items.[INDEX].time_published","typeLabel":"string\u003cdate-time>"},"favicon":{"type":"string","description":"The favicon URL of the result site.","uniqueKey":"oneOf.0.references.items.[INDEX].favicon","typeLabel":"string"}},"uniqueKey":"oneOf.0.references.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.references","typeLabel":"object[]"},"meta":{"type":"object","description":"Metadata for the Answer response.","properties":{"usage":{"type":"object","description":"Token usage information for the Answer response. When `stream=true`, this is only present in the `usage` type chunk.","required":["num_search_queries","prompt_tokens","completion_tokens","total_tokens"],"properties":{"num_search_queries":{"type":"integer","description":"Total number of search queries executed across all sub-queries.","isRequired":true,"uniqueKey":"oneOf.0.meta.usage.num_search_queries","typeLabel":"integer"},"prompt_tokens":{"type":"integer","description":"Number of input tokens.","isRequired":true,"uniqueKey":"oneOf.0.meta.usage.prompt_tokens","typeLabel":"integer"},"completion_tokens":{"type":"integer","description":"Number of output tokens.","isRequired":true,"uniqueKey":"oneOf.0.meta.usage.completion_tokens","typeLabel":"integer"},"total_tokens":{"type":"integer","description":"Total tokens used (prompt_tokens + completion_tokens).","isRequired":true,"uniqueKey":"oneOf.0.meta.usage.total_tokens","typeLabel":"integer"}},"uniqueKey":"oneOf.0.meta.usage","typeLabel":"object"},"latency":{"type":"integer","description":"Total request latency in milliseconds.","uniqueKey":"oneOf.0.meta.latency","typeLabel":"integer"}},"uniqueKey":"oneOf.0.meta","typeLabel":"object"},"warning":{"oneOf":[{"type":"string","description":"Warning message, if any.","uniqueKey":"oneOf.0.warning.oneOf.0","typeLabel":"string"},{"type":"null","description":"Warning message, if any.","uniqueKey":"oneOf.0.warning.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.warning","typeLabel":"string | null"}},"uniqueKey":"oneOf.0","typeLabel":"Non-streaming · object"},{"type":"object","title":"Streaming","description":"A streaming chunk of an Answer response. Returned when `stream=true`. The `type` field indicates the chunk kind: `queries`, `search_done`, `content`, `finish`, `usage`.","required":["request_id","object","created","model"],"properties":{"request_id":{"type":"string","description":"The unique identifier for this request.","isRequired":true,"uniqueKey":"oneOf.1.request_id","typeLabel":"string"},"object":{"type":"string","enum":["chat.completion.chunk"],"description":"The object type, always `chat.completion.chunk` for streaming responses.","isRequired":true,"uniqueKey":"oneOf.1.object","typeLabel":"enum\u003cstring>"},"created":{"type":"number","description":"Unix timestamp (in seconds) of when the chunk was created.","isRequired":true,"uniqueKey":"oneOf.1.created","typeLabel":"number"},"model":{"type":"string","description":"The model used for this completion.","isRequired":true,"uniqueKey":"oneOf.1.model","typeLabel":"string"},"type":{"type":"string","enum":["queries","search_done","content","finish","usage"],"description":"The type of this streaming chunk. The `queries` type contains the auto-generated sub-queries.","uniqueKey":"oneOf.1.type","typeLabel":"enum\u003cstring>"},"queries":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.queries.items.[INDEX]","typeLabel":"string"},"description":"Auto-generated sub-queries. Present only in `queries` type chunks.","uniqueKey":"oneOf.1.queries","typeLabel":"string[]"},"choices":{"type":"array","items":{"type":"object","description":"A single choice in a streaming chunk.","properties":{"index":{"type":"integer","description":"The index of this choice. Usually 0.","uniqueKey":"oneOf.1.choices.items.[INDEX].index","typeLabel":"integer"},"delta":{"type":"object","description":"Incremental content in a streaming chunk. Contains only the new fields for this chunk.","properties":{"role":{"type":"string","enum":["assistant"],"description":"The role. Typically included in the first chunk.","uniqueKey":"oneOf.1.choices.items.[INDEX].delta.role","typeLabel":"enum\u003cstring>"},"content":{"type":"string","description":"Incremental text content.","uniqueKey":"oneOf.1.choices.items.[INDEX].delta.content","typeLabel":"string"},"tool_calls":{"type":"array","items":{"type":"object","description":"Incremental tool call data in a streaming chunk. The first chunk for a tool call includes `id`, `type`, and `function.name`. Subsequent chunks append to `function.arguments`.","properties":{"index":{"type":"number","description":"The index of this tool call in the tool_calls array.","uniqueKey":"oneOf.1.choices.items.[INDEX].delta.tool_calls.items.[INDEX].index","typeLabel":"number"},"id":{"type":"string","description":"The tool call ID. Only present in the first chunk for this tool call.","uniqueKey":"oneOf.1.choices.items.[INDEX].delta.tool_calls.items.[INDEX].id","typeLabel":"string"},"type":{"type":"string","enum":["function"],"description":"The type of tool call.","uniqueKey":"oneOf.1.choices.items.[INDEX].delta.tool_calls.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"function":{"type":"object","description":"Incremental function call data.","properties":{"name":{"type":"string","description":"The function name. Only present in the first chunk for this tool call.","uniqueKey":"oneOf.1.choices.items.[INDEX].delta.tool_calls.items.[INDEX].function.name","typeLabel":"string"},"arguments":{"type":"string","description":"Incremental JSON string of the function arguments. Concatenate across chunks to build the complete arguments.","uniqueKey":"oneOf.1.choices.items.[INDEX].delta.tool_calls.items.[INDEX].function.arguments","typeLabel":"string"}},"uniqueKey":"oneOf.1.choices.items.[INDEX].delta.tool_calls.items.[INDEX].function","typeLabel":"object"},"thought_signature":{"type":"string","description":"Encrypted reasoning state, replayed verbatim.","uniqueKey":"oneOf.1.choices.items.[INDEX].delta.tool_calls.items.[INDEX].thought_signature","typeLabel":"string"}},"uniqueKey":"oneOf.1.choices.items.[INDEX].delta.tool_calls.items.[INDEX]","typeLabel":"object"},"description":"Incremental tool call data.","uniqueKey":"oneOf.1.choices.items.[INDEX].delta.tool_calls","typeLabel":"object[]"}},"uniqueKey":"oneOf.1.choices.items.[INDEX].delta","typeLabel":"object"},"finish_reason":{"oneOf":[{"type":"string","enum":["stop","length","tool_calls","content_filter","error",null],"description":"The reason generation stopped. `null` for intermediate chunks; set in the `finish` chunk.","uniqueKey":"oneOf.1.choices.items.[INDEX].finish_reason.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["stop","length","tool_calls","content_filter","error",null],"description":"The reason generation stopped. `null` for intermediate chunks; set in the `finish` chunk.","uniqueKey":"oneOf.1.choices.items.[INDEX].finish_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.choices.items.[INDEX].finish_reason","typeLabel":"enum\u003cstring> | null"},"logprobs":{"oneOf":[{"type":"object","description":"Log probability information for the output tokens. Present only when `logprobs` is `true`, otherwise `null`.","properties":{"content":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"token":{"type":"string","description":"The token text.","uniqueKey":"oneOf.1.choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].token","typeLabel":"string"},"logprob":{"type":"number","description":"The log probability of this token.","uniqueKey":"oneOf.1.choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].logprob","typeLabel":"number"},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer","uniqueKey":"oneOf.1.choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].bytes.oneOf.0.items.[INDEX]","typeLabel":"integer"},"description":"UTF-8 byte representation.","uniqueKey":"oneOf.1.choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].bytes.oneOf.0","typeLabel":"integer[]"},{"type":"null","items":{"type":"integer"},"description":"UTF-8 byte representation.","uniqueKey":"oneOf.1.choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].bytes.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].bytes","typeLabel":"integer[] | null"},"top_logprobs":{"type":"array","description":"The top candidate tokens at this position, same structure.","items":{"type":"object","uniqueKey":"oneOf.1.choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].top_logprobs.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX].top_logprobs","typeLabel":"object[]"}},"uniqueKey":"oneOf.1.choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"token":{"type":"string","description":"The token text."},"logprob":{"type":"number","description":"The log probability of this token."},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer"},"description":"UTF-8 byte representation."},{"type":"null","items":{"type":"integer"},"description":"UTF-8 byte representation."}]},"top_logprobs":{"type":"array","description":"The top candidate tokens at this position, same structure.","items":{"type":"object"}}}},"uniqueKey":"oneOf.1.choices.items.[INDEX].logprobs.oneOf.0.content.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.choices.items.[INDEX].logprobs.oneOf.0.content","typeLabel":"object[] | null"}},"uniqueKey":"oneOf.1.choices.items.[INDEX].logprobs.oneOf.0","typeLabel":"object"},{"type":"null","description":"Log probability information for the output tokens. Present only when `logprobs` is `true`, otherwise `null`.","properties":{"content":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"token":{"type":"string","description":"The token text."},"logprob":{"type":"number","description":"The log probability of this token."},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer"},"description":"UTF-8 byte representation."},{"type":"null","items":{"type":"integer"},"description":"UTF-8 byte representation."}]},"top_logprobs":{"type":"array","description":"The top candidate tokens at this position, same structure.","items":{"type":"object"}}}}},{"type":"null","items":{"type":"object","properties":{"token":{"type":"string","description":"The token text."},"logprob":{"type":"number","description":"The log probability of this token."},"bytes":{"oneOf":[{"type":"array","items":{"type":"integer"},"description":"UTF-8 byte representation."},{"type":"null","items":{"type":"integer"},"description":"UTF-8 byte representation."}]},"top_logprobs":{"type":"array","description":"The top candidate tokens at this position, same structure.","items":{"type":"object"}}}}}]}},"uniqueKey":"oneOf.1.choices.items.[INDEX].logprobs.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.choices.items.[INDEX].logprobs","typeLabel":"object | null"}},"uniqueKey":"oneOf.1.choices.items.[INDEX]","typeLabel":"object"},"description":"Incremental choices. Present in `content` and `finish` chunks.","uniqueKey":"oneOf.1.choices","typeLabel":"object[]"},"search_result_count":{"type":"integer","description":"Total number of search results returned. Present only in `search_done` chunks.","uniqueKey":"oneOf.1.search_result_count","typeLabel":"integer"},"search_results":{"type":"array","description":"Search results grouped by query. Present in `search_done` chunks.","items":{"type":"object","description":"A group of search results for a single sub-query.","properties":{"query":{"type":"string","description":"The sub-query that produced these results.","uniqueKey":"oneOf.1.search_results.items.[INDEX].query","typeLabel":"string"},"results":{"type":"array","description":"The search results for this sub-query.","items":{"type":"object","description":"A single search result.","properties":{"title":{"type":"string","description":"The title of the result page.","uniqueKey":"oneOf.1.search_results.items.[INDEX].results.items.[INDEX].title","typeLabel":"string"},"url":{"type":"string","description":"The URL of the result page.","uniqueKey":"oneOf.1.search_results.items.[INDEX].results.items.[INDEX].url","typeLabel":"string"},"highlight":{"type":"string","description":"Query-relevant highlight snippets. Returned only if highlight.enable is true.","uniqueKey":"oneOf.1.search_results.items.[INDEX].results.items.[INDEX].highlight","typeLabel":"string"},"full_content":{"type":"string","description":"Full raw page content. Returned only if full_content.enable is true.","uniqueKey":"oneOf.1.search_results.items.[INDEX].results.items.[INDEX].full_content","typeLabel":"string"},"authors":{"type":"string","description":"Website name or author.","uniqueKey":"oneOf.1.search_results.items.[INDEX].results.items.[INDEX].authors","typeLabel":"string"},"time_published":{"type":"string","format":"date-time","description":"Publish time in ISO 8601.","uniqueKey":"oneOf.1.search_results.items.[INDEX].results.items.[INDEX].time_published","typeLabel":"string\u003cdate-time>"},"time_last_crawled":{"type":"string","format":"date-time","description":"Last crawl time in ISO 8601.","uniqueKey":"oneOf.1.search_results.items.[INDEX].results.items.[INDEX].time_last_crawled","typeLabel":"string\u003cdate-time>"},"favicon":{"type":"string","description":"The favicon URL of the result site.","uniqueKey":"oneOf.1.search_results.items.[INDEX].results.items.[INDEX].favicon","typeLabel":"string"},"cover_image":{"type":"object","description":"The page cover image. Returned only when `include_images` is true and the page has a cover image.","properties":{"url":{"type":"string","description":"The cover image URL.","uniqueKey":"oneOf.1.search_results.items.[INDEX].results.items.[INDEX].cover_image.url","typeLabel":"string"},"description":{"type":"string","description":"Text description of the cover image.","uniqueKey":"oneOf.1.search_results.items.[INDEX].results.items.[INDEX].cover_image.description","typeLabel":"string"}},"uniqueKey":"oneOf.1.search_results.items.[INDEX].results.items.[INDEX].cover_image","typeLabel":"object"},"images":{"type":"array","description":"In-body images of the page, in order of appearance. Returned only when `include_images` is true.","items":{"type":"object","properties":{"url":{"type":"string","description":"The image URL.","uniqueKey":"oneOf.1.search_results.items.[INDEX].results.items.[INDEX].images.items.[INDEX].url","typeLabel":"string"},"description":{"type":"string","description":"Text description of the image.","uniqueKey":"oneOf.1.search_results.items.[INDEX].results.items.[INDEX].images.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"oneOf.1.search_results.items.[INDEX].results.items.[INDEX].images.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.search_results.items.[INDEX].results.items.[INDEX].images","typeLabel":"object[]"}},"uniqueKey":"oneOf.1.search_results.items.[INDEX].results.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.search_results.items.[INDEX].results","typeLabel":"object[]"},"latency":{"type":"integer","description":"Search latency for this query in milliseconds.","uniqueKey":"oneOf.1.search_results.items.[INDEX].latency","typeLabel":"integer"}},"uniqueKey":"oneOf.1.search_results.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.search_results","typeLabel":"object[]"},"references":{"type":"array","description":"All search results as one numbered list, in the same order as `search_results`. Present in `search_done` chunks.","items":{"type":"object","description":"A numbered search result.","properties":{"num":{"type":"integer","description":"Reference index; cited in the answer as `[^N]`.","uniqueKey":"oneOf.1.references.items.[INDEX].num","typeLabel":"integer"},"title":{"type":"string","description":"The title of the result page.","uniqueKey":"oneOf.1.references.items.[INDEX].title","typeLabel":"string"},"url":{"type":"string","description":"The URL of the result page.","uniqueKey":"oneOf.1.references.items.[INDEX].url","typeLabel":"string"},"highlight":{"type":"string","description":"Query-relevant highlight snippets. Returned only if highlight.enable is true.","uniqueKey":"oneOf.1.references.items.[INDEX].highlight","typeLabel":"string"},"authors":{"type":"string","description":"Website name or author.","uniqueKey":"oneOf.1.references.items.[INDEX].authors","typeLabel":"string"},"time_published":{"type":"string","format":"date-time","description":"Publish time in ISO 8601.","uniqueKey":"oneOf.1.references.items.[INDEX].time_published","typeLabel":"string\u003cdate-time>"},"favicon":{"type":"string","description":"The favicon URL of the result site.","uniqueKey":"oneOf.1.references.items.[INDEX].favicon","typeLabel":"string"}},"uniqueKey":"oneOf.1.references.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.references","typeLabel":"object[]"},"meta":{"type":"object","description":"Metadata for the Answer response.","properties":{"usage":{"type":"object","description":"Token usage information for the Answer response. When `stream=true`, this is only present in the `usage` type chunk.","required":["num_search_queries","prompt_tokens","completion_tokens","total_tokens"],"properties":{"num_search_queries":{"type":"integer","description":"Total number of search queries executed across all sub-queries.","isRequired":true,"uniqueKey":"oneOf.1.meta.usage.num_search_queries","typeLabel":"integer"},"prompt_tokens":{"type":"integer","description":"Number of input tokens.","isRequired":true,"uniqueKey":"oneOf.1.meta.usage.prompt_tokens","typeLabel":"integer"},"completion_tokens":{"type":"integer","description":"Number of output tokens.","isRequired":true,"uniqueKey":"oneOf.1.meta.usage.completion_tokens","typeLabel":"integer"},"total_tokens":{"type":"integer","description":"Total tokens used (prompt_tokens + completion_tokens).","isRequired":true,"uniqueKey":"oneOf.1.meta.usage.total_tokens","typeLabel":"integer"}},"uniqueKey":"oneOf.1.meta.usage","typeLabel":"object"},"latency":{"type":"integer","description":"Total request latency in milliseconds.","uniqueKey":"oneOf.1.meta.latency","typeLabel":"integer"}},"uniqueKey":"oneOf.1.meta","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"Streaming · object"}],"uniqueKey":"","typeLabel":"Non-streaming · object | Streaming · object"},"examples":{"nonStreaming":{"title":"nonStreaming","value":{"request_id":"20260403120000001ABCDE12345","model":"anthropic/claude-sonnet-4.6","choices":[{"index":0,"finish_reason":"stop","message":{"role":"assistant","content":"## Global AI Chip Market in 2026: Latest Trends \u0026 Major Players\n\n**The AI chip market was valued at approximately $102.9 billion in 2025, and is projected to grow at a 29.4% CAGR to $1.35 trillion by 2035.** NVIDIA continues to dominate with over 80% data center market share, but the custom ASIC chip wave is accelerating challenges to its position.[^1][^6]\n\n### Major Players Overview\n\n| Company | Core Strength | Key 2026 Developments |\n|---|---|---|\n| **NVIDIA** | Data center GPU, >80% market share | Blackwell/Rubin roadmap, $1T revenue target |\n| **Broadcom** | Custom ASIC chips | Expected to capture 60% of custom AI chip market by 2027 |\n| **AMD** | GPU alternative | MI450 chip volume ramp in H2, OpenAI/Meta large orders |\n| **Intel** | CPU + foundry | Gaudi 3 launch, Xeon 6 selected for Nvidia DGX systems |\n| **Google** | In-house TPU (Ironwood) | Surging HBM demand |\n| **Amazon AWS** | Trainium series | Anthropic training Claude on over 1M Trainium2 chips |"}}],"queries":["2026 global AI chip market trends","AI chip market share 2026","top AI chip manufacturers 2026","NVIDIA AI chip dominance 2026","AMD AI chip strategy 2026"],"search_results":[{"query":"2026 global AI chip market trends","results":[{"title":"AI Chip Market Size to Exceed USD 1354.35 Billion by 2035","url":"http://globenewswire.com/news-release/2026/04/01/...","highlight":"According to the SNS Insider, The AI Chip Market Size was valued at USD 102.89 Billion in 2025 and is expected to reach USD 1354.35 Billion by 2035...","full_content":"","authors":"SNS Insider pvt ltd","time_published":"2026-04-01T07:30:00Z","time_last_crawled":"2026-04-02T03:18:46Z"}],"latency":69},{"query":"AI chip market share 2026","results":[{"title":"Another result title...","url":"https://example.com/...","highlight":"...","full_content":"","authors":"...","time_published":"2026-03-28T00:00:00Z","time_last_crawled":"2026-03-29T12:00:00Z"}],"latency":72}],"references":[{"num":1,"title":"AI Chip Market Size to Exceed USD 1354.35 Billion by 2035","url":"http://globenewswire.com/news-release/2026/04/01/...","highlight":"According to the SNS Insider, The AI Chip Market Size was valued at USD 102.89 Billion in 2025 and is expected to reach USD 1354.35 Billion by 2035...","authors":"SNS Insider pvt ltd","time_published":"2026-04-01T07:30:00Z"},{"num":2,"title":"Another result title...","url":"https://example.com/...","highlight":"...","authors":"...","time_published":"2026-03-28T00:00:00Z"}],"meta":{"usage":{"num_search_queries":20,"prompt_tokens":35351,"completion_tokens":942,"total_tokens":36293},"latency":24048}}},"streamQueries":{"title":"streamQueries","value":{"type":"queries","request_id":"20260403120000002XYZAB67890","object":"chat.completion.chunk","created":1775361600,"model":"anthropic/claude-sonnet-4.6","queries":["latest quantum computing developments 2026","quantum computing breakthroughs 2026"]}},"streamSearchDone":{"title":"streamSearchDone","value":{"type":"search_done","request_id":"20260403120000002XYZAB67890","object":"chat.completion.chunk","created":1775361600,"model":"anthropic/claude-sonnet-4.6","search_result_count":1,"search_results":[{"query":"latest quantum computing developments 2026","results":[{"title":"Stocks to Gain From Quantum Computing in 2025","url":"https://www.nasdaq.com/articles/...","highlight":"This year has seen quantum computing being pushed from lab interests toward practical deployments...","full_content":"","authors":"","time_published":"2026-03-15T00:00:00Z","time_last_crawled":"2026-03-16T12:00:00Z"}],"latency":65}],"references":[{"num":1,"title":"Stocks to Gain From Quantum Computing in 2025","url":"https://www.nasdaq.com/articles/...","highlight":"This year has seen quantum computing being pushed from lab interests toward practical deployments...","authors":"","time_published":"2026-03-15T00:00:00Z"}]}},"streamContent":{"title":"streamContent","value":{"type":"content","request_id":"20260403120000002XYZAB67890","object":"chat.completion.chunk","created":1775361600,"model":"anthropic/claude-sonnet-4.6","choices":[{"index":0,"delta":{"content":"**Quantum computing"},"finish_reason":null}]}},"streamFinish":{"title":"streamFinish","value":{"type":"finish","request_id":"20260403120000002XYZAB67890","object":"chat.completion.chunk","created":1775361600,"model":"anthropic/claude-sonnet-4.6","choices":[{"index":0,"delta":{},"finish_reason":"stop"}]}},"streamUsage":{"title":"streamUsage","value":{"type":"usage","request_id":"20260403120000002XYZAB67890","object":"chat.completion.chunk","created":1775361600,"model":"anthropic/claude-sonnet-4.6","meta":{"usage":{"num_search_queries":2,"prompt_tokens":2664,"completion_tokens":78,"total_tokens":2742},"latency":3565}}}},"exampleType":"examples"}},"exampleType":"examples"},"4cd1146b-7b00-4f0b-9d59-a4bad2988be2":{"description":"Missing parameter messages — Returned when a required parameter is missing.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Business status code. Non-zero values indicate an error.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","description":"A message describing the error.","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"request_id":{"type":"string","description":"Unique identifier for the request.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["code","msg","request_id"],"uniqueKey":"","typeLabel":"object"},"example":{"code":400,"msg":"Missing parameter messages","request_id":"req_abc123def456"},"examples":{"Example":{"title":"Example","value":{"code":400,"msg":"Missing parameter messages","request_id":"req_abc123def456"}}},"exampleType":"examples"}},"exampleType":"examples"},"340de03a-21c7-485e-a445-a9a2e424f3d6":{"description":"Invalid API Key — Returned when the API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Business status code. Non-zero values indicate an error.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","description":"A message describing the error.","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"request_id":{"type":"string","description":"Unique identifier for the request.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["code","msg","request_id"],"uniqueKey":"","typeLabel":"object"},"example":{"code":401,"msg":"Invalid API Key","request_id":"req_abc123def456"},"examples":{"Example":{"title":"Example","value":{"code":401,"msg":"Invalid API Key","request_id":"req_abc123def456"}}},"exampleType":"examples"}},"exampleType":"examples"},"471fac55-d469-4ee8-be96-886877875f67":{"description":"Insufficient balance in account — Returned when the account balance is insufficient to complete the request.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Business status code. Non-zero values indicate an error.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","description":"A message describing the error.","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"request_id":{"type":"string","description":"Unique identifier for the request.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["code","msg","request_id"],"uniqueKey":"","typeLabel":"object"},"example":{"code":403,"msg":"Insufficient balance in account","request_id":"req_abc123def456"},"examples":{"Example":{"title":"Example","value":{"code":403,"msg":"Insufficient balance in account","request_id":"req_abc123def456"}}},"exampleType":"examples"}},"exampleType":"examples"},"e7c687e3-243f-49a3-9cbd-a3be6aa483a4":{"description":"Exceeding the rate limit — Returned when the request exceeds the configured rate limit.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Business status code. Non-zero values indicate an error.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","description":"A message describing the error.","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"request_id":{"type":"string","description":"Unique identifier for the request.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["code","msg","request_id"],"uniqueKey":"","typeLabel":"object"},"example":{"code":429,"msg":"Exceeding the rate limit","request_id":"req_abc123def456"},"examples":{"Example":{"title":"Example","value":{"code":429,"msg":"Exceeding the rate limit","request_id":"req_abc123def456"}}},"exampleType":"examples"}},"exampleType":"examples"},"3127302c-a17b-45d5-b56e-19a31c464a28":{"description":"Internal error — Returned when an unexpected server-side error occurs.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Business status code. Non-zero values indicate an error.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","description":"A message describing the error.","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"request_id":{"type":"string","description":"Unique identifier for the request.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["code","msg","request_id"],"uniqueKey":"","typeLabel":"object"},"example":{"code":500,"msg":"Internal error","request_id":"req_abc123def456"},"examples":{"Example":{"title":"Example","value":{"code":500,"msg":"Internal error","request_id":"req_abc123def456"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"3641a170-0933-482a-8caf-16197fc63f1c":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Bearer token used for request authentication. Alternatively, you can send the API key in the `x-api-key` header. Note: A payment method is required to use the API.","scopes":[],"schemeName":"bearerAuth"}},"7fec3a23-89db-45ea-998a-1e809310f48b":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key used for request authentication. Alternatively, you can send the key as a Bearer token in the `Authorization` header. Note: A payment method is required to use the API.","scopes":[],"schemeName":"apiKeyAuth"}}},"servers":{"5fd65740-f929-41da-9bbb-1cbf6f244b41":{"url":"https://api.octen.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Bearer token used for request authentication. Alternatively, you can send the API key in the `x-api-key` header. Note: A payment method is required to use the API.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer token used for request authentication. Alternatively, you can send the API key in the `x-api-key` header. Note: A payment method is required to use the API.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key used for request authentication. Alternatively, you can send the key as a Bearer token in the `Authorization` header. Note: A payment method is required to use the API.","scopes":[],"schemeName":"apiKeyAuth"},"schema":{"title":"x-api-key","type":"string","description":"API key used for request authentication. Alternatively, you can send the key as a Bearer token in the `Authorization` header. Note: A payment method is required to use the API.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"x-api-key"}],"title":"apiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"octen-ai","siteName":"Octen Docs","title":"Answer API Reference - Octen Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-06T11:48:57.896Z","originalFileLocation":"api-reference/answer.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Automatically decomposes user messages into multiple sub-queries, performs searches, and synthesizes results using an LLM.\">\u003cmeta data-mint-head name=\"keywords\" content=\"octen,octen.ai,ai search infrastructure,real-time web search,search api,ai search engine,search for ai agents,retrieval layer for llms,llm grounding,real-time indexing,low latency retrieval,agentic search engine,live web data,sota embedding model,octen-8b,ai search api,web search api,api,search,ai,llms\">\u003cmeta data-mint-head name=\"application-name\" content=\"Octen Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/octen-ai/XhyhRRvOpTIxrcMy/_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/octen-ai/XhyhRRvOpTIxrcMy/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/octen-ai/XhyhRRvOpTIxrcMy/_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/octen-ai/XhyhRRvOpTIxrcMy/_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/octen-ai/XhyhRRvOpTIxrcMy/_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/octen-ai/XhyhRRvOpTIxrcMy/_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/octen-ai/XhyhRRvOpTIxrcMy/_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/octen-ai/XhyhRRvOpTIxrcMy/_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/octen-ai/XhyhRRvOpTIxrcMy/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Answer API Reference - Octen Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"The search infrastructure for AI. Real-time web search foundation that empowers LLMs to reason with the world\u0026#x27;s latest information. Engineered for AI Agents, Copilots, and Chatbots with real-time indexing, sub-100ms latency, and high reliability.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Octen Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.octen.ai/api-reference/answer\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://octen.ai/_next/static/media/octen-cover.dc74905e.png\">\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=\"Answer API Reference - Octen Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The search infrastructure for AI. Real-time web search foundation that empowers LLMs to reason with the world\u0026#x27;s latest information. Engineered for AI Agents, Copilots, and Chatbots with real-time indexing, sub-100ms latency, and high reliability.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://octen.ai/_next/static/media/octen-cover.dc74905e.png\">\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/octen-ai/XhyhRRvOpTIxrcMy/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Octen Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#039855\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"WomFSLfAsZAC_vWB_WcRDmkF_IPlrOw-VHZROUA1LFE\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.octen.ai/api-reference/answer\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/answer.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.octen.ai/#organization\",\"name\":\"Octen Docs\",\"url\":\"https://docs.octen.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/octen-ai/7a_UtFqtHVRx7z9z/logo/logo.svg?fit=max\u0026auto=format\u0026n=7a_UtFqtHVRx7z9z\u0026q=85\u0026s=26d2a863c023b0211afa7c6c0bce2d8e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.octen.ai#website\",\"name\":\"Octen Docs\",\"url\":\"https://docs.octen.ai\",\"publisher\":{\"@id\":\"https://docs.octen.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.octen.ai/api-reference/answer#webpage\",\"url\":\"https://docs.octen.ai/api-reference/answer\",\"name\":\"Answer API Reference\",\"description\":\"Automatically decomposes user messages into multiple sub-queries, performs searches, and synthesizes results using an LLM.\",\"dateModified\":\"2026-11-06T11:48:57.896Z\",\"isPartOf\":{\"@id\":\"https://docs.octen.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.octen.ai/api-reference/answer#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.octen.ai/api-reference/answer#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Octen Docs\",\"item\":\"https://docs.octen.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Answer API Reference\",\"item\":\"https://docs.octen.ai/api-reference/answer\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.octen.ai/api-reference/answer#apireference\",\"headline\":\"Answer API Reference\",\"name\":\"Answer API Reference\",\"description\":\"Automatically decomposes user messages into multiple sub-queries, performs searches, and synthesizes results using an LLM.\",\"url\":\"https://docs.octen.ai/api-reference/answer\",\"mainEntityOfPage\":{\"@id\":\"https://docs.octen.ai/api-reference/answer#webpage\"},\"image\":\"https://octen.ai/_next/static/media/octen-cover.dc74905e.png\",\"dateModified\":\"2026-11-06T11:48:57.896Z\",\"publisher\":{\"@id\":\"https://docs.octen.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.octen.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Octen Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Octen Docs","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/overview/welcome"}]},{"tab":"API Reference","groups":[{"group":"APIs","pages":[{"group":"Octen Pulse","pages":[{"title":"Pulse Search API Reference","deprecated":null,"version":null,"sidebarTitle":"Pulse Search","openapi":"/api-reference/openapi.json post /pulse-search","href":"/api-reference/pulse-search"}]},{"group":"Octen Fast","pages":[{"title":"Broad Search API Reference","deprecated":null,"version":null,"sidebarTitle":"Broad Search","openapi":"/api-reference/openapi.json post /broad-search","href":"/api-reference/broad-search"},{"title":"Web Search API Reference","deprecated":null,"version":null,"sidebarTitle":"Web Search","openapi":"/api-reference/openapi.json post /search","href":"/api-reference/search"},{"title":"Image Search API Reference","deprecated":null,"version":null,"sidebarTitle":"Image Search","openapi":"/api-reference/openapi.json post /image-search","href":"/api-reference/image-search"},{"title":"Video Search API Reference","deprecated":null,"version":null,"sidebarTitle":"Video Search","openapi":"/api-reference/openapi.json post /video-search","href":"/api-reference/video-search"}]},{"group":"Octen Premier","pages":[{"title":"News Search API Reference","deprecated":null,"version":null,"sidebarTitle":"News Search","openapi":"/api-reference/openapi.json post /news-search","href":"/api-reference/news-search"},{"title":"Business Search API Reference","deprecated":null,"version":null,"sidebarTitle":"Business Search","openapi":"/api-reference/openapi.json post /business-search","href":"/api-reference/business-search"},{"title":"Place Search API Reference","deprecated":null,"version":null,"sidebarTitle":"Place Search","openapi":"/api-reference/openapi.json post /place-search","href":"/api-reference/place-search"}]},{"title":"Extract API Reference","deprecated":null,"version":null,"sidebarTitle":"Extract","openapi":"/api-reference/openapi.json post /extract","href":"/api-reference/extract"},{"title":"Embedding API Reference","deprecated":null,"version":null,"sidebarTitle":"Embedding","openapi":"/api-reference/openapi.json post /embedding","href":"/api-reference/embedding"},{"title":"VL Embedding API Reference","description":"Converts multimodal input (text, images, and videos) into vector representations. Supports a single fused vector across modalities, independent per-element vectors, configurable output dimensions, video frame sampling control, and a custom task instruction.","deprecated":null,"version":null,"sidebarTitle":"VL Embedding","openapi":"/api-reference/openapi.json post /vl-embedding","href":"/api-reference/vl-embedding"}]},{"group":"Applications","pages":[{"title":"Answer API Reference","deprecated":null,"version":null,"sidebarTitle":"Answer","openapi":"/api-reference/openapi.json post /answer","href":"/api-reference/answer"},{"title":"Search Agent API Reference","description":"Runs a Search Agent task that answers a question with cited sources, as a Markdown answer or as JSON that matches your schema.","deprecated":null,"version":null,"sidebarTitle":"Search Agent","openapi":"/api-reference/openapi.json post /v1/agent","href":"/api-reference/post-search-agent"},{"title":"Search Agent Result API Reference","deprecated":null,"version":null,"sidebarTitle":"Search Agent Result","openapi":"/api-reference/openapi.json get /v1/agent/{task_id}","href":"/api-reference/get-search-agent"},{"title":"Deep Research API Reference","deprecated":null,"version":null,"sidebarTitle":"Deep Research","openapi":"/api-reference/openapi.json post /v1/research","href":"/api-reference/deep-research"},{"title":"Grounded Generation API Reference","deprecated":null,"version":null,"sidebarTitle":"Grounded Generation","openapi":"/api-reference/openapi.json post /v1/grounded-generation","href":"/api-reference/post-grounded-generation"},{"title":"Generation Result API Reference","deprecated":null,"version":null,"sidebarTitle":"Generation Result","openapi":"/api-reference/openapi.json get /v1/grounded-generation/{generation_id}","href":"/api-reference/get-grounded-generation"},{"group":"Auto Search","root":{"title":"LLM Chat (OpenAI-Compatible) API Reference","deprecated":null,"version":null,"sidebarTitle":"LLM Chat (OpenAI-Compatible)","openapi":"/api-reference/openapi.json post /v1/chat/completions","href":"/api-reference/chat-completions"},"pages":[{"title":"LLM Chat (OpenAI-Compatible) API Reference","deprecated":null,"version":null,"sidebarTitle":"LLM Chat (OpenAI-Compatible)","openapi":"/api-reference/openapi.json post /v1/chat/completions","href":"/api-reference/chat-completions"},{"title":"LLM Chat (Anthropic-Compatible) API Reference","deprecated":null,"version":null,"sidebarTitle":"LLM Chat (Anthropic-Compatible)","openapi":"/api-reference/openapi.json post /v1/messages","href":"/api-reference/messages"},{"title":"Image Generation API Reference","deprecated":null,"version":null,"sidebarTitle":"Image Generation","openapi":"/api-reference/openapi.json post /v1/images/generations","href":"/api-reference/images-generations"},{"title":"Video Generation API Reference","deprecated":null,"version":null,"sidebarTitle":"Video Generation","openapi":"/api-reference/openapi.json post /v1/videos","href":"/api-reference/post-video"},{"title":"Video Download API Reference","deprecated":null,"version":null,"sidebarTitle":"Video Download","openapi":"/api-reference/openapi.json get /v1/videos/{id}","href":"/api-reference/get-video"}]}]}]}]},"basePath":"","title":"Answer API Reference - Octen Docs","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C-hEh3I2.js","utils-CnF4QiUD.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C7PVNbel.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-8ytevL2A.js","snippetPresets-BT1alx3v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BLXC0i_W.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CyLIGI9_.js","shallow-DC0lGVIW.js","getApiPlaygroundDisplay-CgDQ85tN.js","CodeSnippet-6-I-Gpv9.js","CodeSnippets-BAk1kDdu.js","Page-C945cI-W.js","getPastedJson-B276RuWN.js","icon-BqP8etTm.js","MethodPill-DM6sbxG1.js","DuplicateIcon-PyJglOaE.js","createIcon-CMeOMAc_.js","DynamicMarkdown-BoyYAA8K.js","SectionHeading-DAYv3gvZ.js","axios-vUo_bRtp.js","Markdown-BhTTmazV.js","clsx-CR-RHrVC.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CBUH0-zX.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BmARFYNC.js"]}