OpenAI-compatible Responses endpoint for stateless text generation and
function-tool workflows. Streaming and non-streaming requests use the same
authentication, model access, usage accounting, and billing as chat
completions.
This endpoint is stateless. It does not store response objects or support
background responses, conversations, or previous_response_id. Send the
complete request state in input on every call.
A text prompt or an array of Responses input items. Message items,
function_call, and function_call_output are supported. Vision-capable
models also accept URL or inline-data input_image parts; the URL must be
http://, https://, or a base64 data: URL (other schemes reject with
invalid_image_url).
string
System or developer instructions for this response.
boolean
default:"false"
When true, returns typed Server-Sent Events such as
response.output_text.delta and response.completed.
integer
Maximum output tokens. The gateway caps this at the model’s
max_output_length.
array
Function tools the model may call. Hosted tools such as web search, file
search, computer use, code interpreter, shell, and MCP are not supported.
string | object
default:"auto"
Function-tool selection using the OpenAI Responses shape.
boolean
Allow the model to return multiple function calls in one response.
object
Reasoning configuration. reasoning.effort is forwarded to compatible
models.
object
Text output configuration. text.format accepts text, JSON object, and JSON
schema formats on models that support structured outputs.
boolean
default:"false"
Must be false when provided. Cogito does not persist response objects.
The gateway returns 400 unsupported_feature before inference for:
store: true, background: true, previous_response_id, conversation,
hosted prompt, and max_tool_calls
automatic truncation (truncation: "auto")
hosted or custom non-function tools and their history items
file, audio, and video input; image file IDs; and output logprobs
Only POST /v1/responses is exposed. Retrieve, delete, input-items, and cancel
routes are not available.
Streaming
Streaming responses preserve the Responses API’s typed SSE events. Usage is
read from the terminal response event for billing. Provider-private extension
fields are removed before events leave the public gateway.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Cogito","description":"Open-source LLM inference on AWS Trainium and NVIDIA Blackwell. 14× faster than typical providers.","colors":{"primary":"#2552f4","light":"#5b74ff","dark":"#2552f4"},"logo":{"light":"https://mintcdn.com/cogito/7cR4RRTMOajaVYwc/logo/cogito-light.svg?fit=max\u0026auto=format\u0026n=7cR4RRTMOajaVYwc\u0026q=85\u0026s=376eb96d18e61de326f23e059ca94e87","dark":"https://mintcdn.com/cogito/7cR4RRTMOajaVYwc/logo/cogito-dark.svg?fit=max\u0026auto=format\u0026n=7cR4RRTMOajaVYwc\u0026q=85\u0026s=d669e68b4dfe54f06481cd982ff5d2e4"},"favicon":"https://mintcdn.com/cogito/7cR4RRTMOajaVYwc/favicon.svg?fit=max\u0026auto=format\u0026n=7cR4RRTMOajaVYwc\u0026q=85\u0026s=f5b9b5a3e1f567cbbdd54c56789bf48f","appearance":{"default":"light"},"navbar":{"links":[{"href":"https://cogito.decart.ai/pricing","label":"Pricing"}],"primary":{"type":"button","label":"Start building","href":"https://cogito.decart.ai/sign-up"}},"footer":{"socials":{"github":"https://github.com/DecartAI"}},"seo":{"metatags":{"og:image":"https://docs.cogito.decart.ai/opengraph.png","twitter:image":"https://docs.cogito.decart.ai/opengraph.png","twitter:card":"summary_large_image"}},"fonts":{"heading":{"family":"Roobert","weight":600,"source":"fonts/Roobert-SemiBold.woff2","format":"woff2"},"body":{"family":"Roobert","weight":400,"source":"fonts/Roobert-Regular.woff2","format":"woff2"}},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Platform","icon":"globe","href":"https://cogito.decart.ai"},{"anchor":"GitHub","icon":"github","href":"https://github.com/DecartAI"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cogito","hasAudioNarration":false,"actualSubdomain":"cogito","customDomains":["docs.cogito.decart.ai"],"gitSource":{"type":"github","owner":"decartai","repo":"cogito","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":"","_id":"6b10e6b99ffae5051c413934"},"entitlements":{},"buildId":"6b0d53622fc376fea5e14a98","clientVersion":"0.0.4428","searchFilterCounts":[{"language":"default","tag":"Guides","count":17},{"language":"default","tag":"Models","count":6},{"language":"default","tag":"API Reference","count":5},{"language":"default","tag":"Getting started","count":5},{"language":"default","tag":"Chat","count":3},{"language":"default","tag":"Errors","count":1},{"language":"default","tag":"Billing","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":":root{--cogito-ink: #1a1a1a;--cogito-muted: #555555}body,.prose,main p,main li,main td,main th{color:var(--cogito-ink)}.text-gray-500,.text-gray-600,.text-slate-500{color:var(--cogito-muted)}a[href*=\"/sign-up\"] .rounded-xl{border-radius:9999px!important}a[href*=\"/sign-up\"] svg{display:none!important}a[href*=\"/sign-up\"]{justify-content:center!important;padding-left:0.875rem!important;padding-right:0.875rem!important}.nav-logo{height:22px!important}"}]}
{"page":{"pagePath":"api-reference/responses","slug":"/api-reference/responses","pageMetadata":{"title":"Create response","description":"POST /v1/responses","api":"POST https://api.cogito.decart.ai/v1/responses","href":"/api-reference/responses"},"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: \"POST /v1/responses\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,ParamField,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`OpenAI-compatible Responses endpoint for stateless text generation and\nfunction-tool workflows. Streaming and non-streaming requests use the same\nauthentication, model access, usage accounting, and billing as chat\ncompletions.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`This endpoint is stateless. It does not store response objects or support\nbackground responses, conversations, or `,_jsx(_components.code,{children:`previous_response_id`}),`. Send the\ncomplete request state in `,_jsx(_components.code,{children:`input`}),` on every call.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),`\n`,_jsx(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:_jsxs(_components.p,{children:[`Model slug from the `,_jsx(_components.a,{href:`/getting-started/models`,children:`catalog`}),`.`]})}),`\n`,_jsx(ParamField,{body:`input`,type:`string | array`,required:true,id:`param-input`,children:_jsxs(_components.p,{children:[`A text prompt or an array of Responses input items. Message items,\n`,_jsx(_components.code,{children:`function_call`}),`, and `,_jsx(_components.code,{children:`function_call_output`}),` are supported. Vision-capable\nmodels also accept URL or inline-data `,_jsx(_components.code,{children:`input_image`}),` parts; the URL must be\n`,_jsx(_components.code,{children:`http://`}),`, `,_jsx(_components.code,{children:`https://`}),`, or a base64 `,_jsx(_components.code,{children:`data:`}),` URL (other schemes reject with\n`,_jsx(_components.code,{children:`invalid_image_url`}),`).`]})}),`\n`,_jsx(ParamField,{body:`instructions`,type:`string`,id:`param-instructions`,children:_jsx(_components.p,{children:`System or developer instructions for this response.`})}),`\n`,_jsx(ParamField,{body:`stream`,type:`boolean`,default:`false`,id:`param-stream`,children:_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`true`}),`, returns typed Server-Sent Events such as\n`,_jsx(_components.code,{children:`response.output_text.delta`}),` and `,_jsx(_components.code,{children:`response.completed`}),`.`]})}),`\n`,_jsx(ParamField,{body:`max_output_tokens`,type:`integer`,id:`param-max-output-tokens`,children:_jsxs(_components.p,{children:[`Maximum output tokens. The gateway caps this at the model’s\n`,_jsx(_components.code,{children:`max_output_length`}),`.`]})}),`\n`,_jsx(ParamField,{body:`tools`,type:`array`,id:`param-tools`,children:_jsx(_components.p,{children:`Function tools the model may call. Hosted tools such as web search, file\nsearch, computer use, code interpreter, shell, and MCP are not supported.`})}),`\n`,_jsx(ParamField,{body:`tool_choice`,type:`string | object`,default:`auto`,id:`param-tool-choice`,children:_jsx(_components.p,{children:`Function-tool selection using the OpenAI Responses shape.`})}),`\n`,_jsx(ParamField,{body:`parallel_tool_calls`,type:`boolean`,id:`param-parallel-tool-calls`,children:_jsx(_components.p,{children:`Allow the model to return multiple function calls in one response.`})}),`\n`,_jsx(ParamField,{body:`reasoning`,type:`object`,id:`param-reasoning`,children:_jsxs(_components.p,{children:[`Reasoning configuration. `,_jsx(_components.code,{children:`reasoning.effort`}),` is forwarded to compatible\nmodels.`]})}),`\n`,_jsx(ParamField,{body:`text`,type:`object`,id:`param-text`,children:_jsxs(_components.p,{children:[`Text output configuration. `,_jsx(_components.code,{children:`text.format`}),` accepts text, JSON object, and JSON\nschema formats on models that support structured outputs.`]})}),`\n`,_jsx(ParamField,{body:`store`,type:`boolean`,default:`false`,id:`param-store`,children:_jsxs(_components.p,{children:[`Must be `,_jsx(_components.code,{children:`false`}),` when provided. Cogito does not persist response objects.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`example`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.cogito.decart.ai/v1/responses`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$COGITO_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"moonshotai/kimi-k2.6\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"input\": \"Write a one-line release note.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"max_output_tokens\": 128,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"store\": false`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`unsupported-features`,children:`Unsupported features`}),`\n`,_jsxs(_components.p,{children:[`The gateway returns `,_jsx(_components.code,{children:`400 unsupported_feature`}),` before inference for:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`store: true`}),`, `,_jsx(_components.code,{children:`background: true`}),`, `,_jsx(_components.code,{children:`previous_response_id`}),`, `,_jsx(_components.code,{children:`conversation`}),`,\nhosted `,_jsx(_components.code,{children:`prompt`}),`, and `,_jsx(_components.code,{children:`max_tool_calls`})]}),`\n`,_jsxs(_components.li,{children:[`automatic truncation (`,_jsx(_components.code,{children:`truncation: \"auto\"`}),`)`]}),`\n`,_jsx(_components.li,{children:`hosted or custom non-function tools and their history items`}),`\n`,_jsx(_components.li,{children:`file, audio, and video input; image file IDs; and output logprobs`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Only `,_jsx(_components.code,{children:`POST /v1/responses`}),` is exposed. Retrieve, delete, input-items, and cancel\nroutes are not available.`]}),`\n`,_jsx(Heading,{level:`2`,id:`streaming`,children:`Streaming`}),`\n`,_jsx(_components.p,{children:`Streaming responses preserve the Responses API’s typed SSE events. Usage is\nread from the terminal response event for billing. Provider-private extension\nfields are removed before events leave the public gateway.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create response","description":"POST /v1/responses","api":"POST https://api.cogito.decart.ai/v1/responses","href":"/api-reference/responses"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request body","slug":"request-body","depth":2,"children":[]},{"title":"Example","slug":"example","depth":2,"children":[]},{"title":"Unsupported features","slug":"unsupported-features","depth":2,"children":[]},{"title":"Streaming","slug":"streaming","depth":2,"children":[]}],"codeExamples":{},"endpoint":{"title":"Create response","path":"/v1/responses","servers":[{"url":"https://api.cogito.decart.ai"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"model":[{"type":"string","description":"Model slug from the catalog .","required":true}],"input":[{"type":"object","properties":{},"description":"A text prompt or an array of Responses input items. Message items, `function_call` , and `function_call_output` are supported. Vision-capable models also accept URL or inline-data `input_image` parts; the URL must be `http://` , `https://` , or a base64 `data:` URL (other schemes reject with `invalid_image_url` ).","required":true}],"instructions":[{"type":"string","description":"System or developer instructions for this response."}],"stream":[{"type":"boolean","description":"When `true` , returns typed Server-Sent Events such as `response.output_text.delta` and `response.completed` ."}],"max_output_tokens":[{"type":"integer","description":"Maximum output tokens. The gateway caps this at the model’s `max_output_length` ."}],"tools":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Function tools the model may call. Hosted tools such as web search, file search, computer use, code interpreter, shell, and MCP are not supported."}],"tool_choice":[{"type":"object","properties":{},"description":"Function-tool selection using the OpenAI Responses shape."}],"parallel_tool_calls":[{"type":"boolean","description":"Allow the model to return multiple function calls in one response."}],"reasoning":[{"type":"object","properties":{},"description":"Reasoning configuration. `reasoning.effort` is forwarded to compatible models."}],"text":[{"type":"object","properties":{},"description":"Text output configuration. `text.format` accepts text, JSON object, and JSON schema formats on models that support structured outputs."}],"store":[{"type":"boolean","description":"Must be `false` when provided. Cogito does not persist response objects."}]}}],"examples":{"example":{"value":{"model":"\u003cstring>","input":{},"instructions":"\u003cstring>","stream":true,"max_output_tokens":123,"tools":[{}],"tool_choice":{},"parallel_tool_calls":true,"reasoning":{},"text":{},"store":true}}}}}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"cogito","siteName":"Cogito","title":"Create response - Cogito","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-29T17:27:16.240Z","originalFileLocation":"api-reference/responses.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=\"light\"}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=\"POST /v1/responses\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cogito\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cogito/8yACCEI_89Q1Z6Ow/_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/cogito/8yACCEI_89Q1Z6Ow/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cogito/8yACCEI_89Q1Z6Ow/_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/cogito/8yACCEI_89Q1Z6Ow/_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/cogito/8yACCEI_89Q1Z6Ow/_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/cogito/8yACCEI_89Q1Z6Ow/_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/cogito/8yACCEI_89Q1Z6Ow/_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/cogito/8yACCEI_89Q1Z6Ow/_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/cogito/8yACCEI_89Q1Z6Ow/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create response - Cogito\">\u003cmeta data-mint-head property=\"og:description\" content=\"POST /v1/responses\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cogito\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cogito.decart.ai/api-reference/responses\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docs.cogito.decart.ai/opengraph.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=\"Create response - Cogito\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"POST /v1/responses\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docs.cogito.decart.ai/opengraph.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/cogito/8yACCEI_89Q1Z6Ow/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cogito\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2552f4\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.cogito.decart.ai/api-reference/responses\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/responses.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.cogito.decart.ai/#organization\",\"name\":\"Cogito\",\"url\":\"https://docs.cogito.decart.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cogito/7cR4RRTMOajaVYwc/logo/cogito-light.svg?fit=max\u0026auto=format\u0026n=7cR4RRTMOajaVYwc\u0026q=85\u0026s=376eb96d18e61de326f23e059ca94e87\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.cogito.decart.ai#website\",\"name\":\"Cogito\",\"url\":\"https://docs.cogito.decart.ai\",\"publisher\":{\"@id\":\"https://docs.cogito.decart.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.cogito.decart.ai/api-reference/responses#webpage\",\"url\":\"https://docs.cogito.decart.ai/api-reference/responses\",\"name\":\"Create response\",\"description\":\"POST /v1/responses\",\"dateModified\":\"2026-09-29T17:27:16.240Z\",\"isPartOf\":{\"@id\":\"https://docs.cogito.decart.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cogito.decart.ai/api-reference/responses#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cogito.decart.ai/api-reference/responses#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Chat\",\"item\":\"https://docs.cogito.decart.ai/api-reference/chat-completions\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create response\",\"item\":\"https://docs.cogito.decart.ai/api-reference/responses\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.cogito.decart.ai/api-reference/responses#apireference\",\"headline\":\"Create response\",\"name\":\"Create response\",\"description\":\"POST /v1/responses\",\"url\":\"https://docs.cogito.decart.ai/api-reference/responses\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cogito.decart.ai/api-reference/responses#webpage\"},\"image\":\"https://docs.cogito.decart.ai/opengraph.png\",\"dateModified\":\"2026-09-29T17:27:16.240Z\",\"publisher\":{\"@id\":\"https://docs.cogito.decart.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.cogito.decart.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cogito\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Cogito\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/responses.md","siteName":"Cogito","nav":{"global":{"anchors":[{"anchor":"Platform","icon":"globe","href":"https://cogito.decart.ai"},{"anchor":"GitHub","icon":"github","href":"https://github.com/DecartAI"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/getting-started/overview"}]},{"tab":"API Reference","groups":[{"group":"Chat","pages":[{"title":"Create chat completion","description":"POST /v1/chat/completions","api":"POST https://api.cogito.decart.ai/v1/chat/completions","href":"/api-reference/chat-completions"},{"title":"Create response","api":"POST https://api.cogito.decart.ai/v1/responses","href":"/api-reference/responses"},{"title":"Create completion","description":"POST /v1/completions","api":"POST https://api.cogito.decart.ai/v1/completions","href":"/api-reference/completions"}]},{"group":"Models","pages":[{"title":"List models","api":"GET https://api.cogito.decart.ai/v1/models","href":"/api-reference/list-models"}]},{"group":"Errors","pages":[{"title":"Errors","href":"/api-reference/errors"}]}]}]},"basePath":"","title":"Create response - Cogito","deploymentId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","buildId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-5zXlUUV6.js","snippetPresets-D3m2eL-0.js","utils-u8TSWPiZ.js","style-to-object-BY3JEAdk.js","utils-D3TDKJCH.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Om0Y4Ijd.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Cyl7LOol.js","_Uint8Array-BuOv0f5_.js","isObject-FP1Yky1u.js","ApiExamples-BnqLE2Kf.js","usePlaygroundInputsStore-DhQKVH9n.js","shallow-BOCfJNQU.js","isEqual-BrbSa25D.js","CodeSnippets-DUGBlB-S.js","CodeSnippet-CuGpPhIN.js","use-playground-group-access-DYZiRN3l.js","Page-DdEXfHxg.js","api-description-markdown-DDasI_tu.js","DynamicMarkdown-DoPsKgYC.js","SectionHeading-CKObOTcn.js","MethodPill-D_DqPuJw.js","getPastedJson-DWfa7n0M.js","Check2Icon-CEquKboc.js","axios-CsQoIw0U.js"]}