Pass the completed parent jobId and zero-based videoNo. The endpoint creates
a new asynchronous task; it does not return the upscaled file immediately.After completion, copy the video to
durable storage.
Echo of the task's input parameters (shape depends on task_type; mirrors the create-request body of the operation that created the task). Null in error responses.
Lifecycle state. Terminal states: completed, failed. staged means the task is queued behind the account's concurrency limit; retry means it is being resubmitted after a transient provider error.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Legnext AI API","colors":{"primary":"#9333EA","light":"#A855F7","dark":"#7E22CE"},"logo":{"light":"https://mintcdn.com/leggie/YWSsPTgoYu8cYOsa/logo/light.svg?fit=max\u0026auto=format\u0026n=YWSsPTgoYu8cYOsa\u0026q=85\u0026s=3476ba306e8316af3dc44ed04638f199","dark":"https://mintcdn.com/leggie/YWSsPTgoYu8cYOsa/logo/dark.svg?fit=max\u0026auto=format\u0026n=YWSsPTgoYu8cYOsa\u0026q=85\u0026s=8518dbe9f82f2419cb8cba1541d42329","href":"/getting-started/ai-agents"},"favicon":"https://mintcdn.com/leggie/JEGHtJMnjFBhtevc/icon/favicon.png?fit=max\u0026auto=format\u0026n=JEGHtJMnjFBhtevc\u0026q=85\u0026s=40e499b145eb3341eb9d85c46f83d782","navbar":{"links":[{"href":"mailto:support@legnext.ai","label":"Support"}],"primary":{"type":"button","label":"Get API key","href":"https://legnext.ai/app/api-keys"}},"seo":{"metatags":{"og:type":"website","og:site_name":"Legnext AI API Documentation","og:image":"https://legnext.ai/og-image.png","twitter:card":"summary_large_image","twitter:title":"Legnext AI API - Midjourney Image \u0026 Video Generation","twitter:description":"Professional API for AI-powered image and video generation using Midjourney models"},"indexing":"all"},"contextual":{"options":["copy","chatgpt","claude","cursor","vscode","mcp","add-mcp"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"leggie","hasAudioNarration":false,"actualSubdomain":"leggie","customDomains":["docs.legnext.ai"],"gitSource":{"type":"github","owner":"legnext-ai","repo":"legnext_docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6add0bc59a241c7512af75f1","collectionId":"167d734c-00e3-4b41-9fa1-ed9621a7c701","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6add0bc59a241c7512af75f1"},"entitlements":{},"buildId":"6add0bc59a241c7512af75f1","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"default","tag":"API reference","count":21},{"language":"default","tag":"Image Generation","count":16},{"language":"default","tag":"Start here","count":5},{"language":"default","tag":"API basics","count":4},{"language":"default","tag":"Reference","count":4},{"language":"default","tag":"Video Generation","count":3},{"language":"default","tag":"Platform integrations","count":3},{"language":"default","tag":"Account Management","count":1},{"language":"default","tag":"Task Management","count":1},{"language":"default","tag":"Updates","count":1}]},"assistantConfig":{},"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":"editor-v7-file-tree","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":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"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":"editor-agent-model-picker","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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@media (min-width:1024px){#sidebar-content{width:16rem}}"}],"page":{"pagePath":"api-reference/video-generation/video-upscale","slug":"/api-reference/video-generation/video-upscale","pageMetadata":{"title":"Video Upscale","description":"Upscale one video from a completed video task.","openapi":"POST /v1/video-upscale","href":"/api-reference/video-generation/video-upscale"},"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: \"Upscale one video from a completed video task.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,..._provideComponents(),...props.components};return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Pass the completed parent `,_jsx(_components.code,{children:`jobId`}),` and zero-based `,_jsx(_components.code,{children:`videoNo`}),`. The endpoint creates\na new asynchronous task; it does not return the upscaled file immediately.`]}),`\n`,_jsxs(_components.p,{children:[`After completion, copy the video to\n`,_jsx(_components.a,{href:`/getting-started/output-storage`,children:`durable storage`}),`.`]})]})}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":"Video Upscale","description":"Upscale one video from a completed video task.","openapi":"POST /v1/video-upscale","href":"/api-reference/video-generation/video-upscale"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Video Generation"],"summary":"Video Upscale","description":"Upscale one video from a completed video task.","operationId":"upscaleVideo","requestBody":"4e423cfc-d18e-42df-8662-edd4dffbb9a3","responses":{"200":"38693d03-2001-4139-b2f0-29b8277af963","400":"d7022fde-c663-4b47-9a23-a2764e9c008a","401":"795f55d0-a1fc-4764-92a8-c2af9ae61f9f","402":"c2b4a6e1-6c70-431c-92ce-e3875ce5c9b9","403":"450e6174-8a54-4d3d-afbc-36f21dd96803","429":"b9ec3c3b-ed46-4850-a577-7eff2a871a1f","500":"f2edbf26-73d2-4938-8b65-d249c114c50b"},"method":"post","type":"path","servers":["0a7e4709-9f3f-4be1-a56b-dcaf478d2d5f"],"security":["37369b50-78d7-4408-acb9-fd64d4e6647c"],"path":"/v1/video-upscale","baseUrlOptions":["https://api.legnext.ai/api"],"title":"Video Upscale","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid","description":"ID of the parent video task.","isRequired":true,"uniqueKey":"jobId","typeLabel":"string\u003cuuid>"},"videoNo":{"type":"integer","description":"Index of the video in the parent grid (0-3).","minimum":0,"maximum":3,"isRequired":true,"uniqueKey":"videoNo","typeLabel":"integer"},"callback":{"type":"string","format":"uri","description":"Optional webhook URL. When set, the completed TaskResponse is POSTed to this URL; when empty, poll GET /v1/job/{job_id}.","uniqueKey":"callback","typeLabel":"string\u003curi>"}},"required":["jobId","videoNo"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"jobId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","videoNo":1,"callback":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"38693d03-2001-4139-b2f0-29b8277af963":{"description":"Video-upscale task accepted.","content":{"application/json":{"schema":{"type":"object","properties":{"config":{"type":"object","properties":{"service_mode":{"type":"string","description":"Service mode the task runs under. Only `public` is currently supported.","enum":["public"],"isRequired":true,"uniqueKey":"config.service_mode","typeLabel":"enum\u003cstring>"},"webhook_config":{"type":"object","properties":{"endpoint":{"type":"string","isRequired":true,"uniqueKey":"config.webhook_config.endpoint","typeLabel":"string"},"secret":{"type":"string","isRequired":true,"uniqueKey":"config.webhook_config.secret","typeLabel":"string"}},"required":["endpoint","secret"],"isRequired":true,"uniqueKey":"config.webhook_config","typeLabel":"object"}},"required":["service_mode","webhook_config"],"isRequired":true,"uniqueKey":"config","typeLabel":"object"},"detail":{"type":"null","description":"Reserved for future use; currently null in public API responses.","isRequired":true,"uniqueKey":"detail","typeLabel":"null"},"error":{"type":"object","properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"error.code","typeLabel":"integer"},"detail":{"oneOf":[{"isRequired":true}],"isRequired":true,"uniqueKey":"error.detail","typeLabel":"any"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"raw_message":{"type":"string","isRequired":true,"uniqueKey":"error.raw_message","typeLabel":"string"}},"required":["code","raw_message","message","detail"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"input":{"type":"object","description":"Echo of the task's input parameters (shape depends on `task_type`; mirrors the create-request body of the operation that created the task). Null in error responses.","isRequired":true,"uniqueKey":"input","typeLabel":"object"},"job_id":{"type":"string","format":"uuid","description":"Task UUID. Pass it to GET /v1/job/{job_id} to poll, or reference it as `jobId` in follow-up operations.","isRequired":true,"uniqueKey":"job_id","typeLabel":"string\u003cuuid>"},"logs":{"type":"array","description":"Operational log lines of the task (progress events, retries).","items":{"type":"string","uniqueKey":"logs.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"logs","typeLabel":"string[]"},"meta":{"oneOf":[{"type":"object","description":"Timestamps and billing usage of the task (null in error responses).","required":["created_at","started_at","ended_at","usage"],"properties":{"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"ended_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.oneOf.0.ended_at","typeLabel":"string\u003cdate-time>"},"started_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.oneOf.0.started_at","typeLabel":"string\u003cdate-time>"},"usage":{"type":"object","properties":{"consume":{"type":"integer","isRequired":true,"uniqueKey":"meta.oneOf.0.usage.consume","typeLabel":"integer"},"frozen":{"type":"integer","isRequired":true,"uniqueKey":"meta.oneOf.0.usage.frozen","typeLabel":"integer"},"type":{"type":"string","description":"Billing unit used for the task.","enum":["credit","point"],"isRequired":true,"uniqueKey":"meta.oneOf.0.usage.type","typeLabel":"enum\u003cstring>"}},"required":["type","frozen","consume"],"isRequired":true,"uniqueKey":"meta.oneOf.0.usage","typeLabel":"object"}},"isRequired":true,"uniqueKey":"meta.oneOf.0","typeLabel":"object"},{"type":"null","description":"Timestamps and billing usage of the task (null in error responses).","isRequired":true,"uniqueKey":"meta.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"meta","typeLabel":"object | null"},"model":{"type":"string","description":"Model family that executed the task.","enum":["midjourney"],"isRequired":true,"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"output":{"oneOf":[{"type":"object","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","required":["image_url","image_urls","seed"],"properties":{"image_url":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.0.image_url","typeLabel":"string"},"image_urls":{"type":"array","items":{"type":"string","uniqueKey":"output.oneOf.0.image_urls.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"output.oneOf.0.image_urls","typeLabel":"string[]"},"seed":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.0.seed","typeLabel":"string"},"available_actions":{"type":"object","uniqueKey":"output.oneOf.0.available_actions","typeLabel":"object"}},"isRequired":true,"uniqueKey":"output.oneOf.0","typeLabel":"object"},{"type":"object","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","required":["video_urls","seed"],"properties":{"seed":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.1.seed","typeLabel":"string"},"video_urls":{"type":"array","items":{"type":"string","uniqueKey":"output.oneOf.1.video_urls.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"output.oneOf.1.video_urls","typeLabel":"string[]"},"available_actions":{"type":"object","uniqueKey":"output.oneOf.1.available_actions","typeLabel":"object"}},"isRequired":true,"uniqueKey":"output.oneOf.1","typeLabel":"object"},{"type":"object","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","required":["promptEn","description","finalPrompt","prompts"],"properties":{"description":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.2.description","typeLabel":"string"},"finalPrompt":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.2.finalPrompt","typeLabel":"string"},"promptEn":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.2.promptEn","typeLabel":"string"},"prompts":{"type":"array","items":{"type":"string","uniqueKey":"output.oneOf.2.prompts.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"output.oneOf.2.prompts","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"output.oneOf.2","typeLabel":"object"},{"type":"null","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","isRequired":true,"uniqueKey":"output.oneOf.3","typeLabel":"null"}],"isRequired":true,"uniqueKey":"output","typeLabel":"object · object · object · null"},"status":{"type":"string","description":"Lifecycle state. Terminal states: `completed`, `failed`. `staged` means the task is queued behind the account's concurrency limit; `retry` means it is being resubmitted after a transient provider error.","enum":["pending","staged","processing","retry","completed","failed"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"task_type":{"type":"string","description":"Type of the task — the operation that created it.","enum":["diffusion","upscale","reroll","variation","inpaint","outpaint","pan","edit","remix","enhance","upload_paint","retexture","remove_background","shorten","describe","blend","video_diffusion","extend_video","video_upscale","enhance_upscale"],"isRequired":true,"uniqueKey":"task_type","typeLabel":"enum\u003cstring>"}},"required":["job_id","model","task_type","status","config","input","output","meta","detail","logs","error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"config":{"service_mode":"public","webhook_config":{"endpoint":"\u003cstring>","secret":"\u003cstring>"}},"detail":null,"error":{"code":123,"detail":"\u003cunknown>","message":"\u003cstring>","raw_message":"\u003cstring>"},"input":{},"job_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","logs":["\u003cstring>"],"meta":{"created_at":"2023-11-07T05:31:56Z","ended_at":"2023-11-07T05:31:56Z","started_at":"2023-11-07T05:31:56Z","usage":{"consume":123,"frozen":123,"type":"credit"}},"model":"midjourney","output":{"image_url":"\u003cstring>","image_urls":["\u003cstring>"],"seed":"\u003cstring>","available_actions":{}},"status":"pending","task_type":"diffusion"}}},"exampleType":"generated"}},"exampleType":"generated"},"d7022fde-c663-4b47-9a23-a2764e9c008a":{"description":"Bad Request — invalid request body or parameter values (see `error.message`).","content":{"application/json":{"schema":{"type":"object","properties":{"config":{"type":"object","properties":{"service_mode":{"type":"string","description":"Service mode the task runs under. Only `public` is currently supported.","enum":["public"],"isRequired":true,"uniqueKey":"config.service_mode","typeLabel":"enum\u003cstring>"},"webhook_config":{"type":"object","properties":{"endpoint":{"type":"string","isRequired":true,"uniqueKey":"config.webhook_config.endpoint","typeLabel":"string"},"secret":{"type":"string","isRequired":true,"uniqueKey":"config.webhook_config.secret","typeLabel":"string"}},"required":["endpoint","secret"],"isRequired":true,"uniqueKey":"config.webhook_config","typeLabel":"object"}},"required":["service_mode","webhook_config"],"isRequired":true,"uniqueKey":"config","typeLabel":"object"},"detail":{"type":"null","description":"Reserved for future use; currently null in public API responses.","isRequired":true,"uniqueKey":"detail","typeLabel":"null"},"error":{"type":"object","properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"error.code","typeLabel":"integer"},"detail":{"oneOf":[{"isRequired":true}],"isRequired":true,"uniqueKey":"error.detail","typeLabel":"any"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"raw_message":{"type":"string","isRequired":true,"uniqueKey":"error.raw_message","typeLabel":"string"}},"required":["code","raw_message","message","detail"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"input":{"type":"object","description":"Echo of the task's input parameters (shape depends on `task_type`; mirrors the create-request body of the operation that created the task). Null in error responses.","isRequired":true,"uniqueKey":"input","typeLabel":"object"},"job_id":{"type":"string","format":"uuid","description":"Task UUID. Pass it to GET /v1/job/{job_id} to poll, or reference it as `jobId` in follow-up operations.","isRequired":true,"uniqueKey":"job_id","typeLabel":"string\u003cuuid>"},"logs":{"type":"array","description":"Operational log lines of the task (progress events, retries).","items":{"type":"string","uniqueKey":"logs.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"logs","typeLabel":"string[]"},"meta":{"oneOf":[{"type":"object","description":"Timestamps and billing usage of the task (null in error responses).","required":["created_at","started_at","ended_at","usage"],"properties":{"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"ended_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.oneOf.0.ended_at","typeLabel":"string\u003cdate-time>"},"started_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.oneOf.0.started_at","typeLabel":"string\u003cdate-time>"},"usage":{"type":"object","properties":{"consume":{"type":"integer","isRequired":true,"uniqueKey":"meta.oneOf.0.usage.consume","typeLabel":"integer"},"frozen":{"type":"integer","isRequired":true,"uniqueKey":"meta.oneOf.0.usage.frozen","typeLabel":"integer"},"type":{"type":"string","description":"Billing unit used for the task.","enum":["credit","point"],"isRequired":true,"uniqueKey":"meta.oneOf.0.usage.type","typeLabel":"enum\u003cstring>"}},"required":["type","frozen","consume"],"isRequired":true,"uniqueKey":"meta.oneOf.0.usage","typeLabel":"object"}},"isRequired":true,"uniqueKey":"meta.oneOf.0","typeLabel":"object"},{"type":"null","description":"Timestamps and billing usage of the task (null in error responses).","isRequired":true,"uniqueKey":"meta.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"meta","typeLabel":"object | null"},"model":{"type":"string","description":"Model family that executed the task.","enum":["midjourney"],"isRequired":true,"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"output":{"oneOf":[{"type":"object","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","required":["image_url","image_urls","seed"],"properties":{"image_url":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.0.image_url","typeLabel":"string"},"image_urls":{"type":"array","items":{"type":"string","uniqueKey":"output.oneOf.0.image_urls.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"output.oneOf.0.image_urls","typeLabel":"string[]"},"seed":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.0.seed","typeLabel":"string"},"available_actions":{"type":"object","uniqueKey":"output.oneOf.0.available_actions","typeLabel":"object"}},"isRequired":true,"uniqueKey":"output.oneOf.0","typeLabel":"object"},{"type":"object","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","required":["video_urls","seed"],"properties":{"seed":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.1.seed","typeLabel":"string"},"video_urls":{"type":"array","items":{"type":"string","uniqueKey":"output.oneOf.1.video_urls.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"output.oneOf.1.video_urls","typeLabel":"string[]"},"available_actions":{"type":"object","uniqueKey":"output.oneOf.1.available_actions","typeLabel":"object"}},"isRequired":true,"uniqueKey":"output.oneOf.1","typeLabel":"object"},{"type":"object","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","required":["promptEn","description","finalPrompt","prompts"],"properties":{"description":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.2.description","typeLabel":"string"},"finalPrompt":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.2.finalPrompt","typeLabel":"string"},"promptEn":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.2.promptEn","typeLabel":"string"},"prompts":{"type":"array","items":{"type":"string","uniqueKey":"output.oneOf.2.prompts.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"output.oneOf.2.prompts","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"output.oneOf.2","typeLabel":"object"},{"type":"null","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","isRequired":true,"uniqueKey":"output.oneOf.3","typeLabel":"null"}],"isRequired":true,"uniqueKey":"output","typeLabel":"object · object · object · null"},"status":{"type":"string","description":"Lifecycle state. Terminal states: `completed`, `failed`. `staged` means the task is queued behind the account's concurrency limit; `retry` means it is being resubmitted after a transient provider error.","enum":["pending","staged","processing","retry","completed","failed"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"task_type":{"type":"string","description":"Type of the task — the operation that created it.","enum":["diffusion","upscale","reroll","variation","inpaint","outpaint","pan","edit","remix","enhance","upload_paint","retexture","remove_background","shorten","describe","blend","video_diffusion","extend_video","video_upscale","enhance_upscale"],"isRequired":true,"uniqueKey":"task_type","typeLabel":"enum\u003cstring>"}},"required":["job_id","model","task_type","status","config","input","output","meta","detail","logs","error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"config":{"service_mode":"public","webhook_config":{"endpoint":"\u003cstring>","secret":"\u003cstring>"}},"detail":null,"error":{"code":123,"detail":"\u003cunknown>","message":"\u003cstring>","raw_message":"\u003cstring>"},"input":{},"job_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","logs":["\u003cstring>"],"meta":{"created_at":"2023-11-07T05:31:56Z","ended_at":"2023-11-07T05:31:56Z","started_at":"2023-11-07T05:31:56Z","usage":{"consume":123,"frozen":123,"type":"credit"}},"model":"midjourney","output":{"image_url":"\u003cstring>","image_urls":["\u003cstring>"],"seed":"\u003cstring>","available_actions":{}},"status":"pending","task_type":"diffusion"}}},"exampleType":"generated"}},"exampleType":"generated"},"795f55d0-a1fc-4764-92a8-c2af9ae61f9f":{"description":"Unauthorized — missing, invalid, or revoked API key.","content":{"application/json":{"schema":{"type":"object","properties":{"config":{"type":"object","properties":{"service_mode":{"type":"string","description":"Service mode the task runs under. Only `public` is currently supported.","enum":["public"],"isRequired":true,"uniqueKey":"config.service_mode","typeLabel":"enum\u003cstring>"},"webhook_config":{"type":"object","properties":{"endpoint":{"type":"string","isRequired":true,"uniqueKey":"config.webhook_config.endpoint","typeLabel":"string"},"secret":{"type":"string","isRequired":true,"uniqueKey":"config.webhook_config.secret","typeLabel":"string"}},"required":["endpoint","secret"],"isRequired":true,"uniqueKey":"config.webhook_config","typeLabel":"object"}},"required":["service_mode","webhook_config"],"isRequired":true,"uniqueKey":"config","typeLabel":"object"},"detail":{"type":"null","description":"Reserved for future use; currently null in public API responses.","isRequired":true,"uniqueKey":"detail","typeLabel":"null"},"error":{"type":"object","properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"error.code","typeLabel":"integer"},"detail":{"oneOf":[{"isRequired":true}],"isRequired":true,"uniqueKey":"error.detail","typeLabel":"any"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"raw_message":{"type":"string","isRequired":true,"uniqueKey":"error.raw_message","typeLabel":"string"}},"required":["code","raw_message","message","detail"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"input":{"type":"object","description":"Echo of the task's input parameters (shape depends on `task_type`; mirrors the create-request body of the operation that created the task). Null in error responses.","isRequired":true,"uniqueKey":"input","typeLabel":"object"},"job_id":{"type":"string","format":"uuid","description":"Task UUID. Pass it to GET /v1/job/{job_id} to poll, or reference it as `jobId` in follow-up operations.","isRequired":true,"uniqueKey":"job_id","typeLabel":"string\u003cuuid>"},"logs":{"type":"array","description":"Operational log lines of the task (progress events, retries).","items":{"type":"string","uniqueKey":"logs.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"logs","typeLabel":"string[]"},"meta":{"oneOf":[{"type":"object","description":"Timestamps and billing usage of the task (null in error responses).","required":["created_at","started_at","ended_at","usage"],"properties":{"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"ended_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.oneOf.0.ended_at","typeLabel":"string\u003cdate-time>"},"started_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.oneOf.0.started_at","typeLabel":"string\u003cdate-time>"},"usage":{"type":"object","properties":{"consume":{"type":"integer","isRequired":true,"uniqueKey":"meta.oneOf.0.usage.consume","typeLabel":"integer"},"frozen":{"type":"integer","isRequired":true,"uniqueKey":"meta.oneOf.0.usage.frozen","typeLabel":"integer"},"type":{"type":"string","description":"Billing unit used for the task.","enum":["credit","point"],"isRequired":true,"uniqueKey":"meta.oneOf.0.usage.type","typeLabel":"enum\u003cstring>"}},"required":["type","frozen","consume"],"isRequired":true,"uniqueKey":"meta.oneOf.0.usage","typeLabel":"object"}},"isRequired":true,"uniqueKey":"meta.oneOf.0","typeLabel":"object"},{"type":"null","description":"Timestamps and billing usage of the task (null in error responses).","isRequired":true,"uniqueKey":"meta.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"meta","typeLabel":"object | null"},"model":{"type":"string","description":"Model family that executed the task.","enum":["midjourney"],"isRequired":true,"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"output":{"oneOf":[{"type":"object","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","required":["image_url","image_urls","seed"],"properties":{"image_url":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.0.image_url","typeLabel":"string"},"image_urls":{"type":"array","items":{"type":"string","uniqueKey":"output.oneOf.0.image_urls.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"output.oneOf.0.image_urls","typeLabel":"string[]"},"seed":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.0.seed","typeLabel":"string"},"available_actions":{"type":"object","uniqueKey":"output.oneOf.0.available_actions","typeLabel":"object"}},"isRequired":true,"uniqueKey":"output.oneOf.0","typeLabel":"object"},{"type":"object","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","required":["video_urls","seed"],"properties":{"seed":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.1.seed","typeLabel":"string"},"video_urls":{"type":"array","items":{"type":"string","uniqueKey":"output.oneOf.1.video_urls.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"output.oneOf.1.video_urls","typeLabel":"string[]"},"available_actions":{"type":"object","uniqueKey":"output.oneOf.1.available_actions","typeLabel":"object"}},"isRequired":true,"uniqueKey":"output.oneOf.1","typeLabel":"object"},{"type":"object","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","required":["promptEn","description","finalPrompt","prompts"],"properties":{"description":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.2.description","typeLabel":"string"},"finalPrompt":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.2.finalPrompt","typeLabel":"string"},"promptEn":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.2.promptEn","typeLabel":"string"},"prompts":{"type":"array","items":{"type":"string","uniqueKey":"output.oneOf.2.prompts.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"output.oneOf.2.prompts","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"output.oneOf.2","typeLabel":"object"},{"type":"null","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","isRequired":true,"uniqueKey":"output.oneOf.3","typeLabel":"null"}],"isRequired":true,"uniqueKey":"output","typeLabel":"object · object · object · null"},"status":{"type":"string","description":"Lifecycle state. Terminal states: `completed`, `failed`. `staged` means the task is queued behind the account's concurrency limit; `retry` means it is being resubmitted after a transient provider error.","enum":["pending","staged","processing","retry","completed","failed"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"task_type":{"type":"string","description":"Type of the task — the operation that created it.","enum":["diffusion","upscale","reroll","variation","inpaint","outpaint","pan","edit","remix","enhance","upload_paint","retexture","remove_background","shorten","describe","blend","video_diffusion","extend_video","video_upscale","enhance_upscale"],"isRequired":true,"uniqueKey":"task_type","typeLabel":"enum\u003cstring>"}},"required":["job_id","model","task_type","status","config","input","output","meta","detail","logs","error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"config":{"service_mode":"public","webhook_config":{"endpoint":"\u003cstring>","secret":"\u003cstring>"}},"detail":null,"error":{"code":123,"detail":"\u003cunknown>","message":"\u003cstring>","raw_message":"\u003cstring>"},"input":{},"job_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","logs":["\u003cstring>"],"meta":{"created_at":"2023-11-07T05:31:56Z","ended_at":"2023-11-07T05:31:56Z","started_at":"2023-11-07T05:31:56Z","usage":{"consume":123,"frozen":123,"type":"credit"}},"model":"midjourney","output":{"image_url":"\u003cstring>","image_urls":["\u003cstring>"],"seed":"\u003cstring>","available_actions":{}},"status":"pending","task_type":"diffusion"}}},"exampleType":"generated"}},"exampleType":"generated"},"c2b4a6e1-6c70-431c-92ce-e3875ce5c9b9":{"description":"Payment Required — insufficient quota to freeze for this task (`insufficient quota`).","content":{"application/json":{"schema":{"type":"object","properties":{"config":{"type":"object","properties":{"service_mode":{"type":"string","description":"Service mode the task runs under. Only `public` is currently supported.","enum":["public"],"isRequired":true,"uniqueKey":"config.service_mode","typeLabel":"enum\u003cstring>"},"webhook_config":{"type":"object","properties":{"endpoint":{"type":"string","isRequired":true,"uniqueKey":"config.webhook_config.endpoint","typeLabel":"string"},"secret":{"type":"string","isRequired":true,"uniqueKey":"config.webhook_config.secret","typeLabel":"string"}},"required":["endpoint","secret"],"isRequired":true,"uniqueKey":"config.webhook_config","typeLabel":"object"}},"required":["service_mode","webhook_config"],"isRequired":true,"uniqueKey":"config","typeLabel":"object"},"detail":{"type":"null","description":"Reserved for future use; currently null in public API responses.","isRequired":true,"uniqueKey":"detail","typeLabel":"null"},"error":{"type":"object","properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"error.code","typeLabel":"integer"},"detail":{"oneOf":[{"isRequired":true}],"isRequired":true,"uniqueKey":"error.detail","typeLabel":"any"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"raw_message":{"type":"string","isRequired":true,"uniqueKey":"error.raw_message","typeLabel":"string"}},"required":["code","raw_message","message","detail"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"input":{"type":"object","description":"Echo of the task's input parameters (shape depends on `task_type`; mirrors the create-request body of the operation that created the task). Null in error responses.","isRequired":true,"uniqueKey":"input","typeLabel":"object"},"job_id":{"type":"string","format":"uuid","description":"Task UUID. Pass it to GET /v1/job/{job_id} to poll, or reference it as `jobId` in follow-up operations.","isRequired":true,"uniqueKey":"job_id","typeLabel":"string\u003cuuid>"},"logs":{"type":"array","description":"Operational log lines of the task (progress events, retries).","items":{"type":"string","uniqueKey":"logs.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"logs","typeLabel":"string[]"},"meta":{"oneOf":[{"type":"object","description":"Timestamps and billing usage of the task (null in error responses).","required":["created_at","started_at","ended_at","usage"],"properties":{"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"ended_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.oneOf.0.ended_at","typeLabel":"string\u003cdate-time>"},"started_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.oneOf.0.started_at","typeLabel":"string\u003cdate-time>"},"usage":{"type":"object","properties":{"consume":{"type":"integer","isRequired":true,"uniqueKey":"meta.oneOf.0.usage.consume","typeLabel":"integer"},"frozen":{"type":"integer","isRequired":true,"uniqueKey":"meta.oneOf.0.usage.frozen","typeLabel":"integer"},"type":{"type":"string","description":"Billing unit used for the task.","enum":["credit","point"],"isRequired":true,"uniqueKey":"meta.oneOf.0.usage.type","typeLabel":"enum\u003cstring>"}},"required":["type","frozen","consume"],"isRequired":true,"uniqueKey":"meta.oneOf.0.usage","typeLabel":"object"}},"isRequired":true,"uniqueKey":"meta.oneOf.0","typeLabel":"object"},{"type":"null","description":"Timestamps and billing usage of the task (null in error responses).","isRequired":true,"uniqueKey":"meta.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"meta","typeLabel":"object | null"},"model":{"type":"string","description":"Model family that executed the task.","enum":["midjourney"],"isRequired":true,"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"output":{"oneOf":[{"type":"object","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","required":["image_url","image_urls","seed"],"properties":{"image_url":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.0.image_url","typeLabel":"string"},"image_urls":{"type":"array","items":{"type":"string","uniqueKey":"output.oneOf.0.image_urls.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"output.oneOf.0.image_urls","typeLabel":"string[]"},"seed":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.0.seed","typeLabel":"string"},"available_actions":{"type":"object","uniqueKey":"output.oneOf.0.available_actions","typeLabel":"object"}},"isRequired":true,"uniqueKey":"output.oneOf.0","typeLabel":"object"},{"type":"object","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","required":["video_urls","seed"],"properties":{"seed":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.1.seed","typeLabel":"string"},"video_urls":{"type":"array","items":{"type":"string","uniqueKey":"output.oneOf.1.video_urls.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"output.oneOf.1.video_urls","typeLabel":"string[]"},"available_actions":{"type":"object","uniqueKey":"output.oneOf.1.available_actions","typeLabel":"object"}},"isRequired":true,"uniqueKey":"output.oneOf.1","typeLabel":"object"},{"type":"object","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","required":["promptEn","description","finalPrompt","prompts"],"properties":{"description":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.2.description","typeLabel":"string"},"finalPrompt":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.2.finalPrompt","typeLabel":"string"},"promptEn":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.2.promptEn","typeLabel":"string"},"prompts":{"type":"array","items":{"type":"string","uniqueKey":"output.oneOf.2.prompts.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"output.oneOf.2.prompts","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"output.oneOf.2","typeLabel":"object"},{"type":"null","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","isRequired":true,"uniqueKey":"output.oneOf.3","typeLabel":"null"}],"isRequired":true,"uniqueKey":"output","typeLabel":"object · object · object · null"},"status":{"type":"string","description":"Lifecycle state. Terminal states: `completed`, `failed`. `staged` means the task is queued behind the account's concurrency limit; `retry` means it is being resubmitted after a transient provider error.","enum":["pending","staged","processing","retry","completed","failed"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"task_type":{"type":"string","description":"Type of the task — the operation that created it.","enum":["diffusion","upscale","reroll","variation","inpaint","outpaint","pan","edit","remix","enhance","upload_paint","retexture","remove_background","shorten","describe","blend","video_diffusion","extend_video","video_upscale","enhance_upscale"],"isRequired":true,"uniqueKey":"task_type","typeLabel":"enum\u003cstring>"}},"required":["job_id","model","task_type","status","config","input","output","meta","detail","logs","error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"config":{"service_mode":"public","webhook_config":{"endpoint":"\u003cstring>","secret":"\u003cstring>"}},"detail":null,"error":{"code":123,"detail":"\u003cunknown>","message":"\u003cstring>","raw_message":"\u003cstring>"},"input":{},"job_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","logs":["\u003cstring>"],"meta":{"created_at":"2023-11-07T05:31:56Z","ended_at":"2023-11-07T05:31:56Z","started_at":"2023-11-07T05:31:56Z","usage":{"consume":123,"frozen":123,"type":"credit"}},"model":"midjourney","output":{"image_url":"\u003cstring>","image_urls":["\u003cstring>"],"seed":"\u003cstring>","available_actions":{}},"status":"pending","task_type":"diffusion"}}},"exampleType":"generated"}},"exampleType":"generated"},"450e6174-8a54-4d3d-afbc-36f21dd96803":{"description":"Forbidden — account disabled or daily error limit reached.","content":{"application/json":{"schema":{"type":"object","properties":{"config":{"type":"object","properties":{"service_mode":{"type":"string","description":"Service mode the task runs under. Only `public` is currently supported.","enum":["public"],"isRequired":true,"uniqueKey":"config.service_mode","typeLabel":"enum\u003cstring>"},"webhook_config":{"type":"object","properties":{"endpoint":{"type":"string","isRequired":true,"uniqueKey":"config.webhook_config.endpoint","typeLabel":"string"},"secret":{"type":"string","isRequired":true,"uniqueKey":"config.webhook_config.secret","typeLabel":"string"}},"required":["endpoint","secret"],"isRequired":true,"uniqueKey":"config.webhook_config","typeLabel":"object"}},"required":["service_mode","webhook_config"],"isRequired":true,"uniqueKey":"config","typeLabel":"object"},"detail":{"type":"null","description":"Reserved for future use; currently null in public API responses.","isRequired":true,"uniqueKey":"detail","typeLabel":"null"},"error":{"type":"object","properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"error.code","typeLabel":"integer"},"detail":{"oneOf":[{"isRequired":true}],"isRequired":true,"uniqueKey":"error.detail","typeLabel":"any"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"raw_message":{"type":"string","isRequired":true,"uniqueKey":"error.raw_message","typeLabel":"string"}},"required":["code","raw_message","message","detail"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"input":{"type":"object","description":"Echo of the task's input parameters (shape depends on `task_type`; mirrors the create-request body of the operation that created the task). Null in error responses.","isRequired":true,"uniqueKey":"input","typeLabel":"object"},"job_id":{"type":"string","format":"uuid","description":"Task UUID. Pass it to GET /v1/job/{job_id} to poll, or reference it as `jobId` in follow-up operations.","isRequired":true,"uniqueKey":"job_id","typeLabel":"string\u003cuuid>"},"logs":{"type":"array","description":"Operational log lines of the task (progress events, retries).","items":{"type":"string","uniqueKey":"logs.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"logs","typeLabel":"string[]"},"meta":{"oneOf":[{"type":"object","description":"Timestamps and billing usage of the task (null in error responses).","required":["created_at","started_at","ended_at","usage"],"properties":{"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"ended_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.oneOf.0.ended_at","typeLabel":"string\u003cdate-time>"},"started_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.oneOf.0.started_at","typeLabel":"string\u003cdate-time>"},"usage":{"type":"object","properties":{"consume":{"type":"integer","isRequired":true,"uniqueKey":"meta.oneOf.0.usage.consume","typeLabel":"integer"},"frozen":{"type":"integer","isRequired":true,"uniqueKey":"meta.oneOf.0.usage.frozen","typeLabel":"integer"},"type":{"type":"string","description":"Billing unit used for the task.","enum":["credit","point"],"isRequired":true,"uniqueKey":"meta.oneOf.0.usage.type","typeLabel":"enum\u003cstring>"}},"required":["type","frozen","consume"],"isRequired":true,"uniqueKey":"meta.oneOf.0.usage","typeLabel":"object"}},"isRequired":true,"uniqueKey":"meta.oneOf.0","typeLabel":"object"},{"type":"null","description":"Timestamps and billing usage of the task (null in error responses).","isRequired":true,"uniqueKey":"meta.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"meta","typeLabel":"object | null"},"model":{"type":"string","description":"Model family that executed the task.","enum":["midjourney"],"isRequired":true,"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"output":{"oneOf":[{"type":"object","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","required":["image_url","image_urls","seed"],"properties":{"image_url":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.0.image_url","typeLabel":"string"},"image_urls":{"type":"array","items":{"type":"string","uniqueKey":"output.oneOf.0.image_urls.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"output.oneOf.0.image_urls","typeLabel":"string[]"},"seed":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.0.seed","typeLabel":"string"},"available_actions":{"type":"object","uniqueKey":"output.oneOf.0.available_actions","typeLabel":"object"}},"isRequired":true,"uniqueKey":"output.oneOf.0","typeLabel":"object"},{"type":"object","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","required":["video_urls","seed"],"properties":{"seed":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.1.seed","typeLabel":"string"},"video_urls":{"type":"array","items":{"type":"string","uniqueKey":"output.oneOf.1.video_urls.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"output.oneOf.1.video_urls","typeLabel":"string[]"},"available_actions":{"type":"object","uniqueKey":"output.oneOf.1.available_actions","typeLabel":"object"}},"isRequired":true,"uniqueKey":"output.oneOf.1","typeLabel":"object"},{"type":"object","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","required":["promptEn","description","finalPrompt","prompts"],"properties":{"description":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.2.description","typeLabel":"string"},"finalPrompt":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.2.finalPrompt","typeLabel":"string"},"promptEn":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.2.promptEn","typeLabel":"string"},"prompts":{"type":"array","items":{"type":"string","uniqueKey":"output.oneOf.2.prompts.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"output.oneOf.2.prompts","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"output.oneOf.2","typeLabel":"object"},{"type":"null","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","isRequired":true,"uniqueKey":"output.oneOf.3","typeLabel":"null"}],"isRequired":true,"uniqueKey":"output","typeLabel":"object · object · object · null"},"status":{"type":"string","description":"Lifecycle state. Terminal states: `completed`, `failed`. `staged` means the task is queued behind the account's concurrency limit; `retry` means it is being resubmitted after a transient provider error.","enum":["pending","staged","processing","retry","completed","failed"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"task_type":{"type":"string","description":"Type of the task — the operation that created it.","enum":["diffusion","upscale","reroll","variation","inpaint","outpaint","pan","edit","remix","enhance","upload_paint","retexture","remove_background","shorten","describe","blend","video_diffusion","extend_video","video_upscale","enhance_upscale"],"isRequired":true,"uniqueKey":"task_type","typeLabel":"enum\u003cstring>"}},"required":["job_id","model","task_type","status","config","input","output","meta","detail","logs","error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"config":{"service_mode":"public","webhook_config":{"endpoint":"\u003cstring>","secret":"\u003cstring>"}},"detail":null,"error":{"code":123,"detail":"\u003cunknown>","message":"\u003cstring>","raw_message":"\u003cstring>"},"input":{},"job_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","logs":["\u003cstring>"],"meta":{"created_at":"2023-11-07T05:31:56Z","ended_at":"2023-11-07T05:31:56Z","started_at":"2023-11-07T05:31:56Z","usage":{"consume":123,"frozen":123,"type":"credit"}},"model":"midjourney","output":{"image_url":"\u003cstring>","image_urls":["\u003cstring>"],"seed":"\u003cstring>","available_actions":{}},"status":"pending","task_type":"diffusion"}}},"exampleType":"generated"}},"exampleType":"generated"},"b9ec3c3b-ed46-4850-a577-7eff2a871a1f":{"description":"Too Many Requests — concurrency or staged-queue limit exceeded; retry after running tasks finish.","content":{"application/json":{"schema":{"type":"object","properties":{"config":{"type":"object","properties":{"service_mode":{"type":"string","description":"Service mode the task runs under. Only `public` is currently supported.","enum":["public"],"isRequired":true,"uniqueKey":"config.service_mode","typeLabel":"enum\u003cstring>"},"webhook_config":{"type":"object","properties":{"endpoint":{"type":"string","isRequired":true,"uniqueKey":"config.webhook_config.endpoint","typeLabel":"string"},"secret":{"type":"string","isRequired":true,"uniqueKey":"config.webhook_config.secret","typeLabel":"string"}},"required":["endpoint","secret"],"isRequired":true,"uniqueKey":"config.webhook_config","typeLabel":"object"}},"required":["service_mode","webhook_config"],"isRequired":true,"uniqueKey":"config","typeLabel":"object"},"detail":{"type":"null","description":"Reserved for future use; currently null in public API responses.","isRequired":true,"uniqueKey":"detail","typeLabel":"null"},"error":{"type":"object","properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"error.code","typeLabel":"integer"},"detail":{"oneOf":[{"isRequired":true}],"isRequired":true,"uniqueKey":"error.detail","typeLabel":"any"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"raw_message":{"type":"string","isRequired":true,"uniqueKey":"error.raw_message","typeLabel":"string"}},"required":["code","raw_message","message","detail"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"input":{"type":"object","description":"Echo of the task's input parameters (shape depends on `task_type`; mirrors the create-request body of the operation that created the task). Null in error responses.","isRequired":true,"uniqueKey":"input","typeLabel":"object"},"job_id":{"type":"string","format":"uuid","description":"Task UUID. Pass it to GET /v1/job/{job_id} to poll, or reference it as `jobId` in follow-up operations.","isRequired":true,"uniqueKey":"job_id","typeLabel":"string\u003cuuid>"},"logs":{"type":"array","description":"Operational log lines of the task (progress events, retries).","items":{"type":"string","uniqueKey":"logs.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"logs","typeLabel":"string[]"},"meta":{"oneOf":[{"type":"object","description":"Timestamps and billing usage of the task (null in error responses).","required":["created_at","started_at","ended_at","usage"],"properties":{"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"ended_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.oneOf.0.ended_at","typeLabel":"string\u003cdate-time>"},"started_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.oneOf.0.started_at","typeLabel":"string\u003cdate-time>"},"usage":{"type":"object","properties":{"consume":{"type":"integer","isRequired":true,"uniqueKey":"meta.oneOf.0.usage.consume","typeLabel":"integer"},"frozen":{"type":"integer","isRequired":true,"uniqueKey":"meta.oneOf.0.usage.frozen","typeLabel":"integer"},"type":{"type":"string","description":"Billing unit used for the task.","enum":["credit","point"],"isRequired":true,"uniqueKey":"meta.oneOf.0.usage.type","typeLabel":"enum\u003cstring>"}},"required":["type","frozen","consume"],"isRequired":true,"uniqueKey":"meta.oneOf.0.usage","typeLabel":"object"}},"isRequired":true,"uniqueKey":"meta.oneOf.0","typeLabel":"object"},{"type":"null","description":"Timestamps and billing usage of the task (null in error responses).","isRequired":true,"uniqueKey":"meta.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"meta","typeLabel":"object | null"},"model":{"type":"string","description":"Model family that executed the task.","enum":["midjourney"],"isRequired":true,"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"output":{"oneOf":[{"type":"object","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","required":["image_url","image_urls","seed"],"properties":{"image_url":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.0.image_url","typeLabel":"string"},"image_urls":{"type":"array","items":{"type":"string","uniqueKey":"output.oneOf.0.image_urls.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"output.oneOf.0.image_urls","typeLabel":"string[]"},"seed":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.0.seed","typeLabel":"string"},"available_actions":{"type":"object","uniqueKey":"output.oneOf.0.available_actions","typeLabel":"object"}},"isRequired":true,"uniqueKey":"output.oneOf.0","typeLabel":"object"},{"type":"object","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","required":["video_urls","seed"],"properties":{"seed":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.1.seed","typeLabel":"string"},"video_urls":{"type":"array","items":{"type":"string","uniqueKey":"output.oneOf.1.video_urls.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"output.oneOf.1.video_urls","typeLabel":"string[]"},"available_actions":{"type":"object","uniqueKey":"output.oneOf.1.available_actions","typeLabel":"object"}},"isRequired":true,"uniqueKey":"output.oneOf.1","typeLabel":"object"},{"type":"object","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","required":["promptEn","description","finalPrompt","prompts"],"properties":{"description":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.2.description","typeLabel":"string"},"finalPrompt":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.2.finalPrompt","typeLabel":"string"},"promptEn":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.2.promptEn","typeLabel":"string"},"prompts":{"type":"array","items":{"type":"string","uniqueKey":"output.oneOf.2.prompts.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"output.oneOf.2.prompts","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"output.oneOf.2","typeLabel":"object"},{"type":"null","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","isRequired":true,"uniqueKey":"output.oneOf.3","typeLabel":"null"}],"isRequired":true,"uniqueKey":"output","typeLabel":"object · object · object · null"},"status":{"type":"string","description":"Lifecycle state. Terminal states: `completed`, `failed`. `staged` means the task is queued behind the account's concurrency limit; `retry` means it is being resubmitted after a transient provider error.","enum":["pending","staged","processing","retry","completed","failed"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"task_type":{"type":"string","description":"Type of the task — the operation that created it.","enum":["diffusion","upscale","reroll","variation","inpaint","outpaint","pan","edit","remix","enhance","upload_paint","retexture","remove_background","shorten","describe","blend","video_diffusion","extend_video","video_upscale","enhance_upscale"],"isRequired":true,"uniqueKey":"task_type","typeLabel":"enum\u003cstring>"}},"required":["job_id","model","task_type","status","config","input","output","meta","detail","logs","error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"config":{"service_mode":"public","webhook_config":{"endpoint":"\u003cstring>","secret":"\u003cstring>"}},"detail":null,"error":{"code":123,"detail":"\u003cunknown>","message":"\u003cstring>","raw_message":"\u003cstring>"},"input":{},"job_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","logs":["\u003cstring>"],"meta":{"created_at":"2023-11-07T05:31:56Z","ended_at":"2023-11-07T05:31:56Z","started_at":"2023-11-07T05:31:56Z","usage":{"consume":123,"frozen":123,"type":"credit"}},"model":"midjourney","output":{"image_url":"\u003cstring>","image_urls":["\u003cstring>"],"seed":"\u003cstring>","available_actions":{}},"status":"pending","task_type":"diffusion"}}},"exampleType":"generated"}},"exampleType":"generated"},"f2edbf26-73d2-4938-8b65-d249c114c50b":{"description":"Internal Server Error — unexpected server-side failure.","content":{"application/json":{"schema":{"type":"object","properties":{"config":{"type":"object","properties":{"service_mode":{"type":"string","description":"Service mode the task runs under. Only `public` is currently supported.","enum":["public"],"isRequired":true,"uniqueKey":"config.service_mode","typeLabel":"enum\u003cstring>"},"webhook_config":{"type":"object","properties":{"endpoint":{"type":"string","isRequired":true,"uniqueKey":"config.webhook_config.endpoint","typeLabel":"string"},"secret":{"type":"string","isRequired":true,"uniqueKey":"config.webhook_config.secret","typeLabel":"string"}},"required":["endpoint","secret"],"isRequired":true,"uniqueKey":"config.webhook_config","typeLabel":"object"}},"required":["service_mode","webhook_config"],"isRequired":true,"uniqueKey":"config","typeLabel":"object"},"detail":{"type":"null","description":"Reserved for future use; currently null in public API responses.","isRequired":true,"uniqueKey":"detail","typeLabel":"null"},"error":{"type":"object","properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"error.code","typeLabel":"integer"},"detail":{"oneOf":[{"isRequired":true}],"isRequired":true,"uniqueKey":"error.detail","typeLabel":"any"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"raw_message":{"type":"string","isRequired":true,"uniqueKey":"error.raw_message","typeLabel":"string"}},"required":["code","raw_message","message","detail"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"input":{"type":"object","description":"Echo of the task's input parameters (shape depends on `task_type`; mirrors the create-request body of the operation that created the task). Null in error responses.","isRequired":true,"uniqueKey":"input","typeLabel":"object"},"job_id":{"type":"string","format":"uuid","description":"Task UUID. Pass it to GET /v1/job/{job_id} to poll, or reference it as `jobId` in follow-up operations.","isRequired":true,"uniqueKey":"job_id","typeLabel":"string\u003cuuid>"},"logs":{"type":"array","description":"Operational log lines of the task (progress events, retries).","items":{"type":"string","uniqueKey":"logs.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"logs","typeLabel":"string[]"},"meta":{"oneOf":[{"type":"object","description":"Timestamps and billing usage of the task (null in error responses).","required":["created_at","started_at","ended_at","usage"],"properties":{"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"ended_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.oneOf.0.ended_at","typeLabel":"string\u003cdate-time>"},"started_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meta.oneOf.0.started_at","typeLabel":"string\u003cdate-time>"},"usage":{"type":"object","properties":{"consume":{"type":"integer","isRequired":true,"uniqueKey":"meta.oneOf.0.usage.consume","typeLabel":"integer"},"frozen":{"type":"integer","isRequired":true,"uniqueKey":"meta.oneOf.0.usage.frozen","typeLabel":"integer"},"type":{"type":"string","description":"Billing unit used for the task.","enum":["credit","point"],"isRequired":true,"uniqueKey":"meta.oneOf.0.usage.type","typeLabel":"enum\u003cstring>"}},"required":["type","frozen","consume"],"isRequired":true,"uniqueKey":"meta.oneOf.0.usage","typeLabel":"object"}},"isRequired":true,"uniqueKey":"meta.oneOf.0","typeLabel":"object"},{"type":"null","description":"Timestamps and billing usage of the task (null in error responses).","isRequired":true,"uniqueKey":"meta.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"meta","typeLabel":"object | null"},"model":{"type":"string","description":"Model family that executed the task.","enum":["midjourney"],"isRequired":true,"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"output":{"oneOf":[{"type":"object","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","required":["image_url","image_urls","seed"],"properties":{"image_url":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.0.image_url","typeLabel":"string"},"image_urls":{"type":"array","items":{"type":"string","uniqueKey":"output.oneOf.0.image_urls.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"output.oneOf.0.image_urls","typeLabel":"string[]"},"seed":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.0.seed","typeLabel":"string"},"available_actions":{"type":"object","uniqueKey":"output.oneOf.0.available_actions","typeLabel":"object"}},"isRequired":true,"uniqueKey":"output.oneOf.0","typeLabel":"object"},{"type":"object","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","required":["video_urls","seed"],"properties":{"seed":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.1.seed","typeLabel":"string"},"video_urls":{"type":"array","items":{"type":"string","uniqueKey":"output.oneOf.1.video_urls.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"output.oneOf.1.video_urls","typeLabel":"string[]"},"available_actions":{"type":"object","uniqueKey":"output.oneOf.1.available_actions","typeLabel":"object"}},"isRequired":true,"uniqueKey":"output.oneOf.1","typeLabel":"object"},{"type":"object","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","required":["promptEn","description","finalPrompt","prompts"],"properties":{"description":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.2.description","typeLabel":"string"},"finalPrompt":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.2.finalPrompt","typeLabel":"string"},"promptEn":{"type":"string","isRequired":true,"uniqueKey":"output.oneOf.2.promptEn","typeLabel":"string"},"prompts":{"type":"array","items":{"type":"string","uniqueKey":"output.oneOf.2.prompts.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"output.oneOf.2.prompts","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"output.oneOf.2","typeLabel":"object"},{"type":"null","description":"Task result, present once status is `completed` (null before that). Image/video tasks return URLs; describe/shorten tasks return text prompts.","isRequired":true,"uniqueKey":"output.oneOf.3","typeLabel":"null"}],"isRequired":true,"uniqueKey":"output","typeLabel":"object · object · object · null"},"status":{"type":"string","description":"Lifecycle state. Terminal states: `completed`, `failed`. `staged` means the task is queued behind the account's concurrency limit; `retry` means it is being resubmitted after a transient provider error.","enum":["pending","staged","processing","retry","completed","failed"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"task_type":{"type":"string","description":"Type of the task — the operation that created it.","enum":["diffusion","upscale","reroll","variation","inpaint","outpaint","pan","edit","remix","enhance","upload_paint","retexture","remove_background","shorten","describe","blend","video_diffusion","extend_video","video_upscale","enhance_upscale"],"isRequired":true,"uniqueKey":"task_type","typeLabel":"enum\u003cstring>"}},"required":["job_id","model","task_type","status","config","input","output","meta","detail","logs","error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"config":{"service_mode":"public","webhook_config":{"endpoint":"\u003cstring>","secret":"\u003cstring>"}},"detail":null,"error":{"code":123,"detail":"\u003cunknown>","message":"\u003cstring>","raw_message":"\u003cstring>"},"input":{},"job_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","logs":["\u003cstring>"],"meta":{"created_at":"2023-11-07T05:31:56Z","ended_at":"2023-11-07T05:31:56Z","started_at":"2023-11-07T05:31:56Z","usage":{"consume":123,"frozen":123,"type":"credit"}},"model":"midjourney","output":{"image_url":"\u003cstring>","image_urls":["\u003cstring>"],"seed":"\u003cstring>","available_actions":{}},"status":"pending","task_type":"diffusion"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"37369b50-78d7-4408-acb9-fd64d4e6647c":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key from the Legnext dashboard. `Authorization: Bearer \u003ckey>` is accepted as an alternative.","scopes":[]}}},"servers":{"0a7e4709-9f3f-4be1-a56b-dcaf478d2d5f":{"url":"https://api.legnext.ai/api","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key from the Legnext dashboard. `Authorization: Bearer \u003ckey>` is accepted as an alternative.","scopes":[]},"schema":{"title":"x-api-key","type":"string","description":"API key from the Legnext dashboard. `Authorization: Bearer \u003ckey>` is accepted as an alternative.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"x-api-key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"leggie","siteName":"Legnext AI API","title":"Video Upscale - Legnext AI API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-30T22:43:05.212Z","originalFileLocation":"api-reference/video-generation/video-upscale.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=\"Upscale one video from a completed video task.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Legnext AI API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/leggie/uqxQGNHR68mj-cfe/_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/leggie/uqxQGNHR68mj-cfe/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/leggie/uqxQGNHR68mj-cfe/_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/leggie/uqxQGNHR68mj-cfe/_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/leggie/uqxQGNHR68mj-cfe/_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/leggie/uqxQGNHR68mj-cfe/_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/leggie/uqxQGNHR68mj-cfe/_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/leggie/uqxQGNHR68mj-cfe/_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/leggie/uqxQGNHR68mj-cfe/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Video Upscale - Legnext AI API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Upscale one video from a completed video task.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Legnext AI API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.legnext.ai/api-reference/video-generation/video-upscale\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://legnext.ai/og-image.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Legnext AI API - Midjourney Image \u0026amp; Video Generation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Professional API for AI-powered image and video generation using Midjourney models\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://legnext.ai/og-image.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/leggie/uqxQGNHR68mj-cfe/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Legnext AI API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#9333EA\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.legnext.ai/api-reference/video-generation/video-upscale\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/video-generation/video-upscale.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.legnext.ai/#organization\",\"name\":\"Legnext AI API\",\"url\":\"https://docs.legnext.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/leggie/YWSsPTgoYu8cYOsa/logo/light.svg?fit=max\u0026auto=format\u0026n=YWSsPTgoYu8cYOsa\u0026q=85\u0026s=3476ba306e8316af3dc44ed04638f199\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.legnext.ai#website\",\"name\":\"Legnext AI API\",\"url\":\"https://docs.legnext.ai\",\"publisher\":{\"@id\":\"https://docs.legnext.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.legnext.ai/api-reference/video-generation/video-upscale#webpage\",\"url\":\"https://docs.legnext.ai/api-reference/video-generation/video-upscale\",\"name\":\"Video Upscale\",\"description\":\"Upscale one video from a completed video task.\",\"dateModified\":\"2026-07-30T22:43:05.212Z\",\"isPartOf\":{\"@id\":\"https://docs.legnext.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.legnext.ai/api-reference/video-generation/video-upscale#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.legnext.ai/api-reference/video-generation/video-upscale#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API reference\",\"item\":\"https://docs.legnext.ai/api-reference/image-generation/diffusion\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Video Generation\",\"item\":\"https://docs.legnext.ai/api-reference/video-generation/video-diffusion\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Video Upscale\",\"item\":\"https://docs.legnext.ai/api-reference/video-generation/video-upscale\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.legnext.ai/api-reference/video-generation/video-upscale#apireference\",\"headline\":\"Video Upscale\",\"name\":\"Video Upscale\",\"description\":\"Upscale one video from a completed video task.\",\"url\":\"https://docs.legnext.ai/api-reference/video-generation/video-upscale\",\"mainEntityOfPage\":{\"@id\":\"https://docs.legnext.ai/api-reference/video-generation/video-upscale#webpage\"},\"image\":\"https://legnext.ai/og-image.png\",\"dateModified\":\"2026-07-30T22:43:05.212Z\",\"publisher\":{\"@id\":\"https://docs.legnext.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.legnext.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Legnext AI API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Legnext AI API","nav":{"global":null,"groups":[{"group":"Start here","icon":"rocket","pages":[{"title":"Integrate with an AI coding agent","sidebarTitle":"Agent setup","icon":"https://mintlify.s3.us-west-1.amazonaws.com/leggie/icon/agents/claude-code.svg","href":"/getting-started/ai-agents"},{"title":"First API request","href":"/getting-started/quickstart"},{"title":"Bring Your Own Account (BYOK)","href":"/getting-started/byok"},{"title":"Prompting Basics","href":"/getting-started/prompting-basics"},{"title":"Advanced Prompting","href":"/getting-started/prompting-advanced"}]},{"group":"API basics","icon":"book-open","pages":[{"title":"Authentication","href":"/getting-started/authentication"},{"title":"Task lifecycle","href":"/getting-started/task-lifecycle"},{"title":"Errors \u0026 recovery","href":"/api-reference/errors"},{"title":"Output Storage","href":"/getting-started/output-storage"}]},{"group":"Reference","icon":"brackets-curly","pages":[{"title":"Models","href":"/getting-started/models"},{"title":"Image Parameters","mode":"wide","href":"/getting-started/image-parameters"},{"title":"Video Parameters","href":"/getting-started/video-parameters"},{"title":"SDKs \u0026 client libraries","href":"/sdks"}]},{"group":"Platform integrations","icon":"puzzle","pages":[{"title":"n8n","href":"/integrations/n8n"},{"title":"Postman","href":"/integrations/postman"},{"title":"Make","href":"/integrations/make"}]},{"group":"API reference","icon":"code","pages":[{"group":"Image Generation","pages":[{"title":"Text to Image","openapi":"POST /v1/diffusion","href":"/api-reference/image-generation/diffusion"},{"title":"Variation","openapi":"POST /v1/variation","href":"/api-reference/image-generation/variation"},{"title":"Upscale","openapi":"POST /v1/upscale","href":"/api-reference/image-generation/upscale"},{"title":"Reroll","openapi":"POST /v1/reroll","href":"/api-reference/image-generation/reroll"},{"title":"Blend","openapi":"POST /v1/blend","href":"/api-reference/image-generation/blend"},{"title":"Describe","openapi":"POST /v1/describe","href":"/api-reference/image-generation/describe"},{"title":"Shorten","openapi":"POST /v1/shorten","href":"/api-reference/image-generation/shorten"},{"title":"Pan","openapi":"POST /v1/pan","href":"/api-reference/image-generation/pan"},{"title":"Outpaint","openapi":"POST /v1/outpaint","href":"/api-reference/image-generation/outpaint"},{"title":"Inpaint","openapi":"POST /v1/inpaint","href":"/api-reference/image-generation/inpaint"},{"title":"Remix","openapi":"POST /v1/remix","href":"/api-reference/image-generation/remix"},{"title":"Edit","openapi":"POST /v1/edit","href":"/api-reference/image-generation/edit"},{"title":"Upload paint","openapi":"POST /v1/upload-paint","href":"/api-reference/image-generation/upload-paint"},{"title":"Retexture","openapi":"POST /v1/retexture","href":"/api-reference/image-generation/retexture"},{"title":"Remove Background","openapi":"POST /v1/remove-background","href":"/api-reference/image-generation/remove-background"},{"title":"Midjourney Enhance","openapi":"POST /v1/enhance","href":"/api-reference/image-generation/enhance"}]},{"group":"Video Generation","pages":[{"title":"Video Diffusion","openapi":"POST /v1/video-diffusion","href":"/api-reference/video-generation/video-diffusion"},{"title":"Extend Video","description":"Extend one video from a completed video task.","openapi":"POST /v1/extend-video","href":"/api-reference/video-generation/extend-video"},{"title":"Video Upscale","openapi":"POST /v1/video-upscale","href":"/api-reference/video-generation/video-upscale"}]},{"group":"Task Management","pages":[{"title":"Get Task","description":"Retrieve the current state and result of an asynchronous task.","openapi":"GET /v1/job/{job_id}","href":"/api-reference/task-management/get-task"}]},{"group":"Account Management","pages":[{"title":"Get Account Balance","openapi":"GET /account/balance","href":"/api-reference/account-management/get-balance"}]}]},{"group":"Updates","icon":"newspaper","pages":[{"title":"Changelog","sidebarTitle":"Changelog","href":"/changelog"}]}]},"title":"Video Upscale - Legnext AI API","buildId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","deploymentId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-rfhihCWU.js","utils-BmH1XFxk.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BcNsxPKB.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BAES3tkd.js","snippetPresets-DCMQBKLP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D6l_bzE9.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BOktbnNh.js","shallow-BCs8SgM7.js","getApiPlaygroundDisplay-DEmW5bJB.js","CodeSnippet-CpZOpB9C.js","CodeSnippets-BOBDqibl.js","Page-D5fEM6aW.js","getPastedJson-DH2JBvmr.js","icon-BBJH-kKh.js","MethodPill-D2Sd5NLC.js","DuplicateIcon-CGgfL2qN.js","createIcon-BKudBBzi.js","DynamicMarkdown-85clUA0i.js","SectionHeading-D0JiMgDx.js","axios-vUo_bRtp.js","Markdown-Cfiy0xZO.js","clsx-rL8ZCCw4.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-aeztFa9U.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BywkCr5C.js"]}