The server normalizes defaults, filters incompatible channels, and applies each remaining channel’s pricing formula. Duration, resolution, audio, quality, and output_count may all change the total.The maximum reservation covers one successful route per result item, not the sum of every possible failed attempt. A quote is an estimate of accepted limits, not a promise that a preview model will run.
channel_quotes[].credits is the total for the whole batch on that route, not a per-item price. This endpoint returns an unreserved preview estimate, not a quote_id or a locked purchase offer.
max_credits is your cap for the entire request. If the server’s maximum reservation is higher, it rejects the whole submission before any generation. It does not silently reduce output_count or divide a smaller budget between items.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"APIstable","colors":{"primary":"#6256e8","light":"#7468f2","dark":"#a9a0ff"},"api":{"playground":{"display":"interactive","proxy":true},"examples":{"languages":["curl","javascript","python"]}},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","href":"en/quickstart"},{"language":"cn","href":"cn/quickstart"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"apistable","hasAudioNarration":false,"actualSubdomain":"apistable","customDomains":[],"gitSource":{"type":"artifacts","owner":"prod","repo":"e3efe432bfca6de9b68154bf","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6ae5e3ed778ca28c5ec178e9"},"entitlements":{},"buildId":"6ae5e44b511388ce7ebc68a1","clientVersion":"0.0.4043","searchFilterCounts":[{"language":"cn","tag":"接口参考","count":6},{"language":"cn","tag":"核心概念","count":6},{"language":"en","tag":"API reference","count":6},{"language":"en","tag":"Core concepts","count":6},{"language":"cn","tag":"快速开始","count":2},{"language":"en","tag":"Get started","count":2}]},"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":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"en/quotes","slug":"/en/quotes","pageMetadata":{"title":"Get a quote","description":"See eligible channel prices and the maximum credit reservation.","openapi":"openapi.json POST /v1/quotes","href":"/en/quotes"},"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: \"See eligible channel prices and the maximum credit reservation.\"\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={blockquote:`blockquote`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.blockquote,{children:[`\n`,_jsx(_components.p,{children:`API preview: generation providers are not connected. An authenticated request can return 503 without creating a task or charging credits.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`quote-the-complete-input`,children:`Quote the complete input`}),`\n`,_jsx(_components.p,{children:`The server normalizes defaults, filters incompatible channels, and applies each remaining channel’s pricing formula. Duration, resolution, audio, quality, and output_count may all change the total.`}),`\n`,_jsx(_components.p,{children:`The maximum reservation covers one successful route per result item, not the sum of every possible failed attempt. A quote is an estimate of accepted limits, not a promise that a preview model will run.`}),`\n`,_jsx(Heading,{level:`2`,id:`understand-the-upper-bound`,children:`Understand the upper bound`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`23`,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:`23`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"is_preview\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prism-image-2\",`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"A sculptural chair in warm afternoon light\",`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"1024\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"output_count\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 4,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"estimated_credits\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 80,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"max_reserved_credits\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 240,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"channel_quotes\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"channel_type\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"third_party\",`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"credits\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 80`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"channel_type\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"official\",`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"credits\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 240`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"price_version\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"preview-2026-10-29\",`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"live_available\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsx(_components.p,{children:`channel_quotes[].credits is the total for the whole batch on that route, not a per-item price. This endpoint returns an unreserved preview estimate, not a quote_id or a locked purchase offer.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`set-max_credits`,children:`Set max_credits`}),`\n`,_jsx(_components.p,{children:`max_credits is your cap for the entire request. If the server’s maximum reservation is higher, it rejects the whole submission before any generation. It does not silently reduce output_count or divide a smaller budget between items.`})]})}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":"Get a quote","description":"See eligible channel prices and the maximum credit reservation.","openapi":"openapi.json POST /v1/quotes","href":"/en/quotes"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Quote the complete input","slug":"quote-the-complete-input","depth":2,"children":[]},{"title":"Understand the upper bound","slug":"understand-the-upper-bound","depth":2,"children":[]},{"title":"Set max_credits","slug":"set-max_credits","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createQuote","tags":["Quotes"],"summary":"Validate input and estimate credits / 校验与估价","security":[],"description":"See eligible channel prices and the maximum credit reservation.","requestBody":"8653eef7-7176-450a-9551-8b6a5327fe0f","responses":{"200":"2f017198-31fa-492a-8f41-d03c847da189","400":"fb5322b9-4558-4b97-be89-b9fc1040bb17","404":"f6b788b6-ad65-458f-98f4-58eec3e5a258","413":"15a9f28f-aea9-48f1-8f98-5955c349afee","422":"80be2a2a-5f22-4274-ac51-0ef3c309c5c5","503":"20548828-7529-4026-acf7-993c331940be"},"method":"post","type":"path","servers":["68fcffb3-177d-4931-8788-1cd087a22ddd"],"path":"/v1/quotes","baseUrlOptions":["https://apistable.com"],"title":"Validate input and estimate credits / 校验与估价","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["model","input"],"properties":{"model":{"type":"string","minLength":1,"example":"prism-image-2","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"input":{"type":"object","additionalProperties":false,"required":["prompt"],"description":"Current preview input. Supported fields vary by modality and exact catalog model. No live provider mapping is implied.","properties":{"prompt":{"type":"string","minLength":1,"maxLength":4000,"isRequired":true,"uniqueKey":"input.prompt","typeLabel":"string"},"duration_seconds":{"type":"integer","description":"Video-only; must match the model duration list.","uniqueKey":"input.duration_seconds","typeLabel":"integer"},"resolution":{"type":"string","description":"Must match the model resolution list.","uniqueKey":"input.resolution","typeLabel":"string"},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1","4:3"],"uniqueKey":"input.aspect_ratio","typeLabel":"enum\u003cstring>"},"seed":{"type":"integer","minimum":0,"uniqueKey":"input.seed","typeLabel":"integer"},"generate_audio":{"type":"boolean","description":"Video only, subject to model support.","uniqueKey":"input.generate_audio","typeLabel":"boolean"},"instrumental":{"type":"boolean","description":"Music only.","uniqueKey":"input.instrumental","typeLabel":"boolean"},"lyrics":{"type":"string","maxLength":5000,"description":"Music only.","uniqueKey":"input.lyrics","typeLabel":"string"}},"isRequired":true,"uniqueKey":"input","typeLabel":"object"},"output_count":{"type":"integer","minimum":1,"maximum":4,"default":1,"description":"Target result count. Images/videos accept 1–4; music and LLM must remain 1. Not a concurrency guarantee. / 目标结果数,非同时并发保证。","uniqueKey":"output_count","typeLabel":"integer"},"fallback":{"type":"boolean","default":false,"description":"Authorizes a higher-priced compatible official fallback after an eligible confirmed failure. Live execution is disabled in this build.","uniqueKey":"fallback","typeLabel":"boolean"},"max_credits":{"type":"integer","minimum":0,"description":"Whole-request reservation cap. Reject the entire request when max_reserved_credits exceeds it.","uniqueKey":"max_credits","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"model":"prism-image-2","input":{"prompt":"\u003cstring>","duration_seconds":123,"resolution":"\u003cstring>","seed":1,"generate_audio":true,"instrumental":true,"lyrics":"\u003cstring>"},"output_count":1,"fallback":false,"max_credits":1}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"2f017198-31fa-492a-8f41-d03c847da189":{"description":"Preview quote","content":{"application/json":{"schema":{"type":"object","required":["is_preview","model","input","output_count","estimated_credits","max_reserved_credits","channel_quotes","price_version","live_available"],"properties":{"is_preview":{"const":true,"isRequired":true,"uniqueKey":"is_preview","typeLabel":"any"},"model":{"type":"string","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"input":{"type":"object","additionalProperties":false,"required":["prompt"],"description":"Current preview input. Supported fields vary by modality and exact catalog model. No live provider mapping is implied.","properties":{"prompt":{"type":"string","minLength":1,"maxLength":4000,"isRequired":true,"uniqueKey":"input.prompt","typeLabel":"string"},"duration_seconds":{"type":"integer","description":"Video-only; must match the model duration list.","uniqueKey":"input.duration_seconds","typeLabel":"integer"},"resolution":{"type":"string","description":"Must match the model resolution list.","uniqueKey":"input.resolution","typeLabel":"string"},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1","4:3"],"uniqueKey":"input.aspect_ratio","typeLabel":"enum\u003cstring>"},"seed":{"type":"integer","minimum":0,"uniqueKey":"input.seed","typeLabel":"integer"},"generate_audio":{"type":"boolean","description":"Video only, subject to model support.","uniqueKey":"input.generate_audio","typeLabel":"boolean"},"instrumental":{"type":"boolean","description":"Music only.","uniqueKey":"input.instrumental","typeLabel":"boolean"},"lyrics":{"type":"string","maxLength":5000,"description":"Music only.","uniqueKey":"input.lyrics","typeLabel":"string"}},"isRequired":true,"uniqueKey":"input","typeLabel":"object"},"output_count":{"type":"integer","minimum":1,"maximum":4,"isRequired":true,"uniqueKey":"output_count","typeLabel":"integer"},"estimated_credits":{"type":"number","minimum":0,"description":"Credits, not USD. / 积分,非美元。","isRequired":true,"uniqueKey":"estimated_credits","typeLabel":"number"},"max_reserved_credits":{"type":"number","minimum":0,"description":"Credits, not USD. / 积分,非美元。","isRequired":true,"uniqueKey":"max_reserved_credits","typeLabel":"number"},"channel_quotes":{"type":"array","items":{"type":"object","required":["channel_type","credits"],"properties":{"channel_type":{"type":"string","enum":["third_party","official"],"isRequired":true,"uniqueKey":"channel_quotes.items.[INDEX].channel_type","typeLabel":"enum\u003cstring>"},"credits":{"type":"number","minimum":0,"description":"Whole-batch total using this channel. / 整批渠道总积分。","isRequired":true,"uniqueKey":"channel_quotes.items.[INDEX].credits","typeLabel":"number"}},"uniqueKey":"channel_quotes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"channel_quotes","typeLabel":"object[]"},"price_version":{"type":"string","isRequired":true,"uniqueKey":"price_version","typeLabel":"string"},"live_available":{"const":false,"isRequired":true,"uniqueKey":"live_available","typeLabel":"any"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"is_preview":true,"model":"\u003cstring>","input":{"prompt":"\u003cstring>","duration_seconds":123,"resolution":"\u003cstring>","aspect_ratio":"16:9","seed":1,"generate_audio":true,"instrumental":true,"lyrics":"\u003cstring>"},"output_count":2,"estimated_credits":1,"max_reserved_credits":1,"channel_quotes":[{"channel_type":"third_party","credits":1}],"price_version":"\u003cstring>","live_available":false}}},"exampleType":"generated"}},"exampleType":"generated"},"fb5322b9-4558-4b97-be89-b9fc1040bb17":{"description":"validation_error, unsupported_parameter, invalid_output_count, unsupported_resolution, or unsupported_duration","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"f6b788b6-ad65-458f-98f4-58eec3e5a258":{"description":"model_not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"15a9f28f-aea9-48f1-8f98-5955c349afee":{"description":"payload_too_large","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"80be2a2a-5f22-4274-ac51-0ef3c309c5c5":{"description":"credit_limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"20548828-7529-4026-acf7-993c331940be":{"description":"model_unavailable or service_unavailable","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{"68fcffb3-177d-4931-8788-1cd087a22ddd":{"url":"https://apistable.com","description":"APIstable API"}}},"originalFileLocation":"openapi.json"},"subdomain":"apistable","siteName":"APIstable","title":"Get a quote - APIstable","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/quotes","matchLevel":0},"cn":{"href":"/cn/quotes","matchLevel":1}}},"lastModified":"2026-10-31T12:51:27.181Z","originalFileLocation":"en/quotes.mdx","locale":"en"},"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=\"See eligible channel prices and the maximum credit reservation.\">\u003cmeta data-mint-head name=\"application-name\" content=\"APIstable\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/apistable/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/apistable/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/apistable/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/apistable/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get a quote - APIstable\">\u003cmeta data-mint-head property=\"og:description\" content=\"See eligible channel prices and the maximum credit reservation.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"APIstable\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://apistable.mintlify.app/en/quotes\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://apistable.mintlify.app/_mintlify/api/og/v2?division=API+reference\u0026amp;title=Get+a+quote\u0026amp;description=See+eligible+channel+prices+and+the+maximum+credit+reservation.\u0026amp;theme=0021cbb4aa87915489c6b7ac\u0026amp;signature=fc64314b24a2c58c65f8e57987a0421594d76f4189568c479b022ddbc2b1d90f\">\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=\"Get a quote - APIstable\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"See eligible channel prices and the maximum credit reservation.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://apistable.mintlify.app/_mintlify/api/og/v2?division=API+reference\u0026amp;title=Get+a+quote\u0026amp;description=See+eligible+channel+prices+and+the+maximum+credit+reservation.\u0026amp;theme=0021cbb4aa87915489c6b7ac\u0026amp;signature=fc64314b24a2c58c65f8e57987a0421594d76f4189568c479b022ddbc2b1d90f\">\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=\"https://mintlify.s3.us-west-1.amazonaws.com/apistable/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"APIstable\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6256e8\">\u003clink data-mint-head rel=\"canonical\" href=\"https://apistable.mintlify.app/en/quotes\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/quotes.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://apistable.mintlify.app/en/quotes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://apistable.mintlify.app/cn/quotes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://apistable.mintlify.app/en/quotes\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://apistable.mintlify.app/#organization\",\"name\":\"APIstable\",\"url\":\"https://apistable.mintlify.app\"},{\"@type\":\"WebSite\",\"@id\":\"https://apistable.mintlify.app#website\",\"name\":\"APIstable\",\"url\":\"https://apistable.mintlify.app\",\"publisher\":{\"@id\":\"https://apistable.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://apistable.mintlify.app/en/quotes#webpage\",\"url\":\"https://apistable.mintlify.app/en/quotes\",\"name\":\"Get a quote\",\"description\":\"See eligible channel prices and the maximum credit reservation.\",\"dateModified\":\"2026-10-31T12:51:27.181Z\",\"isPartOf\":{\"@id\":\"https://apistable.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://apistable.mintlify.app/en/quotes#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://apistable.mintlify.app/en/quotes#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API reference\",\"item\":\"https://apistable.mintlify.app/en/models\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get a quote\",\"item\":\"https://apistable.mintlify.app/en/quotes\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://apistable.mintlify.app/en/quotes#apireference\",\"headline\":\"Get a quote\",\"name\":\"Get a quote\",\"description\":\"See eligible channel prices and the maximum credit reservation.\",\"url\":\"https://apistable.mintlify.app/en/quotes\",\"mainEntityOfPage\":{\"@id\":\"https://apistable.mintlify.app/en/quotes#webpage\"},\"dateModified\":\"2026-10-31T12:51:27.181Z\",\"publisher\":{\"@id\":\"https://apistable.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://apistable.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"APIstable\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"APIstable","nav":{"global":null,"languages":[{"language":"en","groups":[{"group":"Get started","pages":[{"title":"Your first request","openapi":"openapi.json POST /v1/tasks","href":"/en/quickstart"},{"title":"Authentication","href":"/en/authentication"}]},{"group":"API reference","pages":[{"title":"List models","openapi":"openapi.json GET /v1/models","href":"/en/models"},{"title":"List tasks","description":"Read your account’s stored tasks.","openapi":"openapi.json GET /v1/tasks","href":"/en/list-tasks"},{"title":"Get a quote","openapi":"openapi.json POST /v1/quotes","href":"/en/quotes"},{"title":"Create a task","description":"Submit asynchronous image, video, or music work.","openapi":"openapi.json POST /v1/tasks","href":"/en/create-task"},{"title":"Query a task","openapi":"openapi.json GET /v1/tasks/{id}","href":"/en/query-task"},{"title":"LLM \u0026 streaming","openapi":"openapi.json POST /v1/chat/completions","href":"/en/llm"}]},{"group":"Core concepts","pages":[{"title":"Multiple results","href":"/en/outputs"},{"title":"Routing \u0026 fallback","href":"/en/fallback"},{"title":"Credits \u0026 billing","openapi":"openapi.json GET /v1/balance","href":"/en/credits"},{"title":"Music works \u0026 assets","href":"/en/music"},{"title":"Callbacks \u0026 polling","href":"/en/webhooks"},{"title":"Errors \u0026 idempotency","href":"/en/errors"}]}]},{"language":"cn","pages":[{"title":"cn","href":"/cn/quotes"}]}]},"basePath":"","title":"Get a quote - APIstable","buildId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","deploymentId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-B7XKH4J3.js","utils-lOYzL7z-.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DF6jUUIM.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dpsj5f7C.js","snippetPresets-CYeiDe8v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CUFz1YZ_.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D8H_iLS4.js","shallow-DdluZBHX.js","getApiPlaygroundDisplay-B9922vev.js","CodeSnippet-CMoRNGYs.js","CodeSnippets-DwyrPHuw.js","Page-DSVu9Ucl.js","getPastedJson-G-zIvlHh.js","icon-B03fnEy0.js","MethodPill-CW7teklc.js","DuplicateIcon-CtO8eekd.js","createIcon-DZTKdM_A.js","DynamicMarkdown-D5M2At0B.js","SectionHeading-C_2NaA2U.js","axios-vUo_bRtp.js","Markdown-D7QRHV3m.js","clsx-D1Z-ELXV.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-lvhuD9Du.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CKfC4ywL.js"]}