{
"error": {
"code": "provider_not_configured",
"message": "Live model providers are not connected in this build. No credits were reserved or charged."
}
}
{
"error": {
"code": "provider_not_configured",
"message": "Live model providers are not connected in this build. No credits were reserved or charged."
}
}
API preview: generation providers are not connected. An authenticated request can return 503 without creating a task or charging credits.
When live execution is enabled, successful acceptance atomically records the operation, result items, credit reservation, and durable scheduling record. HTTP 202 means work is accepted, not that a model has finished.With output_count=4, you receive one task ID containing four stable items. The worker schedules each item within account and provider limits. There is no guarantee that all four start simultaneously.
During this build, real provider execution is not connected. A request must not manufacture a successful model output or a completed paid generation.
Once live task acceptance is enabled, send Idempotency-Key and retain it with the input. In this build, POST /v1/tasks rejects live execution before creating an operation, so the header does not yet produce a stored operation. Reusing it with the same input refers to the original operation; changing quantity, fallback, or the credit cap should return a conflict. Deliberately generating again requires a new key and a new paid operation.Errors and recovery
{"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/create-task","slug":"/en/create-task","pageMetadata":{"title":"Create a task","description":"Submit asynchronous image, video, or music work.","openapi":"openapi.json POST /v1/tasks","href":"/en/create-task"},"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: \"Submit asynchronous image, video, or music work.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,blockquote:`blockquote`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Heading,Table}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,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:`request-body`,children:`Request body`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Behavior`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`model`}),_jsx(_components.td,{children:`string · required`}),_jsx(_components.td,{children:`Exact model and operation ID.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`input`}),_jsx(_components.td,{children:`object · required`}),_jsx(_components.td,{children:`Validated against that model’s schema.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`output_count`}),_jsx(_components.td,{children:`integer · default 1`}),_jsx(_components.td,{children:`Images/videos only; 1–4 target items.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`fallback`}),_jsx(_components.td,{children:`boolean · default false`}),_jsx(_components.td,{children:`Authorizes eligible official fallback.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`max_credits`}),_jsx(_components.td,{children:`non-negative integer · optional`}),_jsx(_components.td,{children:`Maximum total reservation you accept.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`planned-live-acceptance`,children:`Planned live acceptance`}),`\n`,_jsx(_components.p,{children:`When live execution is enabled, successful acceptance atomically records the operation, result items, credit reservation, and durable scheduling record. HTTP 202 means work is accepted, not that a model has finished.`}),`\n`,_jsx(_components.p,{children:`With output_count=4, you receive one task ID containing four stable items. The worker schedules each item within account and provider limits. There is no guarantee that all four start simultaneously.`}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsx(_components.p,{children:`During this build, real provider execution is not connected. A request must not manufacture a successful model output or a completed paid generation.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`planned-idempotent-acceptance`,children:`Planned idempotent acceptance`}),`\n`,_jsx(_components.p,{children:`Once live task acceptance is enabled, send Idempotency-Key and retain it with the input. In this build, POST /v1/tasks rejects live execution before creating an operation, so the header does not yet produce a stored operation. Reusing it with the same input refers to the original operation; changing quantity, fallback, or the credit cap should return a conflict. Deliberately generating again requires a new key and a new paid operation.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`/en/errors`,children:`Errors and recovery`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a task","description":"Submit asynchronous image, video, or music work.","openapi":"openapi.json POST /v1/tasks","href":"/en/create-task"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request body","slug":"request-body","depth":2,"children":[]},{"title":"Planned live acceptance","slug":"planned-live-acceptance","depth":2,"children":[]},{"title":"Planned idempotent acceptance","slug":"planned-idempotent-acceptance","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createTaskPreview","tags":["Tasks"],"summary":"Generation submission placeholder / 生成提交预览","security":["2cd05718-3f91-4406-9abd-af7f977b63c8"],"description":"Submit asynchronous image, video, or music work.","parameters":["9c01935e-d4e0-4317-b2b7-1ac688a7af50"],"requestBody":"26f4c347-42dc-471e-add8-613f88794296","responses":{"400":"b3dbcd6c-1b33-49a2-9d95-f80c0aebab9a","401":"f16869f9-b79e-432d-bd13-6c4d69f9b13e","403":"827869f1-d5bc-47bf-90b9-4046edf15afb","404":"aad0b906-eb50-4f10-aaad-b8989de307a7","413":"f9929c6f-72d9-42f5-97b8-c23117e5d3ed","422":"33891754-c0b0-434d-a97e-e20a818d1758","503":"ab027c65-2d62-4609-b799-33df36e496fd"},"method":"post","type":"path","servers":["68fcffb3-177d-4931-8788-1cd087a22ddd"],"path":"/v1/tasks","baseUrlOptions":["https://apistable.com"],"title":"Generation submission placeholder / 生成提交预览","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"9c01935e-d4e0-4317-b2b7-1ac688a7af50":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","isRequired":false,"description":"Reserved for live acceptance. No task is currently created or deduplicated by this header.","uniqueKey":"","typeLabel":"string"},"description":"Reserved for live acceptance. No task is currently created or deduplicated by this header."}},"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":{"b3dbcd6c-1b33-49a2-9d95-f80c0aebab9a":{"description":"Invalid or unsupported input","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"},"f16869f9-b79e-432d-bd13-6c4d69f9b13e":{"description":"invalid_api_key","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"},"827869f1-d5bc-47bf-90b9-4046edf15afb":{"description":"insufficient_scope","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"},"aad0b906-eb50-4f10-aaad-b8989de307a7":{"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"},"f9929c6f-72d9-42f5-97b8-c23117e5d3ed":{"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"},"33891754-c0b0-434d-a97e-e20a818d1758":{"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"},"ab027c65-2d62-4609-b799-33df36e496fd":{"description":"provider_not_configured, model_unavailable, or service_unavailable. No live work is accepted.","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"},"example":{"error":{"code":"provider_not_configured","message":"Live model providers are not connected in this build. No credits were reserved or charged."}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"provider_not_configured","message":"Live model providers are not connected in this build. No credits were reserved or charged."}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"2cd05718-3f91-4406-9abd-af7f977b63c8":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"APIstable API key","description":"API key beginning as_. Keep on the server. Scope permissions are checked separately.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"68fcffb3-177d-4931-8788-1cd087a22ddd":{"url":"https://apistable.com","description":"APIstable API"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"APIstable API key","description":"API key beginning as_. Keep on the server. Scope permissions are checked separately.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API key beginning as_. Keep on the server. Scope permissions are checked separately.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"apistable","siteName":"APIstable","title":"Create a task - APIstable","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/create-task","matchLevel":0},"cn":{"href":"/cn/create-task","matchLevel":1}}},"lastModified":"2026-10-31T12:51:27.181Z","originalFileLocation":"en/create-task.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=\"Submit asynchronous image, video, or music work.\">\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=\"Create a task - APIstable\">\u003cmeta data-mint-head property=\"og:description\" content=\"Submit asynchronous image, video, or music work.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"APIstable\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://apistable.mintlify.app/en/create-task\">\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=Create+a+task\u0026amp;description=Submit+asynchronous+image%2C+video%2C+or+music+work.\u0026amp;theme=0021cbb4aa87915489c6b7ac\u0026amp;signature=8f338c95969c8ff4461892da7a290101589ec021ee07f8cdadc8bd510c4a8756\">\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 task - APIstable\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Submit asynchronous image, video, or music work.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://apistable.mintlify.app/_mintlify/api/og/v2?division=API+reference\u0026amp;title=Create+a+task\u0026amp;description=Submit+asynchronous+image%2C+video%2C+or+music+work.\u0026amp;theme=0021cbb4aa87915489c6b7ac\u0026amp;signature=8f338c95969c8ff4461892da7a290101589ec021ee07f8cdadc8bd510c4a8756\">\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/create-task\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/create-task.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://apistable.mintlify.app/en/create-task\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://apistable.mintlify.app/cn/create-task\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://apistable.mintlify.app/en/create-task\">\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/create-task#webpage\",\"url\":\"https://apistable.mintlify.app/en/create-task\",\"name\":\"Create a task\",\"description\":\"Submit asynchronous image, video, or music work.\",\"dateModified\":\"2026-10-31T12:51:27.181Z\",\"isPartOf\":{\"@id\":\"https://apistable.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://apistable.mintlify.app/en/create-task#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://apistable.mintlify.app/en/create-task#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API reference\",\"item\":\"https://apistable.mintlify.app/en/models\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a task\",\"item\":\"https://apistable.mintlify.app/en/create-task\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://apistable.mintlify.app/en/create-task#apireference\",\"headline\":\"Create a task\",\"name\":\"Create a task\",\"description\":\"Submit asynchronous image, video, or music work.\",\"url\":\"https://apistable.mintlify.app/en/create-task\",\"mainEntityOfPage\":{\"@id\":\"https://apistable.mintlify.app/en/create-task#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","openapi":"openapi.json GET /v1/tasks","href":"/en/list-tasks"},{"title":"Get a quote","description":"See eligible channel prices and the maximum credit reservation.","openapi":"openapi.json POST /v1/quotes","href":"/en/quotes"},{"title":"Create a task","openapi":"openapi.json POST /v1/tasks","href":"/en/create-task"},{"title":"Query a task","description":"Read each result as it finishes, with its own status and cost.","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/create-task"}]}]},"basePath":"","title":"Create a task - 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"]}