curl --request POST \ --url https://api.scitix.ai/model-api/responses \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "deepseek-ai/deepseek-v4.1-flash-1017", "input": "Reply with only the result of 1+1.", "max_output_tokens": 64}'
Generate a response from the specified model and text or input items. Results are returned in the output array. SSE streaming is supported.
Before making a request, confirm that the model supports this protocol and the parameters you need.
POST
/
responses
curl --request POST \ --url https://api.scitix.ai/model-api/responses \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "deepseek-ai/deepseek-v4.1-flash-1017", "input": "Reply with only the result of 1+1.", "max_output_tokens": 64}'
Authenticate with an API key using Bearer authentication. Do not expose real keys in documentation, code, or repositories.
Body
application/json
Responses protocol request body. model and input are required.
model
string
required
ID of the model to generate the response. Use GET /models to list models and confirm that the model supports the Responses protocol.
Example:
"deepseek-ai/deepseek-v4.1-flash-1017"
input
stringobject[]
required
Input text or an array of input items. Items may include messages, reasoning items, function calls, and function call results.
instructions
string
Instructions passed to the model.
max_output_tokens
integer
Total token budget for this generation, including reasoning tokens and visible output tokens. Must be at least 1; the model determines the maximum. This parameter name applies to the Responses protocol.
Required range: x >= 1
Example:
128
text
object
Text output format configuration. Use format to specify JSON Schema requirements for structured output.
Show child attributes
stream
enum<boolean>
Whether to stream output. When true, receive incremental results through named SSE events.
Available options:
true,
false
tools
object[]
Function tools available to the model. When the model returns a function_call item, the client executes the function and returns its result through function_call_output.
Show child attributes
tool_choice
enum<string>object
Controls tool selection. Use auto to let the model choose, none to disable tool calls, or required to require a tool call. Use {"type":"function","name":"get_weather"} to select a specific function.
Available options:
auto,
none,
required
Response
Response successful. Streaming examples show only selected events and fields.
id
string
required
Response identifier.
object
string
required
Response object type.
created_at
integer
required
Response creation time as a Unix timestamp in seconds.
status
string
required
Response status, such as in_progress, completed, or incomplete.
model
string
required
Identifier of the model that generated the response.
output
object[]
required
Output items, which may include messages, reasoning items, and function calls.
Show child attributes
usage
object | null
Token usage for this request. May be null.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ScitiX","description":"ScitiX documentation provides guides for Model Inference, GPU Cloud, and account management, helping developers connect to model APIs, manage GPU resources, and configure accounts and billing.","colors":{"primary":"#3B82F6","light":"#3B82F6","dark":"#3B82F6"},"logo":{"light":"https://mintcdn.com/scitix-adfc65c2/dXu1tJ76njQB8375/assets/logo/logo.png?fit=max\u0026auto=format\u0026n=dXu1tJ76njQB8375\u0026q=85\u0026s=f7d3323c409d9e260f4380cd47bf1728","dark":"https://mintcdn.com/scitix-adfc65c2/dXu1tJ76njQB8375/assets/logo/logo-dark.png?fit=max\u0026auto=format\u0026n=dXu1tJ76njQB8375\u0026q=85\u0026s=57d01fe2087f70e5e3c12f7cfd287045","href":"/model-inference/get-started/model-inference-overview"},"favicon":"https://mintcdn.com/scitix-adfc65c2/dXu1tJ76njQB8375/assets/logo/favicon.ico?fit=max\u0026auto=format\u0026n=dXu1tJ76njQB8375\u0026q=85\u0026s=183ed6015944ae58bce000c186e2cd08","navbar":{"links":[{"href":"https://scitix.ai/","label":"Website"}],"primary":{"type":"button","label":"Console","href":"https://console.scitix.ai/"}},"footer":{},"seo":{"metatags":{"google-site-verification":"wjgu73VHH7_u9usse-Wjn4trUyle8KYE5PNGkBlTWyk","og:site_name":"ScitiX Documentation","og:url":"https://docs.scitix.ai","twitter:card":"summary_large_image"},"organization":{"name":"ScitiX","url":"https://scitix.ai/"},"indexing":"navigable"},"styling":{"eyebrows":"breadcrumbs","latex":false},"integrations":{"ga4":{"measurementId":"G-4VE9YM4B48"},"posthog":{"apiKey":"phc_qrEKTbWWZYjHUU95Ywh3XzwnNbkqEDSFgqZQQd7b2i5s","sessionRecording":false}},"banner":{"content":"Some DeepSeek, GLM, Kimi, and Qwen models will retire on 2026-11-20 (UTC). For details, see the [model retirement announcement](/changelog/model-retirement-announcements).","dismissible":true,"type":"warning"},"errors":{"404":{"redirect":false,"title":"Page not found","description":"The page you are looking for may have moved, been renamed, or no longer be published. Use the search bar above, or continue from one of these entry points:\n\n- [Model Inference](/model-inference/get-started/model-inference-overview)\n- [GPU Cloud](/gpu-cloud/get-started/gpu-cloud-overview)\n- [Use docs with AI](/model-inference/get-started/connect-docs-to-ai)"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode","windsurf"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"scitix-adfc65c2","hasAudioNarration":false,"actualSubdomain":"scitix-adfc65c2","customDomains":["docs.scitix.ai"],"gitSource":{"type":"github","owner":"scitix","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6afedc3d5246eb87f35fdc7c","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"Model Inference","count":81},{"language":"default","tag":"Siverse","count":72},{"language":"default","tag":"GPU Cloud","count":69},{"language":"default","tag":"Tool Integrations","count":52},{"language":"default","tag":"Compute","count":29},{"language":"default","tag":"Resources","count":20},{"language":"default","tag":"CKS Clusters","count":19},{"language":"default","tag":"Storage","count":19},{"language":"default","tag":"Development \u0026 Training","count":15},{"language":"default","tag":"Models \u0026 Inference","count":15}]},"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":"custom-rbac-roles","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":"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":"site-roles","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":"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":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"assets/ai-nav.css","content":"[data-scitix-entry-ready] #navigation-items>[data-scitix-ai-source]{display:none}.scitix-ai-entry{border-top:1px solid rgb(128 128 128 / 20%);padding:12px 0}.scitix-ai-entry .scitix-ai-link{align-items:center;column-gap:8px;border-radius:6px;font-weight:500}.scitix-ai-entry .scitix-ai-link:hover{background-color:rgb(59 130 246 / 6%)}.dark .scitix-ai-entry .scitix-ai-link:hover{background-color:rgb(59 130 246 / 10%)}.scitix-ai-entry .scitix-ai-link:focus-visible{outline:2px solid rgb(var(--primary));outline-offset:-2px}.scitix-ai-icon{width:16px;height:16px;flex:0 0 16px;background-color:rgb(var(--primary));-webkit-mask:url('/assets/logo/ai-sparkles.svg') center / contain no-repeat;mask:url('/assets/logo/ai-sparkles.svg') center / contain no-repeat}html[data-scitix-ai-page] #pagination{display:none}@media (min-width: 1024px){#sidebar[data-scitix-entry-ready] #sidebar-content{bottom:64px!important}#scitix-sidebar-footer{position:absolute;bottom:0;left:0;right:32px;z-index:30;background:rgb(var(--background-light))}.dark #scitix-sidebar-footer{background:rgb(var(--background-dark))}}#scitix-mobile-footer{margin-top:16px}"},{"filePath":"assets/styles.css","content":"#banner{--banner-text: #262626;--banner-link: #1D4ED8;--banner-button-hover: rgb(var(--primary) / 10%);background-color:rgb(var(--primary) / 10%)!important}.dark #banner{--banner-text: #EFF6FF;--banner-link: #93C5FD;--banner-button-hover: rgb(var(--primary-light) / 15%);background-color:rgb(var(--primary-light) / 10%)!important}@layer base{#banner,#banner *{color:var(--banner-text)!important}#banner a{color:var(--banner-link)!important;text-decoration-color:currentColor!important}}#banner button:hover{background-color:var(--banner-button-hover)!important}#banner :is(a,button):focus-visible{outline:2px solid var(--banner-link);outline-offset:3px}a[href*=\"utm_campaign=poweredBy\"]{display:none!important}#assistant-entry,#assistant-entry-mobile{display:none!important}.chat-assistant-floating-input{display:none!important}#chat-assistant-sheet,.chat-assistant-sheet{display:none!important}div:has(>#chat-assistant-sheet){display:none!important}button[data-component-part=\"search-ask-ai-button\"]{display:none!important}[data-component-part=\"search-list\"]>div[role=\"group\"]:has([data-component-part=\"search-ask-ai-item\"]){display:none!important}#ask-assistant-code-block-button{display:none!important}#text-selection-tooltip-button{display:none!important}#content-container:not(:has(#content-side-layout[data-api-example])) #header>.mt-2.text-lg.prose{display:none!important}@media (min-width: 1280px){#content-container:has(#content-side-layout[data-api-example]) #content-area{flex:0 0 54.5455%!important;width:54.5455%!important;min-width:0!important}#content-side-layout[data-api-example]{flex:0 0 41.5584%!important;width:41.5584%!important}#content-side-layout[data-api-example]>div{width:100%!important;max-width:100%!important;min-width:0!important}}body:has(.docs-home) #navbar div:has(>.nav-tabs){display:none!important}body:has(.docs-home) .nav-tabs-item[data-active=\"true\"]{color:inherit!important;text-shadow:none!important}body:has(.docs-home) .nav-tabs-item[data-active=\"true\"]::after{display:none!important}.nav-tabs .nav-tabs-item:nth-child(4){margin-left:3rem;position:relative}.nav-tabs .nav-tabs-item:nth-child(4)::before{content:\"\";position:absolute;left:-2rem;top:50%;width:1px;height:1rem;background:rgb(209 213 219);transform:translateY(-50%)}.dark .nav-tabs .nav-tabs-item:nth-child(4)::before{background:rgb(75 85 99)}.docs-home{--home-border: rgb(229 231 235);--home-muted: rgb(75 85 99);--home-panel: rgb(255 255 255)}.docs-home-hero{border-bottom:1px solid var(--home-border);padding-bottom:1.125rem}.docs-home-kicker{letter-spacing:0}.docs-products-panel,.docs-support-panel{border:1px solid var(--home-border);border-radius:0.75rem;background:linear-gradient(180deg, rgb(249 250 251), rgb(255 255 255));padding:0.75rem}@media (min-width: 768px){.docs-products-panel,.docs-support-panel{padding:0.875rem}}.docs-product-card,.docs-account-panel{position:relative;overflow:hidden;transition:border-color 160ms ease,\n box-shadow 160ms ease,\n transform 160ms ease}.docs-product-card{--product-accent: #3b82f6;--product-tint: rgb(59 130 246 / 0.08);min-height:100%;border-top-color:var(--product-accent)!important;border-top-style:solid!important;border-top-width:3px!important;cursor:pointer}.docs-card-link{position:absolute;inset:0;z-index:1;border-radius:inherit}.docs-product-card .docs-title-link,.docs-product-card .docs-path-link{position:relative;z-index:2}.docs-product-card:hover,.docs-account-panel:hover{border-color:var(--product-accent, #3b82f6);box-shadow:0 14px 32px rgb(15 23 42 / 0.08);transform:translateY(-1px)}.docs-account-panel:hover{box-shadow:0 8px 18px rgb(15 23 42 / 0.05);transform:none}.docs-product-header{display:flex;align-items:center;gap:0.75rem}.docs-product-icon,.docs-account-icon{display:inline-flex;width:2.125rem;height:2.125rem;flex:0 0 auto;align-items:center;justify-content:center;border:1px solid rgb(229 231 235);border-radius:0.5rem;background:var(--product-tint, rgb(59 130 246 / 0.08));color:var(--product-accent, #3b82f6)}.docs-product-icon svg,.docs-account-icon svg{width:1rem;height:1rem}.docs-product-icon svg.icon,.docs-account-icon svg.icon{background-color:var(--product-accent, #3b82f6)!important}.docs-title-link{display:inline-flex;align-items:center;gap:0.4rem;color:rgb(17 24 39);font-size:1.125rem;font-weight:650;line-height:1.3;text-decoration:none}.docs-title-link:hover{color:var(--product-accent, #3b82f6)}.docs-path-link{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:0.65rem;border:1px solid transparent;border-radius:0.5rem;color:rgb(55 65 81);text-decoration:none;transition:background 160ms ease,\n border-color 160ms ease,\n color 160ms ease}.docs-path-link{padding:0.33rem 0.5rem}.docs-path-link:hover,.docs-support-link:hover{border-color:var(--product-accent, #3b82f6);background:var(--product-tint, rgb(249 250 251));color:var(--product-accent, #3b82f6)}.docs-step{display:inline-flex;width:1.3rem;height:1.3rem;align-items:center;justify-content:center;border-radius:999px;background:var(--product-tint, rgb(59 130 246 / 0.08));color:var(--product-accent, #3b82f6);font-size:0.75rem;font-weight:650}.docs-path-arrow{color:rgb(156 163 175);transition:color 160ms ease,\n transform 160ms ease}.docs-path-link:hover .docs-path-arrow,.docs-support-link:hover .docs-path-arrow{color:var(--product-accent, #3b82f6);transform:translateX(0.125rem)}.docs-support-link{display:flex;align-items:center;justify-content:center;padding:0.62rem 0.8rem;border:1px solid transparent;border-radius:0.5rem;background:var(--home-panel);color:rgb(55 65 81);font-size:0.875rem;font-weight:600;text-align:center;text-decoration:none;transition:background 160ms ease,\n border-color 160ms ease,\n color 160ms ease}.dark .docs-home{--home-border: rgb(31 41 55);--home-muted: rgb(156 163 175);--home-panel: rgb(3 7 18)}.dark .docs-products-panel,.dark .docs-support-panel{background:linear-gradient(180deg, rgb(17 24 39 / 0.55), rgb(3 7 18 / 0.78))}.dark .docs-product-card:hover,.dark .docs-account-panel:hover{border-color:var(--product-accent, #60a5fa);box-shadow:0 14px 32px rgb(0 0 0 / 0.22)}.dark .docs-account-panel:hover{box-shadow:0 8px 18px rgb(0 0 0 / 0.14)}.dark .docs-product-icon,.dark .docs-account-icon{border-color:rgb(55 65 81)}.dark .docs-title-link{color:rgb(255 255 255)}.dark .docs-title-link:hover,.dark .docs-path-link:hover,.dark .docs-support-link:hover{color:var(--product-accent, #60a5fa)}.dark .docs-path-link,.dark .docs-support-link{color:rgb(209 213 219)}.dark .docs-path-link:hover,.dark .docs-support-link:hover{border-color:var(--product-accent, #60a5fa);background:var(--product-tint, rgb(17 24 39))}#sidebar #navigation-items>div+div{margin-top:1.125rem!important}#sidebar .sidebar-group-header{margin-bottom:0.375rem!important}#sidebar .sidebar-group>li>a,#sidebar .sidebar-group>li>button{padding-top:0.25rem!important;padding-bottom:0.25rem!important}@media (min-width: 1280px){#sidebar{width:20%!important;margin-right:3%!important}#content-container>div:has(>#content-area){gap:3.8961%!important}#content-side-layout{flex:0 0 18.1818%!important;width:18.1818%!important;max-width:none!important;min-width:0!important}#table-of-contents-layout{width:100%!important;min-width:0!important;padding-left:1rem!important}#table-of-contents{width:100%!important;min-width:0!important}#table-of-contents [data-component-part=\"scroll-area-content\"]{min-width:0!important}#table-of-contents-content a{white-space:normal;overflow-wrap:anywhere}#changelog-filters{box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0!important;max-height:100%;min-height:0}#changelog-filters #changelog-filters{display:flex;flex-direction:column;overflow:visible}#changelog-filters>div:has(>span){flex-shrink:0}#changelog-filters-content{flex-direction:column;flex-wrap:nowrap;align-items:flex-start;min-height:0;overflow-x:hidden;overflow-y:auto}#changelog-filters-content button{flex-shrink:0;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}#content-area{flex:0 0 77.9221%!important;width:77.9221%!important;margin-left:0!important;padding-left:0!important}}"}]}
{"page":{"pagePath":"api-reference/responses/create-a-response","slug":"/api-reference/responses/create-a-response","pageMetadata":{"title":"Create a response","description":"Generate a response from the specified model and text or input items. Results are returned in the `output` array. SSE streaming is supported.\n\nBefore making a request, confirm that the model supports this protocol and the parameters you need.","deprecated":null,"version":null,"openapi":"/model-inference/api/model-inference-api.json post /responses","href":"/api-reference/responses/create-a-response","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Generate a response from the specified model and text or input items. Results are returned in the \", _jsx(_components.code, {\n children: \"output\"\n }), \" array. SSE streaming is supported.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Before making a request, confirm that the model supports this protocol and the parameters you need.\"\n })]\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":"Create a response","description":"Generate a response from the specified model and text or input items. Results are returned in the `output` array. SSE streaming is supported.\n\nBefore making a request, confirm that the model supports this protocol and the parameters you need.","deprecated":null,"version":null,"openapi":"/model-inference/api/model-inference-api.json post /responses","href":"/api-reference/responses/create-a-response","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/scitix-adfc65c2/cfa3b74c4e60f59d/assets/ai-nav.js","/_mintlify/custom/scitix-adfc65c2/71d9e3cb995fb63a/assets/assistant-guard.js"],"openApiReferenceData":{"operation":{"operationId":"createResponse","summary":"Create a response","requestBody":"49ee1b8b-dff5-4900-9276-767d4681cc37","responses":{"200":"307182a9-6c40-423a-8c45-8637c670d746","400":"6e15063c-71fa-440a-a90d-3e6ede0ad6c5","401":"f26ae060-b6ab-4e35-b779-92bc1bfcccd6","default":"c023ab89-9daa-4b7e-b6a1-e28897d03aff"},"description":"Generate a response from the specified model and text or input items. Results are returned in the `output` array. SSE streaming is supported.\n\nBefore making a request, confirm that the model supports this protocol and the parameters you need.","tags":["Responses"],"method":"post","type":"path","servers":["3b7f6c08-1b92-44a5-8e59-5a767489e3f0"],"security":["f1954b83-e290-4cef-ac47-0a080d712a59"],"path":"/responses","baseUrlOptions":["https://api.scitix.ai/model-api"],"title":"Create a response","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","input"],"description":"Responses protocol request body. `model` and `input` are required.","properties":{"model":{"type":"string","example":"deepseek-ai/deepseek-v4.1-flash-1017","description":"ID of the model to generate the response. Use `GET /models` to list models and confirm that the model supports the Responses protocol.","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"input":{"oneOf":[{"type":"string","description":"Input text or an array of input items. Items may include messages, reasoning items, function calls, and function call results.","isRequired":true,"uniqueKey":"input.oneOf.0","typeLabel":"string"},{"type":"array","items":{"oneOf":[{"type":"object","description":"Responses input item: a message, reasoning item, function call, or function call result.","required":["role","content"],"properties":{"role":{"type":"string","example":"user","description":"Message role.","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.role","typeLabel":"string"},"content":{"oneOf":[{"type":"string","description":"Message text or an array of `input_text` content blocks.","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","required":["type","text"],"properties":{"type":{"const":"input_text","description":"Content block type, set to `input_text`.","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].type","typeLabel":"any"},"text":{"type":"string","description":"Input text.","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].text","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"Message text or an array of `input_text` content blocks.","minItems":1,"isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content","typeLabel":"string | object[]"},"type":{"const":"message","description":"Item type, set to `message`.","uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.type","typeLabel":"any"}},"additionalProperties":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"Responses input item: a message, reasoning item, function call, or function call result.","required":["type"],"properties":{"type":{"const":"reasoning","description":"Item type, set to `reasoning`.","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.1.type","typeLabel":"any"},"id":{"type":"string","description":"Reasoning item identifier.","uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.1.id","typeLabel":"string"},"summary":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.1.summary.items.[INDEX].type","typeLabel":"string"},"text":{"type":"string","uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.1.summary.items.[INDEX].text","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.1.summary.items.[INDEX]","typeLabel":"object"},"description":"Reasoning summary content blocks.","uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.1.summary","typeLabel":"object[]"},"status":{"oneOf":[{"type":"string","description":"Reasoning item status. May be `null`. This field differs from the top-level response `status`; use the top-level `status` to determine whether the entire request has completed.","uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.1.status.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reasoning item status. May be `null`. This field differs from the top-level response `status`; use the top-level `status` to determine whether the entire request has completed.","uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.1.status.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.1.status","typeLabel":"string | null"}},"additionalProperties":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"Responses input item: a message, reasoning item, function call, or function call result.","required":["type","call_id","name","arguments"],"properties":{"type":{"const":"function_call","description":"Item type, set to `function_call`.","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.2.type","typeLabel":"any"},"call_id":{"type":"string","description":"Function call ID, used to associate the execution result.","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.2.call_id","typeLabel":"string"},"name":{"type":"string","description":"Name of the function the model chose to call.","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.2.name","typeLabel":"string"},"arguments":{"type":"string","description":"Function arguments as a JSON-encoded string. Parse before execution.","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.2.arguments","typeLabel":"string"},"id":{"type":"string","description":"Function call item identifier.","uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.2.id","typeLabel":"string"},"status":{"type":"string","description":"Function call item status.","uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.2.status","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"Responses input item: a message, reasoning item, function call, or function call result.","required":["type","call_id","output"],"properties":{"type":{"const":"function_call_output","description":"Item type, set to `function_call_output`.","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.3.type","typeLabel":"any"},"call_id":{"type":"string","description":"The `call_id` of the corresponding function call item.","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.3.call_id","typeLabel":"string"},"output":{"type":"string","description":"Result text returned after the client executes the function.","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.3.output","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.3","typeLabel":"object"}],"uniqueKey":"input.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"Input text or an array of input items. Items may include messages, reasoning items, function calls, and function call results.","isRequired":true,"uniqueKey":"input.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"input","typeLabel":"string | object[]"},"instructions":{"type":"string","description":"Instructions passed to the model.","uniqueKey":"instructions","typeLabel":"string"},"max_output_tokens":{"type":"integer","example":128,"description":"Total token budget for this generation, including reasoning tokens and visible output tokens. Must be at least `1`; the model determines the maximum. This parameter name applies to the Responses protocol.","minimum":1,"uniqueKey":"max_output_tokens","typeLabel":"integer"},"text":{"type":"object","description":"Text output format configuration. Use `format` to specify JSON Schema requirements for structured output.","properties":{"format":{"type":"object","properties":{"type":{"type":"string","enum":["json_schema"],"description":"Output format, set to `json_schema`.","isRequired":true,"uniqueKey":"text.format.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"Schema name for structured output.","isRequired":true,"uniqueKey":"text.format.name","typeLabel":"string"},"schema":{"type":"object","description":"JSON Schema defining the output object structure and field constraints.","additionalProperties":true,"isRequired":true,"uniqueKey":"text.format.schema","typeLabel":"object"},"strict":{"type":"boolean","enum":[true],"description":"Strict mode setting, set to `true` in this definition.","uniqueKey":"text.format.strict","typeLabel":"enum\u003cboolean>"}},"additionalProperties":true,"required":["type","name","schema"],"description":"JSON Schema structured output format.","isRequired":true,"uniqueKey":"text.format","typeLabel":"object"}},"additionalProperties":true,"required":["format"],"uniqueKey":"text","typeLabel":"object"},"stream":{"type":"boolean","enum":[true,false],"description":"Whether to stream output. When `true`, receive incremental results through named SSE events.","uniqueKey":"stream","typeLabel":"enum\u003cboolean>"},"tools":{"type":"array","description":"Function tools available to the model. When the model returns a `function_call` item, the client executes the function and returns its result through `function_call_output`.","items":{"type":"object","required":["type","name","parameters"],"properties":{"type":{"const":"function","description":"Tool type, set to `function`.","isRequired":true,"uniqueKey":"tools.items.[INDEX].type","typeLabel":"any"},"name":{"type":"string","description":"Function name, used to match a `function_call` item.","isRequired":true,"uniqueKey":"tools.items.[INDEX].name","typeLabel":"string"},"parameters":{"type":"object","additionalProperties":true,"description":"JSON Schema describing the function input parameters.","isRequired":true,"uniqueKey":"tools.items.[INDEX].parameters","typeLabel":"object"},"description":{"type":"string","uniqueKey":"tools.items.[INDEX].description","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"tools.items.[INDEX]","typeLabel":"object"},"uniqueKey":"tools","typeLabel":"object[]"},"tool_choice":{"oneOf":[{"type":"string","description":"Controls tool selection. Use `auto` to let the model choose, `none` to disable tool calls, or `required` to require a tool call. Use `{\"type\":\"function\",\"name\":\"get_weather\"}` to select a specific function.","enum":["auto","none","required"],"uniqueKey":"tool_choice.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"object","description":"Controls tool selection. Use `auto` to let the model choose, `none` to disable tool calls, or `required` to require a tool call. Use `{\"type\":\"function\",\"name\":\"get_weather\"}` to select a specific function.","required":["type","name"],"properties":{"type":{"const":"function","isRequired":true,"uniqueKey":"tool_choice.oneOf.1.type","typeLabel":"any"},"name":{"type":"string","isRequired":true,"uniqueKey":"tool_choice.oneOf.1.name","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"tool_choice.oneOf.1","typeLabel":"object"}],"uniqueKey":"tool_choice","typeLabel":"enum\u003cstring> | object"}},"additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"examples":{"Basic request":{"title":"Basic request","summary":"Basic request","value":{"model":"deepseek-ai/deepseek-v4.1-flash-1017","input":"Reply with only the result of 1+1.","max_output_tokens":64}},"Message array":{"title":"Message array","summary":"Message array","value":{"model":"deepseek-ai/deepseek-v4.1-flash-1017","input":[{"role":"user","content":[{"type":"input_text","text":"Say hello"}]}],"instructions":"Reply with only one character","max_output_tokens":128}},"Structured output":{"title":"Structured output","summary":"Structured output","value":{"model":"deepseek-ai/deepseek-v4.1-flash-1017","input":"Return a JSON object with the answer field set to YES.","max_output_tokens":256,"text":{"format":{"type":"json_schema","name":"check_result","strict":true,"schema":{"type":"object","properties":{"answer":{"type":"string","enum":["YES"]}},"required":["answer"],"additionalProperties":false}}}}},"Streaming request":{"title":"Streaming request","summary":"Streaming request","value":{"model":"deepseek-ai/deepseek-v4.1-flash-1017","input":"Reply with only 2","max_output_tokens":128,"stream":true}},"Tool call":{"title":"Tool call","summary":"Tool call","value":{"model":"deepseek-ai/deepseek-v4.1-flash-1017","input":"Call add to calculate 7 plus 5. Reply with only the result.","max_output_tokens":256,"tools":[{"type":"function","name":"add","description":"Calculate the sum of two integers","parameters":{"type":"object","properties":{"a":{"type":"integer"},"b":{"type":"integer"}},"required":["a","b"]}}],"tool_choice":"required"}},"Return a tool result":{"title":"Return a tool result","summary":"Return a tool result","value":{"model":"deepseek-ai/deepseek-v4.1-flash-1017","input":[{"role":"user","content":"Call add to calculate 7 plus 5. Reply with only the result."},{"id":"rs_02179438033280700000000000000000000ffffac182854dc3db8","type":"reasoning","summary":[{"type":"summary_text","text":"The user wants me to call the add tool with 7 and 5, then answer only the result."}],"status":"completed"},{"arguments":"{\"a\": 7, \"b\": 5}","call_id":"call_00_xiyoaq8n8w0u81x9ey3zxpsw","name":"add","type":"function_call","id":"fc_02179438033307400000000000000000000ffffac1828547e8f95","status":"completed"},{"type":"function_call_output","call_id":"call_00_xiyoaq8n8w0u81x9ey3zxpsw","output":"{\"result\": 12}"}],"max_output_tokens":256,"tools":[{"type":"function","name":"add","description":"Calculate the sum of two integers","parameters":{"type":"object","properties":{"a":{"type":"integer"},"b":{"type":"integer"}},"required":["a","b"]}}]}},"Specify a function":{"title":"Specify a function","summary":"Specify a function","value":{"model":"deepseek-ai/deepseek-v4.1-flash-1017","input":"Call add to calculate 7 plus 5. Reply with only the result.","max_output_tokens":256,"tools":[{"type":"function","name":"add","description":"Calculate the sum of two integers","parameters":{"type":"object","properties":{"a":{"type":"integer"},"b":{"type":"integer"}},"required":["a","b"]}}],"tool_choice":{"type":"function","name":"add"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"307182a9-6c40-423a-8c45-8637c670d746":{"description":"Response successful. Streaming examples show only selected events and fields.","content":{"application/json":{"schema":{"type":"object","required":["id","object","created_at","status","model","output"],"properties":{"id":{"type":"string","description":"Response identifier.","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"object":{"type":"string","description":"Response object type.","isRequired":true,"uniqueKey":"object","typeLabel":"string"},"created_at":{"type":"integer","description":"Response creation time as a Unix timestamp in seconds.","isRequired":true,"uniqueKey":"created_at","typeLabel":"integer"},"status":{"type":"string","description":"Response status, such as `in_progress`, `completed`, or `incomplete`.","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"model":{"type":"string","description":"Identifier of the model that generated the response.","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"output":{"type":"array","description":"Output items, which may include messages, reasoning items, and function calls.","items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Output item type, such as `message`, `reasoning`, or `function_call`.","isRequired":true,"uniqueKey":"output.items.[INDEX].type","typeLabel":"string"},"id":{"type":"string","description":"Output item identifier.","uniqueKey":"output.items.[INDEX].id","typeLabel":"string"},"status":{"description":"Output item status.","uniqueKey":"output.items.[INDEX].status","typeLabel":"any"}},"additionalProperties":true,"uniqueKey":"output.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"output","typeLabel":"object[]"},"usage":{"oneOf":[{"type":"object","description":"Token usage for this request. May be `null`.","properties":{"input_tokens":{"type":"integer","description":"Number of input tokens for this request.","uniqueKey":"usage.oneOf.0.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Total number of generated tokens for this request, including reasoning tokens.","uniqueKey":"usage.oneOf.0.output_tokens","typeLabel":"integer"},"total_tokens":{"type":"integer","description":"Sum of input and output tokens.","uniqueKey":"usage.oneOf.0.total_tokens","typeLabel":"integer"},"output_tokens_details":{"type":"object","properties":{"reasoning_tokens":{"type":"integer","description":"Output tokens used for reasoning. Already included in `output_tokens`; do not add them again.","uniqueKey":"usage.oneOf.0.output_tokens_details.reasoning_tokens","typeLabel":"integer"}},"additionalProperties":true,"description":"Output token details. Reasoning tokens are a subset of the output total.","uniqueKey":"usage.oneOf.0.output_tokens_details","typeLabel":"object"}},"additionalProperties":true,"uniqueKey":"usage.oneOf.0","typeLabel":"object"},{"type":"null","description":"Token usage for this request. May be `null`.","uniqueKey":"usage.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage","typeLabel":"object | null"}},"additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"examples":{"Text response":{"title":"Text response","summary":"Text response","value":{"id":"resp_0217943193643199f744ac2d426a90baacb0f446edf7bf61e63e8","object":"response","created_at":1794319365,"status":"completed","model":"deepseek-ai/deepseek-v4.1-flash-1017","output":[{"id":"msg_02179431936536500000000000000000000ffffac151e26ef6568","type":"message","status":"completed","role":"assistant","content":[{"type":"output_text","text":"2"}]}],"usage":{"input_tokens":40,"output_tokens":25,"total_tokens":65}}},"Function-call response":{"title":"Function-call response","summary":"Function-call response","value":{"id":"resp_02179438033189547c8075984f4c09bb3b0ca9abced541e6c9855","object":"response","created_at":1794380332,"status":"completed","model":"deepseek-ai/deepseek-v4.1-flash-1017","output":[{"id":"rs_02179438033280700000000000000000000ffffac182854dc3db8","type":"reasoning","status":"completed"},{"id":"fc_02179438033307400000000000000000000ffffac1828547e8f95","type":"function_call","status":"completed","call_id":"call_00_xiyoaq8n8w0u81x9ey3zxpsw","name":"add","arguments":"{\"a\": 7, \"b\": 5}"}],"usage":{"input_tokens":313,"output_tokens":74,"total_tokens":387}}},"Response after a tool result":{"title":"Response after a tool result","summary":"Response after a tool result","value":{"id":"resp_02179438033408347c8075984f4c09bb3b0ca9abced541e22181d","object":"response","created_at":1794380334,"status":"completed","model":"deepseek-ai/deepseek-v4.1-flash-1017","output":[{"id":"msg_02179438033491100000000000000000000ffffac183b0fcf5900","type":"message","status":"completed","role":"assistant","content":[{"type":"output_text","text":"12"}]}],"usage":{"input_tokens":405,"output_tokens":2,"total_tokens":407}}}},"exampleType":"examples"},"text/event-stream":{"schema":{"type":"string","uniqueKey":"","typeLabel":"string"},"x-event-data-schema":{"$ref":"#/components/schemas/ResponseStreamEvent"},"example":"event: response.created\ndata: {\"type\": \"response.created\", \"sequence_number\": 0, \"response\": {\"id\": \"resp_0217943210303454d7552398ca1982f1d8c06d525f58d827d6f79\", \"object\": \"response\", \"created_at\": 1794321031, \"status\": \"in_progress\", \"model\": \"deepseek-ai/deepseek-v4.1-flash-1017\", \"output\": []}}\n\nevent: response.output_text.delta\ndata: {\"type\": \"response.output_text.delta\", \"content_index\": 0, \"delta\": \"2\", \"item_id\": \"msg_02179432103119100000000000000000000ffffac15568e439000\", \"output_index\": 1, \"sequence_number\": 14}\n\nevent: response.completed\ndata: {\"type\": \"response.completed\", \"sequence_number\": 18, \"response\": {\"id\": \"resp_0217943210303454d7552398ca1982f1d8c06d525f58d827d6f79\", \"object\": \"response\", \"created_at\": 1794321031, \"status\": \"completed\", \"model\": \"deepseek-ai/deepseek-v4.1-flash-1017\", \"output\": [{\"id\": \"rs_02179432103109200000000000000000000ffffac15568ebe30c0\", \"type\": \"reasoning\", \"status\": \"completed\"}, {\"id\": \"msg_02179432103119100000000000000000000ffffac15568e439000\", \"type\": \"message\", \"status\": \"completed\", \"role\": \"assistant\", \"content\": [{\"type\": \"output_text\", \"text\": \"2\"}]}], \"usage\": {\"input_tokens\": 34, \"output_tokens\": 12, \"total_tokens\": 46}}}\n\n","examples":{"Example":{"title":"Example","value":"event: response.created\ndata: {\"type\": \"response.created\", \"sequence_number\": 0, \"response\": {\"id\": \"resp_0217943210303454d7552398ca1982f1d8c06d525f58d827d6f79\", \"object\": \"response\", \"created_at\": 1794321031, \"status\": \"in_progress\", \"model\": \"deepseek-ai/deepseek-v4.1-flash-1017\", \"output\": []}}\n\nevent: response.output_text.delta\ndata: {\"type\": \"response.output_text.delta\", \"content_index\": 0, \"delta\": \"2\", \"item_id\": \"msg_02179432103119100000000000000000000ffffac15568e439000\", \"output_index\": 1, \"sequence_number\": 14}\n\nevent: response.completed\ndata: {\"type\": \"response.completed\", \"sequence_number\": 18, \"response\": {\"id\": \"resp_0217943210303454d7552398ca1982f1d8c06d525f58d827d6f79\", \"object\": \"response\", \"created_at\": 1794321031, \"status\": \"completed\", \"model\": \"deepseek-ai/deepseek-v4.1-flash-1017\", \"output\": [{\"id\": \"rs_02179432103109200000000000000000000ffffac15568ebe30c0\", \"type\": \"reasoning\", \"status\": \"completed\"}, {\"id\": \"msg_02179432103119100000000000000000000ffffac15568e439000\", \"type\": \"message\", \"status\": \"completed\", \"role\": \"assistant\", \"content\": [{\"type\": \"output_text\", \"text\": \"2\"}]}], \"usage\": {\"input_tokens\": 34, \"output_tokens\": 12, \"total_tokens\": 46}}}\n\n"}},"exampleType":"examples"}},"exampleType":"examples"},"6e15063c-71fa-440a-a90d-3e6ede0ad6c5":{"description":"Invalid request parameters.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Errors may use top-level fields, a nested `error` object, or an object with `object=error`. Handle the structure actually returned and retain the error information and request identifiers for troubleshooting.","required":["type","message"],"properties":{"type":{"type":"string","example":"invalid_request_error","description":"Error type, which distinguishes authentication, request format, rate limiting, and other issues.","isRequired":true,"uniqueKey":"oneOf.0.type","typeLabel":"string"},"message":{"type":"string","description":"Error message, which may include a request or trace identifier. Retain the complete message for troubleshooting.","isRequired":true,"uniqueKey":"oneOf.0.message","typeLabel":"string"},"code":{"oneOf":[{"type":"string","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.0.code.oneOf.0","typeLabel":"string"},{"type":"integer","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.0.code.oneOf.1","typeLabel":"integer"},{"type":"null","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.0.code.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.0.code","typeLabel":"string | integer | null"}},"additionalProperties":true,"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Errors may use top-level fields, a nested `error` object, or an object with `object=error`. Handle the structure actually returned and retain the error information and request identifiers for troubleshooting.","required":["error"],"properties":{"error":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"Error message, which may include a request or trace identifier. Retain the complete message for troubleshooting.","isRequired":true,"uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"type":{"type":"string","description":"Error type, which distinguishes authentication, request format, rate limiting, and other issues.","uniqueKey":"oneOf.1.error.type","typeLabel":"string"},"code":{"oneOf":[{"type":"string","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.1.error.code.oneOf.0","typeLabel":"string"},{"type":"integer","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.1.error.code.oneOf.1","typeLabel":"integer"},{"type":"null","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.1.error.code.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.1.error.code","typeLabel":"string | integer | null"},"msg":{"type":"string","description":"Short error description.","uniqueKey":"oneOf.1.error.msg","typeLabel":"string"},"request_id":{"type":"string","description":"Platform-generated request ID for request correlation and troubleshooting.","uniqueKey":"oneOf.1.error.request_id","typeLabel":"string"},"traceId":{"type":"string","description":"Trace identifier returned in the error response.","uniqueKey":"oneOf.1.error.traceId","typeLabel":"string"},"trace_id":{"type":"string","description":"Trace identifier returned in the error response.","uniqueKey":"oneOf.1.error.trace_id","typeLabel":"string"}},"additionalProperties":true,"description":"Error information object.","isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"object"},"type":{"type":"string","example":"error","description":"Top-level type identifier in an error response.","uniqueKey":"oneOf.1.type","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","description":"Errors may use top-level fields, a nested `error` object, or an object with `object=error`. Handle the structure actually returned and retain the error information and request identifiers for troubleshooting.","required":["object","message"],"properties":{"object":{"type":"string","enum":["error"],"description":"Error object type, set to `error`.","isRequired":true,"uniqueKey":"oneOf.2.object","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Error message, which may include a request or trace identifier. Retain the complete message for troubleshooting.","isRequired":true,"uniqueKey":"oneOf.2.message","typeLabel":"string"},"type":{"type":"string","example":"BadRequestError","description":"Error type, which distinguishes authentication, request format, rate limiting, and other issues.","uniqueKey":"oneOf.2.type","typeLabel":"string"},"code":{"oneOf":[{"type":"integer","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.2.code.oneOf.0","typeLabel":"integer"},{"type":"string","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.2.code.oneOf.1","typeLabel":"string"},{"type":"null","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.2.code.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.2.code","typeLabel":"integer | string | null"}},"additionalProperties":true,"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"invalid_request_error","message":"\u003cstring>","code":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"f26ae060-b6ab-4e35-b779-92bc1bfcccd6":{"description":"Authentication failed.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Errors may use top-level fields, a nested `error` object, or an object with `object=error`. Handle the structure actually returned and retain the error information and request identifiers for troubleshooting.","required":["type","message"],"properties":{"type":{"type":"string","example":"invalid_request_error","description":"Error type, which distinguishes authentication, request format, rate limiting, and other issues.","isRequired":true,"uniqueKey":"oneOf.0.type","typeLabel":"string"},"message":{"type":"string","description":"Error message, which may include a request or trace identifier. Retain the complete message for troubleshooting.","isRequired":true,"uniqueKey":"oneOf.0.message","typeLabel":"string"},"code":{"oneOf":[{"type":"string","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.0.code.oneOf.0","typeLabel":"string"},{"type":"integer","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.0.code.oneOf.1","typeLabel":"integer"},{"type":"null","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.0.code.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.0.code","typeLabel":"string | integer | null"}},"additionalProperties":true,"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Errors may use top-level fields, a nested `error` object, or an object with `object=error`. Handle the structure actually returned and retain the error information and request identifiers for troubleshooting.","required":["error"],"properties":{"error":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"Error message, which may include a request or trace identifier. Retain the complete message for troubleshooting.","isRequired":true,"uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"type":{"type":"string","description":"Error type, which distinguishes authentication, request format, rate limiting, and other issues.","uniqueKey":"oneOf.1.error.type","typeLabel":"string"},"code":{"oneOf":[{"type":"string","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.1.error.code.oneOf.0","typeLabel":"string"},{"type":"integer","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.1.error.code.oneOf.1","typeLabel":"integer"},{"type":"null","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.1.error.code.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.1.error.code","typeLabel":"string | integer | null"},"msg":{"type":"string","description":"Short error description.","uniqueKey":"oneOf.1.error.msg","typeLabel":"string"},"request_id":{"type":"string","description":"Platform-generated request ID for request correlation and troubleshooting.","uniqueKey":"oneOf.1.error.request_id","typeLabel":"string"},"traceId":{"type":"string","description":"Trace identifier returned in the error response.","uniqueKey":"oneOf.1.error.traceId","typeLabel":"string"},"trace_id":{"type":"string","description":"Trace identifier returned in the error response.","uniqueKey":"oneOf.1.error.trace_id","typeLabel":"string"}},"additionalProperties":true,"description":"Error information object.","isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"object"},"type":{"type":"string","example":"error","description":"Top-level type identifier in an error response.","uniqueKey":"oneOf.1.type","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","description":"Errors may use top-level fields, a nested `error` object, or an object with `object=error`. Handle the structure actually returned and retain the error information and request identifiers for troubleshooting.","required":["object","message"],"properties":{"object":{"type":"string","enum":["error"],"description":"Error object type, set to `error`.","isRequired":true,"uniqueKey":"oneOf.2.object","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Error message, which may include a request or trace identifier. Retain the complete message for troubleshooting.","isRequired":true,"uniqueKey":"oneOf.2.message","typeLabel":"string"},"type":{"type":"string","example":"BadRequestError","description":"Error type, which distinguishes authentication, request format, rate limiting, and other issues.","uniqueKey":"oneOf.2.type","typeLabel":"string"},"code":{"oneOf":[{"type":"integer","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.2.code.oneOf.0","typeLabel":"integer"},{"type":"string","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.2.code.oneOf.1","typeLabel":"string"},{"type":"null","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.2.code.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.2.code","typeLabel":"integer | string | null"}},"additionalProperties":true,"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"example":{"error":{"msg":"authorization api key not valid","code":"unauthorized","message":"authorization api key not valid (request_id: 506ecc85-247e-4494-a5a9-00eef0053dcb)","type":"authentication_error","traceId":"d53ec10d0b8218f36fd5a15e7422f41a","request_id":"506ecc85-247e-4494-a5a9-00eef0053dcb"}},"examples":{"Example":{"title":"Example","value":{"error":{"msg":"authorization api key not valid","code":"unauthorized","message":"authorization api key not valid (request_id: 506ecc85-247e-4494-a5a9-00eef0053dcb)","type":"authentication_error","traceId":"d53ec10d0b8218f36fd5a15e7422f41a","request_id":"506ecc85-247e-4494-a5a9-00eef0053dcb"}}}},"exampleType":"examples"}},"exampleType":"examples"},"c023ab89-9daa-4b7e-b6a1-e28897d03aff":{"description":"Other error response. Use the HTTP status, error message, and request ID to investigate.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Errors may use top-level fields, a nested `error` object, or an object with `object=error`. Handle the structure actually returned and retain the error information and request identifiers for troubleshooting.","required":["type","message"],"properties":{"type":{"type":"string","example":"invalid_request_error","description":"Error type, which distinguishes authentication, request format, rate limiting, and other issues.","isRequired":true,"uniqueKey":"oneOf.0.type","typeLabel":"string"},"message":{"type":"string","description":"Error message, which may include a request or trace identifier. Retain the complete message for troubleshooting.","isRequired":true,"uniqueKey":"oneOf.0.message","typeLabel":"string"},"code":{"oneOf":[{"type":"string","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.0.code.oneOf.0","typeLabel":"string"},{"type":"integer","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.0.code.oneOf.1","typeLabel":"integer"},{"type":"null","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.0.code.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.0.code","typeLabel":"string | integer | null"}},"additionalProperties":true,"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Errors may use top-level fields, a nested `error` object, or an object with `object=error`. Handle the structure actually returned and retain the error information and request identifiers for troubleshooting.","required":["error"],"properties":{"error":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"Error message, which may include a request or trace identifier. Retain the complete message for troubleshooting.","isRequired":true,"uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"type":{"type":"string","description":"Error type, which distinguishes authentication, request format, rate limiting, and other issues.","uniqueKey":"oneOf.1.error.type","typeLabel":"string"},"code":{"oneOf":[{"type":"string","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.1.error.code.oneOf.0","typeLabel":"string"},{"type":"integer","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.1.error.code.oneOf.1","typeLabel":"integer"},{"type":"null","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.1.error.code.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.1.error.code","typeLabel":"string | integer | null"},"msg":{"type":"string","description":"Short error description.","uniqueKey":"oneOf.1.error.msg","typeLabel":"string"},"request_id":{"type":"string","description":"Platform-generated request ID for request correlation and troubleshooting.","uniqueKey":"oneOf.1.error.request_id","typeLabel":"string"},"traceId":{"type":"string","description":"Trace identifier returned in the error response.","uniqueKey":"oneOf.1.error.traceId","typeLabel":"string"},"trace_id":{"type":"string","description":"Trace identifier returned in the error response.","uniqueKey":"oneOf.1.error.trace_id","typeLabel":"string"}},"additionalProperties":true,"description":"Error information object.","isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"object"},"type":{"type":"string","example":"error","description":"Top-level type identifier in an error response.","uniqueKey":"oneOf.1.type","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","description":"Errors may use top-level fields, a nested `error` object, or an object with `object=error`. Handle the structure actually returned and retain the error information and request identifiers for troubleshooting.","required":["object","message"],"properties":{"object":{"type":"string","enum":["error"],"description":"Error object type, set to `error`.","isRequired":true,"uniqueKey":"oneOf.2.object","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Error message, which may include a request or trace identifier. Retain the complete message for troubleshooting.","isRequired":true,"uniqueKey":"oneOf.2.message","typeLabel":"string"},"type":{"type":"string","example":"BadRequestError","description":"Error type, which distinguishes authentication, request format, rate limiting, and other issues.","uniqueKey":"oneOf.2.type","typeLabel":"string"},"code":{"oneOf":[{"type":"integer","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.2.code.oneOf.0","typeLabel":"integer"},{"type":"string","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.2.code.oneOf.1","typeLabel":"string"},{"type":"null","description":"Error code. May be a string, integer, or `null`. Use the error type and message to investigate; do not rely only on numeric codes.","uniqueKey":"oneOf.2.code.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.2.code","typeLabel":"integer | string | null"}},"additionalProperties":true,"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"invalid_request_error","message":"\u003cstring>","code":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"f1954b83-e290-4cef-ac47-0a080d712a59":{"BearerAuth":{"type":"http","scheme":"bearer","description":"Authenticate with an API key using Bearer authentication. Do not expose real keys in documentation, code, or repositories.","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"3b7f6c08-1b92-44a5-8e59-5a767489e3f0":{"url":"https://api.scitix.ai/model-api","description":"Base URL for the ScitiX Model Inference API. This reference uses the URL without `/v1` and appends each endpoint path."}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Authenticate with an API key using Bearer authentication. Do not expose real keys in documentation, code, or repositories.","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Authenticate with an API key using Bearer authentication. Do not expose real keys in documentation, code, or repositories.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"model-inference/api/model-inference-api.json"},"subdomain":"scitix-adfc65c2","siteName":"ScitiX","title":"Create a response - ScitiX","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-18T11:30:13.314Z","originalFileLocation":"api-reference/responses/create-a-response.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=\"Generate a response from the specified model and text or input items. Results are returned in the output array. SSE streaming is supported. Before making a request, confirm that the model supports this protocol and the parameters you need.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ScitiX\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/scitix-adfc65c2/F8DlhDrdwumorHBL/_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/scitix-adfc65c2/F8DlhDrdwumorHBL/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/scitix-adfc65c2/F8DlhDrdwumorHBL/_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/scitix-adfc65c2/F8DlhDrdwumorHBL/_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/scitix-adfc65c2/F8DlhDrdwumorHBL/_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/scitix-adfc65c2/F8DlhDrdwumorHBL/_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/scitix-adfc65c2/F8DlhDrdwumorHBL/_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/scitix-adfc65c2/F8DlhDrdwumorHBL/_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/scitix-adfc65c2/F8DlhDrdwumorHBL/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a response - ScitiX\">\u003cmeta data-mint-head property=\"og:description\" content=\"Generate a response from the specified model and text or input items. Results are returned in the output array. SSE streaming is supported. Before making a request, confirm that the model supports this protocol and the parameters you need.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ScitiX Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.scitix.ai/api-reference/responses/create-a-response\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://scitix-adfc65c2.mintlify.site/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=Create+a+response\u0026amp;description=Generate+a+response+from+the+specified+model+and+text+or+input+items.+Results+are+returned+in+the+%60output%60+array.+SSE+streaming+is+supported.%0A%0ABefore+making+a+r\u0026amp;theme=da487f751a9ee16756fc9e83\u0026amp;signature=2fd01fefa028a165bda8fb987f2438e0e4e636f0c0b09f16e678f58cae8f0b23\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a response - ScitiX\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Generate a response from the specified model and text or input items. Results are returned in the output array. SSE streaming is supported. Before making a request, confirm that the model supports this protocol and the parameters you need.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://scitix-adfc65c2.mintlify.site/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=Create+a+response\u0026amp;description=Generate+a+response+from+the+specified+model+and+text+or+input+items.+Results+are+returned+in+the+%60output%60+array.+SSE+streaming+is+supported.%0A%0ABefore+making+a+r\u0026amp;theme=da487f751a9ee16756fc9e83\u0026amp;signature=2fd01fefa028a165bda8fb987f2438e0e4e636f0c0b09f16e678f58cae8f0b23\">\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/scitix-adfc65c2/F8DlhDrdwumorHBL/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ScitiX\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3B82F6\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"wjgu73VHH7_u9usse-Wjn4trUyle8KYE5PNGkBlTWyk\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.scitix.ai/api-reference/responses/create-a-response\">\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/create-a-response.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://scitix.ai/#organization\",\"name\":\"ScitiX\",\"url\":\"https://scitix.ai/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/scitix-adfc65c2/dXu1tJ76njQB8375/assets/logo/logo.png?fit=max\u0026auto=format\u0026n=dXu1tJ76njQB8375\u0026q=85\u0026s=f7d3323c409d9e260f4380cd47bf1728\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.scitix.ai#website\",\"name\":\"ScitiX\",\"url\":\"https://docs.scitix.ai\",\"publisher\":{\"@id\":\"https://scitix.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.scitix.ai/api-reference/responses/create-a-response#webpage\",\"url\":\"https://docs.scitix.ai/api-reference/responses/create-a-response\",\"name\":\"Create a response\",\"description\":\"Generate a response from the specified model and text or input items. Results are returned in the output array. SSE streaming is supported. Before making a request, confirm that the model supports this protocol and the parameters you need.\",\"dateModified\":\"2026-11-18T11:30:13.314Z\",\"isPartOf\":{\"@id\":\"https://docs.scitix.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.scitix.ai/api-reference/responses/create-a-response#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.scitix.ai/api-reference/responses/create-a-response#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Guides\",\"item\":\"https://docs.scitix.ai/model-inference/api/authentication\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API Reference\",\"item\":\"https://docs.scitix.ai/api-reference/models/list-models\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create a response\",\"item\":\"https://docs.scitix.ai/api-reference/responses/create-a-response\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.scitix.ai/api-reference/responses/create-a-response#apireference\",\"headline\":\"Create a response\",\"name\":\"Create a response\",\"description\":\"Generate a response from the specified model and text or input items. Results are returned in the output array. SSE streaming is supported. Before making a request, confirm that the model supports this protocol and the parameters you need.\",\"url\":\"https://docs.scitix.ai/api-reference/responses/create-a-response\",\"mainEntityOfPage\":{\"@id\":\"https://docs.scitix.ai/api-reference/responses/create-a-response#webpage\"},\"dateModified\":\"2026-11-18T11:30:13.314Z\",\"publisher\":{\"@id\":\"https://scitix.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.scitix.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ScitiX\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ScitiX\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/responses/create-a-response.md","siteName":"ScitiX","nav":{"global":null,"tabs":[{"tab":"Model Inference","groups":[{"group":"Get Started","pages":[{"title":"Model Inference","sidebarTitle":"Overview","href":"/model-inference/get-started/model-inference-overview"},{"title":"Choose and test a model","href":"/model-inference/get-started/model-selection-playground"},{"title":"Make your first API call","href":"/model-inference/get-started/first-api-call"}]},{"group":"Model Capabilities","pages":[{"title":"Text Generation","href":"/model-inference/models/text-generation"},{"title":"Reasoning","href":"/model-inference/models/reasoning"},{"title":"Vision and Multimodal","href":"/model-inference/models/vision-and-multimodal"},{"title":"Embedding","href":"/model-inference/models/embedding"},{"title":"Speech","href":"/model-inference/models/speech"},{"group":"Tools and Output","pages":[{"title":"Function Calling","sidebarTitle":"Function Calling","href":"/model-inference/models/function-calling"},{"title":"Structured Output","sidebarTitle":"Structured Output","href":"/model-inference/models/structured-output"},{"title":"Streaming","sidebarTitle":"Streaming","href":"/model-inference/models/streaming"}]},{"group":"Context Handling","pages":[{"title":"Long Context","sidebarTitle":"Long Context","href":"/model-inference/models/long-context"},{"title":"Prompt Caching","sidebarTitle":"Prompt Caching","href":"/model-inference/models/prompt-caching"}]}]},{"group":"API Guides","pages":[{"title":"API authentication","href":"/model-inference/api/authentication"},{"group":"API Reference","pages":[{"title":"List models","deprecated":null,"version":null,"openapi":"/model-inference/api/model-inference-api.json get /models","href":"/api-reference/models/list-models"},{"title":"Create a chat completion","deprecated":null,"version":null,"openapi":"/model-inference/api/model-inference-api.json post /chat/completions","href":"/api-reference/chat-completions/create-a-chat-completion"},{"title":"Create a message","description":"Generate a message from the specified model and message list. Results are returned in the `content` array. SSE streaming is supported.\n\nBefore making a request, confirm that the model supports this protocol and the parameters you need.","deprecated":null,"version":null,"openapi":"/model-inference/api/model-inference-api.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Create a response","deprecated":null,"version":null,"openapi":"/model-inference/api/model-inference-api.json post /responses","href":"/api-reference/responses/create-a-response"}]},{"title":"API token usage (usage)","sidebarTitle":"Token usage","description":"Read token usage from Chat Completions, Responses, and Messages, including cache and reasoning counts and streaming usage events.","href":"/model-inference/api/usage"},{"title":"Rate limits","sidebarTitle":"Rate limits","href":"/model-inference/api/rate-limits"},{"title":"Error handling","href":"/model-inference/api/error-handling"}]},{"group":"Usage and Billing","pages":[{"title":"Token Usage and Billing","href":"/model-inference/usage/billing"},{"title":"View Usage","href":"/model-inference/usage/view-usage"},{"title":"View Metrics","href":"/model-inference/usage/view-metrics"},{"title":"API Keys","href":"/model-inference/usage/api-keys"}]},{"group":"Tool Integrations","pages":[{"title":"Integrations Overview","sidebarTitle":"Overview","href":"/model-inference/integrations/overview"},{"group":"Coding Agents","expanded":false,"pages":[{"title":"Claude Code","href":"/model-inference/integrations/claude-code"},{"title":"Codex","href":"/model-inference/integrations/codex"},{"title":"DeepSeek Harness","href":"/model-inference/integrations/deepseek-harness"},{"title":"OpenCode","href":"/model-inference/integrations/opencode"},{"title":"Qwen Code","href":"/model-inference/integrations/qwen-code"},{"title":"Aider","href":"/model-inference/integrations/aider"},{"title":"Goose","href":"/model-inference/integrations/goose"},{"title":"Crush","href":"/model-inference/integrations/crush"},{"title":"CC-Switch","href":"/model-inference/integrations/cc-switch"},{"title":"Hermes Agent","href":"/model-inference/integrations/hermes"}]},{"group":"IDEs \u0026 Extensions","expanded":false,"pages":[{"title":"Cline","href":"/model-inference/integrations/cline"},{"title":"Cursor","href":"/model-inference/integrations/cursor"},{"title":"Roo Code","href":"/model-inference/integrations/roo-code"},{"title":"Kilo Code","href":"/model-inference/integrations/kilo-code"},{"title":"TRAE","href":"/model-inference/integrations/trae"},{"title":"Continue","href":"/model-inference/integrations/continue"},{"title":"Zed","href":"/model-inference/integrations/zed"}]},{"group":"Chat Clients","expanded":false,"pages":[{"title":"Cherry Studio","href":"/model-inference/integrations/cherry-studio"},{"title":"LobeChat","href":"/model-inference/integrations/lobechat"},{"title":"Open WebUI","href":"/model-inference/integrations/open-webui"},{"title":"NextChat","href":"/model-inference/integrations/nextchat"},{"title":"Chatbox","href":"/model-inference/integrations/chatbox"},{"title":"LibreChat","href":"/model-inference/integrations/librechat"}]},{"group":"Knowledge \u0026 RAG","expanded":false,"pages":[{"title":"RAGFlow","href":"/model-inference/integrations/ragflow"},{"title":"AnythingLLM","href":"/model-inference/integrations/anythingllm"},{"title":"FastGPT","href":"/model-inference/integrations/fastgpt"},{"title":"DB-GPT","href":"/model-inference/integrations/db-gpt"},{"title":"wiseflow","href":"/model-inference/integrations/wiseflow"}]},{"group":"Notes \u0026 Writing","expanded":false,"pages":[{"title":"Obsidian Copilot","href":"/model-inference/integrations/obsidian-copilot"},{"title":"Zotero","href":"/model-inference/integrations/zotero"},{"title":"SiYuan","href":"/model-inference/integrations/siyuan"}]},{"group":"Workflow \u0026 App Platforms","expanded":false,"pages":[{"title":"Dify","href":"/model-inference/integrations/dify"},{"title":"OpenClaw","href":"/model-inference/integrations/openclaw"},{"title":"Langflow","href":"/model-inference/integrations/langflow"},{"title":"Flowise","href":"/model-inference/integrations/flowise"},{"title":"n8n","href":"/model-inference/integrations/n8n"},{"title":"Deep Research","href":"/model-inference/integrations/deep-research"},{"title":"LangBot","href":"/model-inference/integrations/langbot"},{"title":"Refly","href":"/model-inference/integrations/refly"}]},{"group":"Frameworks \u0026 SDKs","expanded":false,"pages":[{"title":"LangChain","href":"/model-inference/integrations/langchain"},{"title":"LlamaIndex","href":"/model-inference/integrations/llamaindex"},{"title":"Vercel AI SDK","href":"/model-inference/integrations/vercel-ai-sdk"},{"title":"Pydantic AI","href":"/model-inference/integrations/pydantic-ai"},{"title":"LiteLLM","href":"/model-inference/integrations/litellm"},{"title":"CrewAI","href":"/model-inference/integrations/crewai"},{"title":"AutoGen","href":"/model-inference/integrations/autogen"},{"title":"OpenManus","href":"/model-inference/integrations/openmanus"},{"title":"LazyLLM","href":"/model-inference/integrations/lazyllm"},{"title":"Chat2Graph","href":"/model-inference/integrations/chat2graph"}]},{"group":"Translation","expanded":false,"pages":[{"title":"Immersive Translate","href":"/model-inference/integrations/immersive-translate"},{"title":"PDFMathTranslate Next","href":"/model-inference/integrations/pdfmathtranslate-next"}]}]},{"group":"Documentation tools","pages":[{"title":"Use ScitiX docs with AI","sidebarTitle":"Use docs with AI","href":"/model-inference/get-started/connect-docs-to-ai"}]}]},{"tab":"Siverse","pages":[{"title":"Siverse","href":"/siverse/get-started/ai-platform-overview"}]},{"tab":"GPU Cloud","pages":[{"title":"GPU Cloud","href":"/gpu-cloud/get-started/gpu-cloud-overview"}]},{"tab":"Account","pages":[{"title":"Account","href":"/account/account-management/overview"}]},{"tab":"Updates","pages":[{"title":"Updates","href":"/changelog/model-launch-records"}]}]},"basePath":"","title":"Create a response - ScitiX","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-BOAJk9BH.js","dist-Dl6_zDnT.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-CiUHMMOm.js","snippetPresets-BgfXU7Bw.js","utils-DWvOwgy_.js","style-to-object-BY3JEAdk.js","utils-BN7RXSMJ.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CFw8bq89.js","conditional-requirements-CFM0id0Q.js","cloneDeep-CAwdfOU2.js","_Uint8Array-BJr8e-ZL.js","isObject-FP1Yky1u.js","ApiExamples-XX0UgMZK.js","usePlaygroundInputsStore-DXDFSa1V.js","shallow-CdX5aREi.js","isEqual-CoOaxexF.js","CodeSnippets-Cg2wpzWm.js","CodeSnippet-D_HwgQO_.js","getApiPlaygroundDisplay-CmCoerhe.js","Page-CVJ-f_k1.js","DynamicMarkdown-CQM9Bhbv.js","SectionHeading-DpbrP8nQ.js","icon-BPCgijHy.js","MethodPill-GQ8DuY0c.js","getPastedJson-Cb5mT31m.js","Check2Icon-a7bUI6e8.js","axios-CsQoIw0U.js","Markdown-CX2QY19L.js","AssistantPageLink-CY3bFglh.js"]}