Wan 2.6 Video API: Text, Image & Reference to Video
Alibaba Wan 2.6 Video generation API for text, image, and reference-driven workflows
Overview
Wan 2.6 Video is an Alibaba video model for text-to-video, image-to-video, and reference-guided generation. Use this page when you are ready to call the API after trying the model in the APIXO playground.
Prompt text. Required for all modes and cannot be empty after trimming. Supports Chinese and English; maximum length is 1500 characters and excess content is truncated by the model service.
string
Optional negative prompt. Supports Chinese and English; maximum length is 500 characters and excess content is truncated by the model service.
string[]
Required for image-to-video-flash and image-to-video. Must contain exactly one URL. Image constraints: formats JPEG/JPG/PNG (no alpha), BMP, WEBP; width and height 240-8000 px; file size <= 20MB.
string[]
Required for reference-to-video-flash and reference-to-video. Must contain 1-5 URLs. Mixed image/video is supported with limits: images 0-5, videos 0-3, and total images + videos <= 5. Reference ordering maps to role order (character1, character2, …). Reference video constraints: mp4/mov, 1-30s, file size <= 100MB. Reference image constraints: JPEG/JPG/PNG (no alpha), BMP, WEBP, width/height 240-8000 px, file size <= 20MB.
string[]
Public audio input. Optional. If provided, must contain exactly one URL. Audio constraints: formats wav/mp3, duration 3-30s, file size <= 15MB. If audio is longer than duration, only the first duration seconds are used; if audio is shorter than output video duration, the remaining segment is silent. In flash modes, when sound=false, audio input is ignored.
Accepts integer or numeric string input. text-to-video, image-to-video-flash, and image-to-video: 2-15. reference-to-video-flash and reference-to-video: 2-10.
boolean
default:"true"
Whether to enable prompt rewriting before generation. true (default) enables rewriting and can improve short prompts but may increase latency. false disables rewriting.
string
Optional shot mode. Supported values: single, multi. When both shot_type and prompt shot instructions are present, shot_type takes priority.
integer
Optional random seed. Supported values: 0-2147483647. A fixed seed improves reproducibility, but identical seeds do not guarantee identical outputs.
boolean
Optional watermark switch. false (default) means no watermark. true adds a bottom-right watermark with fixed text AI 生成 (AI Generated).
boolean
default:"true (flash modes only)"
Flash-only audio generation switch for image-to-video-flash and reference-to-video-flash. true (default) generates voiced video. false generates silent video and ignores optional audio input.
boolean
default:"false"
Set to true to enable upstream content moderation on supported generation routes. The API default is false.
Response format
Submit task response
POST /generateTask/wan-2-6-video returns a task ID when the task is accepted:
integer
API status code. 200 means the task was accepted.
string
Human-readable status message.
string
Unique task identifier used with the status endpoint.
Status response fields
string
Unique task identifier.
string
Current task state: pending, processing, success, or failed.
string
JSON string containing generated video URLs in resultUrls. Present when state is success.
string
Machine-readable failure code. Present when state is failed.
string
Human-readable failure message. Present when state is failed.
integer
Task creation timestamp in Unix milliseconds.
integer
Task completion timestamp in Unix milliseconds. Present after completion.
integer
Processing duration in milliseconds. Present after completion when timing data is available.
Webhook callback mode
Use callback mode when your backend should receive the final result automatically instead of polling.
curl -X POST "https://api.apixo.ai/api/v1/generateTask/wan-2-6-video" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "request_type": "callback", "callback_url": "https://your-server.com/webhooks/apixo", "input": { "mode": "image-to-video-flash", "prompt": "make the character speak with subtle camera motion", "image_urls": [ "https://example.com/hero.png" ], "resolution": "720p", "duration": 5, "sound": false } }'
See Webhooks for delivery requirements and retry behavior.
Billing
New non-LLM requests use 1 credit = $0.001. Calculate the full amount, including billable quantity and add-ons, apply the applicable account discount, then round the request total upward to the next whole credit. Agreed fixed unit prices retain their precision and replace the standard price and discount; final rounding still applies. See credit conversion and rounding.Wan 2.6 Video is billed per second. Total cost is duration * unitPrice.Standard (non-flash) modes:
Wan 2.6 Video tasks are asynchronous. The backend does not provide a fixed public latency SLA; actual latency varies by mode, duration, resolution, prompt complexity, media fetch speed, and queue load.
Workflow
Recommended first poll
Poll interval
text-to-video
30s after task creation
10s
image-to-video / image-to-video-flash
30s after task creation
10s
reference-to-video / reference-to-video-flash
45s after task creation
10s-15s
For production workloads, use callback mode to avoid frequent polling on long-running video jobs.
Rate limits and concurrency can vary by account, API key, and route. If you receive 429, slow down requests and retry with backoff. For account-level details, see System APIs.
Errors and troubleshooting
HTTP errors
Code
Meaning
What to do
400
Invalid request body, mode, parameter, or media URL shape
Fix the request before retrying
401
Missing or invalid API key
Check the Authorization header
402
Insufficient balance or quota
Add balance or switch account/key
403
Key or route cannot access the model
Check permissions and route strategy
429
Rate limit or concurrency limit reached
Retry with exponential backoff
500
Server error
Retry with backoff
502
Service error
Retry with backoff
504
Service timeout
Retry or use callback mode
Task failure codes
failCode identifies the task failure. Common values include:
Fail code
Meaning
What to do
PromptInvalid
Prompt is invalid or rejected by the model service
Rewrite the prompt and retry
MissingParameter / BadRequest
Required fields are missing or malformed
Check mode-specific required fields
SensitiveContent / SensitiveContentDetected
Prompt or media failed safety checks
Change prompt or media
RateLimitExceeded
Model service or route rate limit was reached
Retry with exponential backoff
Task TimeOut / Timeout
Model generation timed out
Retry or use callback mode
Parameter troubleshooting
prompt is required and must be non-empty for all modes.
image-to-video-flash and image-to-video require exactly one image_urls item.
reference-to-video-flash and reference-to-video require reference_urls with 1-5 items.
sound is valid only for flash modes.
duration defaults to 5, but reference modes only allow up to 10.
In flash modes, when sound=false, optional audio input is ignored.
The complete model schema declares result decoding in mcp.result and supported file bindings in mcp.attachments. These are client integration metadata, not generation input parameters. Attachment paths: image_urls, reference_urls, audio_urls. Preserve the user’s file order. Model parameter validation remains on the API.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"APIXO","description":"APIXO developer documentation for building with image, video, audio, and LLM APIs. Learn authentication, generation workflows, model capabilities, integrations, and API reference.","colors":{"primary":"#0A0D14","light":"#FFFFFF","dark":"#0A0D14"},"logo":{"light":"https://mintcdn.com/gravity-5d102d7e/Av4s9i9o7qbwDSEy/logo/light.svg?fit=max\u0026auto=format\u0026n=Av4s9i9o7qbwDSEy\u0026q=85\u0026s=5433e3866d978cb04dffe3a42991cd08","dark":"https://mintcdn.com/gravity-5d102d7e/Av4s9i9o7qbwDSEy/logo/dark.svg?fit=max\u0026auto=format\u0026n=Av4s9i9o7qbwDSEy\u0026q=85\u0026s=e1d22f21295119073547cef3253a6228","href":"https://apixo.ai"},"favicon":"https://mintcdn.com/gravity-5d102d7e/Av4s9i9o7qbwDSEy/favicon.svg?fit=max\u0026auto=format\u0026n=Av4s9i9o7qbwDSEy\u0026q=85\u0026s=6bf6f784f61aec1e3cca98c87df301da","navbar":{"links":[{"href":"https://apixo.ai/dashboard","label":"Dashboard"}],"primary":{"type":"button","label":"Get API Key","href":"https://apixo.ai/dashboard/api-keys"}},"footer":{"socials":{"website":"https://apixo.ai"}},"seo":{"metatags":{"canonical":"https://apixo.ai/docs","robots":"index, follow","googlebot":"index, follow","language":"en"}},"integrations":{"ga4":{"measurementId":"G-L7HV3Q7L1R"},"posthog":{"apiKey":"phc_zDxriqKMhXBEPbabNjU2h5rEnQmrmW3nZpofvGZULbkq","sessionRecording":false}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"interaction":{"drilldown":false},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"gravity-5d102d7e","hasAudioNarration":false,"actualSubdomain":"gravity-5d102d7e","customDomains":["apixo.ai"],"gitSource":{"type":"github","owner":"llllash","repo":"apixo-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6afb06c63f0541c4a2aa0ea1","clientVersion":"0.0.4167","searchFilterCounts":[{"language":"default","tag":"Multimodal APIs","count":98},{"language":"default","tag":"Video Models","count":41},{"language":"default","tag":"Image Models","count":34},{"language":"default","tag":"API Reference","count":11},{"language":"default","tag":"Start Here","count":8},{"language":"default","tag":"More APIs","count":8},{"language":"default","tag":"Audio Models","count":8},{"language":"default","tag":"Wan Video","count":8},{"language":"default","tag":"Chat Models","count":7},{"language":"default","tag":"Kling","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#sidebar a[aria-current=\"page\"]{background-color:rgb(198 255 0 / 0.35)!important}.dark #sidebar a[aria-current=\"page\"]{background-color:rgb(198 255 0 / 0.16)!important}a.link{border-bottom:2px solid #c6ff00!important;text-decoration:none!important}#topbar-cta-button .bg-primary-dark{background-color:#c6ff00!important}#topbar-cta-button .text-white,#topbar-cta-button svg{color:#0a0d14!important}"}],"page":{"pagePath":"models/video/wan-2-6-video","slug":"/models/video/wan-2-6-video","pageMetadata":{"title":"Wan 2.6 Video API: Text, Image \u0026 Reference to Video","sidebarTitle":"Wan 2.6 Video","description":"Alibaba Wan 2.6 Video generation API for text, image, and reference-driven workflows","href":"/models/video/wan-2-6-video"},"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: \"Alibaba Wan 2.6 Video generation API for text, image, and reference-driven workflows\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,ResponseField,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`Wan 2.6 Video is an Alibaba video model for text-to-video, image-to-video, and reference-guided generation. Use this page when you are ready to call the API after trying the model in the APIXO playground.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Capability`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Model ID`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`wan-2-6-video`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Modes`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`text-to-video`}),`, `,_jsx(_components.code,{children:`image-to-video-flash`}),`, `,_jsx(_components.code,{children:`image-to-video`}),`, `,_jsx(_components.code,{children:`reference-to-video-flash`}),`, `,_jsx(_components.code,{children:`reference-to-video`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Prompt`}),_jsxs(_components.td,{children:[`Required for all modes, non-empty, max `,_jsx(_components.code,{children:`1500`}),` chars`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Negative prompt`}),_jsxs(_components.td,{children:[`Optional, max `,_jsx(_components.code,{children:`500`}),` chars`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Resolution tiers`}),_jsxs(_components.td,{\"data-numeric\":`true`,children:[_jsx(_components.code,{children:`720p`}),`, `,_jsx(_components.code,{children:`1080p`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Duration`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`text/image`}),`: `,_jsx(_components.code,{children:`2-15`}),` seconds (default `,_jsx(_components.code,{children:`5`}),`); `,_jsx(_components.code,{children:`reference`}),`: `,_jsx(_components.code,{children:`2-10`}),` seconds (default `,_jsx(_components.code,{children:`5`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Prompt rewrite`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`prompt_extend`}),` optional boolean; `,_jsx(_components.code,{children:`true`}),` (default) enables rewrite, `,_jsx(_components.code,{children:`false`}),` disables rewrite`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Image inputs`}),_jsxs(_components.td,{children:[`Exactly `,_jsx(_components.code,{children:`1`}),` URL for `,_jsx(_components.code,{children:`image-to-video-flash`}),` and `,_jsx(_components.code,{children:`image-to-video`}),`; `,_jsx(_components.code,{children:`JPEG/JPG/PNG(no alpha)/BMP/WEBP`}),`, `,_jsx(_components.code,{children:`240-8000`}),` px, `,_jsx(_components.code,{children:`\u003c=20MB`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Reference inputs`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`1-5`}),` URLs for `,_jsx(_components.code,{children:`reference-to-video-flash`}),` and `,_jsx(_components.code,{children:`reference-to-video`}),`; mixed image/video with `,_jsx(_components.code,{children:`images\u003c=5`}),`, `,_jsx(_components.code,{children:`videos\u003c=3`}),`, `,_jsx(_components.code,{children:`images+videos\u003c=5`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Audio input (`,_jsx(_components.code,{children:`audio_urls`}),`)`]}),_jsxs(_components.td,{children:[`Optional `,_jsx(_components.code,{children:`1`}),` URL; `,_jsx(_components.code,{children:`wav/mp3`}),`, `,_jsx(_components.code,{children:`3-30s`}),`, `,_jsx(_components.code,{children:`\u003c=15MB`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Flash audio switch`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`sound`}),` is flash-only and defaults to `,_jsx(_components.code,{children:`true`})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`endpoint-and-authentication`,children:`Endpoint and authentication`}),`\n`,_jsx(_components.p,{children:`Base URL:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://api.apixo.ai/api/v1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Endpoint`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/generateTask/wan-2-6-video`})}),_jsx(_components.td,{children:`Submit a generation task`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/statusTask/wan-2-6-video?taskId={taskId}`})}),_jsx(_components.td,{children:`Poll task status and retrieve results`})]})]})]}),`\n`,_jsx(_components.p,{children:`All requests require your APIXO API key:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Authorization`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Bearer YOUR_API_KEY`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Submit requests also require:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Content-Type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` application/json`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`copy-paste-async-quickstart`,children:`Copy-paste async quickstart`}),`\n`,_jsxs(_components.p,{children:[`This minimal request submits a text-to-video task and returns a `,_jsx(_components.code,{children:`taskId`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.apixo.ai/api/v1/generateTask/wan-2-6-video\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"request_type\": \"async\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"input\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mode\": \"text-to-video\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"a cinematic fox walking through neon rain\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\": \"720p\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\": 5,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt_extend\": true`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Successful response:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"taskId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"task_12345678\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Save the `,_jsx(_components.code,{children:`taskId`}),`; you need it to poll for the final result.`]}),`\n`,_jsx(Heading,{level:`2`,id:`poll-for-result`,children:`Poll for result`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` GET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.apixo.ai/api/v1/statusTask/wan-2-6-video?taskId=task_12345678\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Processing response:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"taskId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"task_12345678\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"state\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"processing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"createTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1767965610929`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Success response:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"taskId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"task_12345678\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"state\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resultJson\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"{`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`resultUrls`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:[`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`https://file.apixo.ai/video.mp4`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`]}\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"createTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1767965610929`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"completeTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1767965752317`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"costTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`141388`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Failed response:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"taskId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"task_12345678\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"state\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"failed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"failCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PromptInvalid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"failMsg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Prompt is invalid or rejected\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"createTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1767965610929`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"completeTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1767965620132`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Parse `,_jsx(_components.code,{children:`resultJson`}),` after `,_jsx(_components.code,{children:`state`}),` becomes `,_jsx(_components.code,{children:`success`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` payload`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`parse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`resultJson`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` videoUrls`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`resultUrls`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),`\n`,_jsx(Heading,{level:`3`,id:`text-to-video`,children:`Text-to-video`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`17`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"request_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"async\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text-to-video\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a cinematic fox walking through neon rain\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"audio_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/background.mp3\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"negative_prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"blurry, low quality\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1080p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt_extend\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shot_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"multi\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"seed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`42`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"watermark\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`image-to-video-flash`,children:`Image-to-video-flash`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"request_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"async\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"image-to-video-flash\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"make the character speak with subtle camera motion\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/hero.png\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"audio_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/voice.mp3\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1080p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sound\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`reference-to-video`,children:`Reference-to-video`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"request_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"async\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reference-to-video\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"character1 is reading a book in a cafe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reference_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/character1.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/scene.mp4\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"720p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`6`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`For non-flash modes, use `,_jsx(_components.code,{children:`image-to-video`}),` or `,_jsx(_components.code,{children:`reference-to-video`}),` and omit `,_jsx(_components.code,{children:`sound`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsx(ParamField,{body:`request_type`,type:`string`,required:true,default:`async`,id:`param-request-type`,children:_jsxs(_components.p,{children:[`Result delivery mode. Use `,_jsx(_components.code,{children:`async`}),` for polling with `,_jsx(_components.code,{children:`statusTask`}),`, or `,_jsx(_components.code,{children:`callback`}),` for webhook delivery.`]})}),`\n`,_jsx(ParamField,{body:`callback_url`,type:`string`,id:`param-callback-url`,children:_jsxs(_components.p,{children:[`Required when `,_jsx(_components.code,{children:`request_type`}),` is `,_jsx(_components.code,{children:`callback`}),`. Must be a public callback URL that can receive the final task payload. See `,_jsx(_components.a,{href:`/api-reference/webhooks`,children:`Webhooks`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`input`,type:`object`,required:true,id:`param-input`,children:[_jsx(_components.p,{children:`Wan 2.6 Video input parameters.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`mode`,type:`string`,required:true,id:`param-mode`,children:_jsxs(_components.p,{children:[`Generation mode. Supported values: `,_jsx(_components.code,{children:`text-to-video`}),`, `,_jsx(_components.code,{children:`image-to-video-flash`}),`, `,_jsx(_components.code,{children:`image-to-video`}),`, `,_jsx(_components.code,{children:`reference-to-video-flash`}),`, `,_jsx(_components.code,{children:`reference-to-video`}),`.`]})}),_jsx(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt`,children:_jsxs(_components.p,{children:[`Prompt text. Required for all modes and cannot be empty after trimming. Supports Chinese and English; maximum length is `,_jsx(_components.code,{children:`1500`}),` characters and excess content is truncated by the model service.`]})}),_jsx(ParamField,{body:`negative_prompt`,type:`string`,id:`param-negative-prompt`,children:_jsxs(_components.p,{children:[`Optional negative prompt. Supports Chinese and English; maximum length is `,_jsx(_components.code,{children:`500`}),` characters and excess content is truncated by the model service.`]})}),_jsx(ParamField,{body:`image_urls`,type:`string[]`,id:`param-image-urls`,children:_jsxs(_components.p,{children:[`Required for `,_jsx(_components.code,{children:`image-to-video-flash`}),` and `,_jsx(_components.code,{children:`image-to-video`}),`. Must contain exactly one URL. Image constraints: formats `,_jsx(_components.code,{children:`JPEG/JPG/PNG`}),` (no alpha), `,_jsx(_components.code,{children:`BMP`}),`, `,_jsx(_components.code,{children:`WEBP`}),`; width and height `,_jsx(_components.code,{children:`240-8000`}),` px; file size `,_jsx(_components.code,{children:`\u003c= 20MB`}),`.`]})}),_jsx(ParamField,{body:`reference_urls`,type:`string[]`,id:`param-reference-urls`,children:_jsxs(_components.p,{children:[`Required for `,_jsx(_components.code,{children:`reference-to-video-flash`}),` and `,_jsx(_components.code,{children:`reference-to-video`}),`. Must contain `,_jsx(_components.code,{children:`1-5`}),` URLs. Mixed image/video is supported with limits: images `,_jsx(_components.code,{children:`0-5`}),`, videos `,_jsx(_components.code,{children:`0-3`}),`, and total `,_jsx(_components.code,{children:`images + videos \u003c= 5`}),`. Reference ordering maps to role order (`,_jsx(_components.code,{children:`character1`}),`, `,_jsx(_components.code,{children:`character2`}),`, …). Reference video constraints: `,_jsx(_components.code,{children:`mp4/mov`}),`, `,_jsx(_components.code,{children:`1-30s`}),`, file size `,_jsx(_components.code,{children:`\u003c= 100MB`}),`. Reference image constraints: `,_jsx(_components.code,{children:`JPEG/JPG/PNG`}),` (no alpha), `,_jsx(_components.code,{children:`BMP`}),`, `,_jsx(_components.code,{children:`WEBP`}),`, width/height `,_jsx(_components.code,{children:`240-8000`}),` px, file size `,_jsx(_components.code,{children:`\u003c= 20MB`}),`.`]})}),_jsx(ParamField,{body:`audio_urls`,type:`string[]`,id:`param-audio-urls`,children:_jsxs(_components.p,{children:[`Public audio input. Optional. If provided, must contain exactly one URL. Audio constraints: formats `,_jsx(_components.code,{children:`wav/mp3`}),`, duration `,_jsx(_components.code,{children:`3-30s`}),`, file size `,_jsx(_components.code,{children:`\u003c= 15MB`}),`. If audio is longer than `,_jsx(_components.code,{children:`duration`}),`, only the first `,_jsx(_components.code,{children:`duration`}),` seconds are used; if audio is shorter than output video duration, the remaining segment is silent. In flash modes, when `,_jsx(_components.code,{children:`sound=false`}),`, audio input is ignored.`]})}),_jsx(ParamField,{body:`resolution`,type:`string`,id:`param-resolution`,children:_jsxs(_components.p,{children:[`Output resolution tier. Supported values: `,_jsx(_components.code,{children:`720p`}),`, `,_jsx(_components.code,{children:`1080p`}),`. Defaults: `,_jsx(_components.code,{children:`text-to-video`}),` -> `,_jsx(_components.code,{children:`720p`}),`; `,_jsx(_components.code,{children:`image-to-video`}),` and `,_jsx(_components.code,{children:`image-to-video-flash`}),` -> `,_jsx(_components.code,{children:`720p`}),`; `,_jsx(_components.code,{children:`reference-to-video`}),` and `,_jsx(_components.code,{children:`reference-to-video-flash`}),` -> `,_jsx(_components.code,{children:`1080p`}),`.`]})}),_jsx(ParamField,{body:`duration`,type:`integer`,default:`5`,id:`param-duration`,children:_jsxs(_components.p,{children:[`Accepts integer or numeric string input. `,_jsx(_components.code,{children:`text-to-video`}),`, `,_jsx(_components.code,{children:`image-to-video-flash`}),`, and `,_jsx(_components.code,{children:`image-to-video`}),`: `,_jsx(_components.code,{children:`2-15`}),`. `,_jsx(_components.code,{children:`reference-to-video-flash`}),` and `,_jsx(_components.code,{children:`reference-to-video`}),`: `,_jsx(_components.code,{children:`2-10`}),`.`]})}),_jsx(ParamField,{body:`prompt_extend`,type:`boolean`,default:`true`,id:`param-prompt-extend`,children:_jsxs(_components.p,{children:[`Whether to enable prompt rewriting before generation. `,_jsx(_components.code,{children:`true`}),` (default) enables rewriting and can improve short prompts but may increase latency. `,_jsx(_components.code,{children:`false`}),` disables rewriting.`]})}),_jsx(ParamField,{body:`shot_type`,type:`string`,id:`param-shot-type`,children:_jsxs(_components.p,{children:[`Optional shot mode. Supported values: `,_jsx(_components.code,{children:`single`}),`, `,_jsx(_components.code,{children:`multi`}),`. When both `,_jsx(_components.code,{children:`shot_type`}),` and prompt shot instructions are present, `,_jsx(_components.code,{children:`shot_type`}),` takes priority.`]})}),_jsx(ParamField,{body:`seed`,type:`integer`,id:`param-seed`,children:_jsxs(_components.p,{children:[`Optional random seed. Supported values: `,_jsx(_components.code,{children:`0-2147483647`}),`. A fixed seed improves reproducibility, but identical seeds do not guarantee identical outputs.`]})}),_jsx(ParamField,{body:`watermark`,type:`boolean`,id:`param-watermark`,children:_jsxs(_components.p,{children:[`Optional watermark switch. `,_jsx(_components.code,{children:`false`}),` (default) means no watermark. `,_jsx(_components.code,{children:`true`}),` adds a bottom-right watermark with fixed text `,_jsx(_components.code,{children:`AI 生成`}),` (AI Generated).`]})}),_jsx(ParamField,{body:`sound`,type:`boolean`,default:`true (flash modes only)`,id:`param-sound`,children:_jsxs(_components.p,{children:[`Flash-only audio generation switch for `,_jsx(_components.code,{children:`image-to-video-flash`}),` and `,_jsx(_components.code,{children:`reference-to-video-flash`}),`. `,_jsx(_components.code,{children:`true`}),` (default) generates voiced video. `,_jsx(_components.code,{children:`false`}),` generates silent video and ignores optional audio input.`]})}),_jsx(ParamField,{body:`nsfw_checker`,type:`boolean`,default:`false`,id:`param-nsfw-checker`,children:_jsxs(_components.p,{children:[`Set to `,_jsx(_components.code,{children:`true`}),` to enable upstream content moderation on supported generation routes. The API default is `,_jsx(_components.code,{children:`false`}),`.`]})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response-format`,children:`Response format`}),`\n`,_jsx(Heading,{level:`3`,id:`submit-task-response`,children:`Submit task response`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`POST /generateTask/wan-2-6-video`}),` returns a task ID when the task is accepted:`]}),`\n`,_jsx(ResponseField,{name:`code`,type:`integer`,id:`param-code`,children:_jsxs(_components.p,{children:[`API status code. `,_jsx(_components.code,{children:`200`}),` means the task was accepted.`]})}),`\n`,_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message`,children:_jsx(_components.p,{children:`Human-readable status message.`})}),`\n`,_jsx(ResponseField,{name:`data.taskId`,type:`string`,id:`param-data-task-id`,children:_jsx(_components.p,{children:`Unique task identifier used with the status endpoint.`})}),`\n`,_jsx(Heading,{level:`3`,id:`status-response-fields`,children:`Status response fields`}),`\n`,_jsx(ResponseField,{name:`taskId`,type:`string`,id:`param-task-id`,children:_jsx(_components.p,{children:`Unique task identifier.`})}),`\n`,_jsx(ResponseField,{name:`state`,type:`string`,id:`param-state`,children:_jsxs(_components.p,{children:[`Current task state: `,_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`processing`}),`, `,_jsx(_components.code,{children:`success`}),`, or `,_jsx(_components.code,{children:`failed`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`resultJson`,type:`string`,id:`param-result-json`,children:_jsxs(_components.p,{children:[`JSON string containing generated video URLs in `,_jsx(_components.code,{children:`resultUrls`}),`. Present when `,_jsx(_components.code,{children:`state`}),` is `,_jsx(_components.code,{children:`success`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`failCode`,type:`string`,id:`param-fail-code`,children:_jsxs(_components.p,{children:[`Machine-readable failure code. Present when `,_jsx(_components.code,{children:`state`}),` is `,_jsx(_components.code,{children:`failed`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`failMsg`,type:`string`,id:`param-fail-msg`,children:_jsxs(_components.p,{children:[`Human-readable failure message. Present when `,_jsx(_components.code,{children:`state`}),` is `,_jsx(_components.code,{children:`failed`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`createTime`,type:`integer`,id:`param-create-time`,children:_jsx(_components.p,{children:`Task creation timestamp in Unix milliseconds.`})}),`\n`,_jsx(ResponseField,{name:`completeTime`,type:`integer`,id:`param-complete-time`,children:_jsx(_components.p,{children:`Task completion timestamp in Unix milliseconds. Present after completion.`})}),`\n`,_jsx(ResponseField,{name:`costTime`,type:`integer`,id:`param-cost-time`,children:_jsx(_components.p,{children:`Processing duration in milliseconds. Present after completion when timing data is available.`})}),`\n`,_jsx(Heading,{level:`2`,id:`webhook-callback-mode`,children:`Webhook callback mode`}),`\n`,_jsx(_components.p,{children:`Use callback mode when your backend should receive the final result automatically instead of polling.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.apixo.ai/api/v1/generateTask/wan-2-6-video\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"request_type\": \"callback\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"callback_url\": \"https://your-server.com/webhooks/apixo\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"input\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mode\": \"image-to-video-flash\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"make the character speak with subtle camera motion\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"image_urls\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/hero.png\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\": \"720p\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\": 5,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sound\": false`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/api-reference/webhooks`,children:`Webhooks`}),` for delivery requirements and retry behavior.`]}),`\n`,_jsx(Heading,{level:`2`,id:`billing`,children:`Billing`}),`\n`,_jsxs(_components.p,{children:[`New non-LLM requests use `,_jsxs(_components.strong,{children:[`1 credit = `,_jsx(_components.code,{children:`$0.001`})]}),`. Calculate the full amount, including billable quantity and add-ons, apply the applicable account discount, then round the request total upward to the next whole credit. Agreed fixed unit prices retain their precision and replace the standard price and discount; final rounding still applies. See `,_jsx(_components.a,{href:`/pricing#credit-conversion-and-rounding`,children:`credit conversion and rounding`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Wan 2.6 Video is billed per second. Total cost is `,_jsx(_components.code,{children:`duration * unitPrice`}),`.`]}),`\n`,_jsx(_components.p,{children:`Standard (non-flash) modes:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Mode`}),_jsx(_components.th,{children:`Resolution`}),_jsx(_components.th,{children:`APIXO official price`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`text-to-video`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`720p`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`$0.10 / second`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`text-to-video`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1080p`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`$0.15 / second`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`image-to-video`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`720p`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`$0.10 / second`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`image-to-video`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1080p`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`$0.15 / second`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reference-to-video`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`720p`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`$0.20 / second`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reference-to-video`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1080p`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`$0.30 / second`})})]})]})]}),`\n`,_jsx(_components.p,{children:`Flash modes:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Mode`}),_jsx(_components.th,{children:`Resolution`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`sound=false`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`sound=true`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`image-to-video-flash`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`720p`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`$0.025 / second`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`$0.05 / second`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`image-to-video-flash`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1080p`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`$0.038 / second`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`$0.075 / second`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reference-to-video-flash`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`720p`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`$0.05 / second`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`$0.10 / second`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reference-to-video-flash`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1080p`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`$0.08 / second`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`$0.16 / second`})})]})]})]}),`\n`,_jsxs(_components.p,{children:[`For current API rates in USD, see `,_jsx(_components.a,{href:`https://apixo.ai/pricing/api`,children:`API pricing`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`latency-and-polling`,children:`Latency and polling`}),`\n`,_jsx(_components.p,{children:`Wan 2.6 Video tasks are asynchronous. The backend does not provide a fixed public latency SLA; actual latency varies by mode, duration, resolution, prompt complexity, media fetch speed, and queue load.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Workflow`}),_jsx(_components.th,{children:`Recommended first poll`}),_jsx(_components.th,{children:`Poll interval`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`text-to-video`})}),_jsx(_components.td,{children:`30s after task creation`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`10s`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`image-to-video`}),` / `,_jsx(_components.code,{children:`image-to-video-flash`})]}),_jsx(_components.td,{children:`30s after task creation`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`10s`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`reference-to-video`}),` / `,_jsx(_components.code,{children:`reference-to-video-flash`})]}),_jsx(_components.td,{children:`45s after task creation`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`10s-15s`})]})]})]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`For production workloads, use callback mode to avoid frequent polling on long-running video jobs.`})}),`\n`,_jsxs(_components.p,{children:[`Rate limits and concurrency can vary by account, API key, and route. If you receive `,_jsx(_components.code,{children:`429`}),`, slow down requests and retry with backoff. For account-level details, see `,_jsx(_components.a,{href:`/api-reference/system`,children:`System APIs`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors-and-troubleshooting`,children:`Errors and troubleshooting`}),`\n`,_jsx(Heading,{level:`3`,id:`http-errors`,children:`HTTP errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Meaning`}),_jsx(_components.th,{children:`What to do`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`Invalid request body, mode, parameter, or media URL shape`}),_jsx(_components.td,{children:`Fix the request before retrying`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`Missing or invalid API key`}),_jsxs(_components.td,{children:[`Check the `,_jsx(_components.code,{children:`Authorization`}),` header`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`402`})}),_jsx(_components.td,{children:`Insufficient balance or quota`}),_jsx(_components.td,{children:`Add balance or switch account/key`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`Key or route cannot access the model`}),_jsx(_components.td,{children:`Check permissions and route strategy`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:`Rate limit or concurrency limit reached`}),_jsx(_components.td,{children:`Retry with exponential backoff`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:`Server error`}),_jsx(_components.td,{children:`Retry with backoff`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`502`})}),_jsx(_components.td,{children:`Service error`}),_jsx(_components.td,{children:`Retry with backoff`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`504`})}),_jsx(_components.td,{children:`Service timeout`}),_jsx(_components.td,{children:`Retry or use callback mode`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`task-failure-codes`,children:`Task failure codes`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`failCode`}),` identifies the task failure. Common values include:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Fail code`}),_jsx(_components.th,{children:`Meaning`}),_jsx(_components.th,{children:`What to do`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PromptInvalid`})}),_jsx(_components.td,{children:`Prompt is invalid or rejected by the model service`}),_jsx(_components.td,{children:`Rewrite the prompt and retry`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`MissingParameter`}),` / `,_jsx(_components.code,{children:`BadRequest`})]}),_jsx(_components.td,{children:`Required fields are missing or malformed`}),_jsx(_components.td,{children:`Check mode-specific required fields`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`SensitiveContent`}),` / `,_jsx(_components.code,{children:`SensitiveContentDetected`})]}),_jsx(_components.td,{children:`Prompt or media failed safety checks`}),_jsx(_components.td,{children:`Change prompt or media`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`RateLimitExceeded`})}),_jsx(_components.td,{children:`Model service or route rate limit was reached`}),_jsx(_components.td,{children:`Retry with exponential backoff`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Task TimeOut`}),` / `,_jsx(_components.code,{children:`Timeout`})]}),_jsx(_components.td,{children:`Model generation timed out`}),_jsx(_components.td,{children:`Retry or use callback mode`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`parameter-troubleshooting`,children:`Parameter troubleshooting`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`prompt`}),` is required and must be non-empty for all modes.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`image-to-video-flash`}),` and `,_jsx(_components.code,{children:`image-to-video`}),` require exactly one `,_jsx(_components.code,{children:`image_urls`}),` item.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`reference-to-video-flash`}),` and `,_jsx(_components.code,{children:`reference-to-video`}),` require `,_jsx(_components.code,{children:`reference_urls`}),` with `,_jsx(_components.code,{children:`1-5`}),` items.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`sound`}),` is valid only for flash modes.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`duration`}),` defaults to `,_jsx(_components.code,{children:`5`}),`, but `,_jsx(_components.code,{children:`reference`}),` modes only allow up to `,_jsx(_components.code,{children:`10`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`In flash modes, when `,_jsx(_components.code,{children:`sound=false`}),`, optional audio input is ignored.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/api-reference/errors`,children:`Error Codes`}),` for the full error reference.`]}),`\n`,_jsx(Heading,{level:`2`,id:`mcp-integration`,children:`MCP integration`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`/models/schemas/video/wan-2-6-video.json`,children:`complete model schema`}),` declares result decoding in `,_jsx(_components.code,{children:`mcp.result`}),` and supported file bindings in `,_jsx(_components.code,{children:`mcp.attachments`}),`. These are client integration metadata, not generation input parameters. Attachment paths: `,_jsx(_components.code,{children:`image_urls`}),`, `,_jsx(_components.code,{children:`reference_urls`}),`, `,_jsx(_components.code,{children:`audio_urls`}),`. Preserve the user’s file order. Model parameter validation remains on the API.`]}),`\n`,_jsx(Heading,{level:`2`,id:`related-links`,children:`Related links`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/models`,children:`Generation API Overview`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/models/video`,children:`Video Models`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-reference/generate-task`,children:`Generate Task`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-reference/status-task`,children:`Status Task`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-reference/webhooks`,children:`Webhooks`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-reference/errors`,children:`Error Codes`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-reference/parameters`,children:`Parameter Specification`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/concepts/routing-strategies`,children:`Routing Strategies`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://apixo.ai/models/wan-2-6-video`,children:`Try Wan 2.6 Video in the APIXO Playground`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://apixo.ai/pricing/api`,children:`API pricing`})}),`\n`]})]})}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":"Wan 2.6 Video API: Text, Image \u0026 Reference to Video","sidebarTitle":"Wan 2.6 Video","description":"Alibaba Wan 2.6 Video generation API for text, image, and reference-driven workflows","href":"/models/video/wan-2-6-video"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Endpoint and authentication","slug":"endpoint-and-authentication","depth":2,"children":[]},{"title":"Copy-paste async quickstart","slug":"copy-paste-async-quickstart","depth":2,"children":[]},{"title":"Poll for result","slug":"poll-for-result","depth":2,"children":[]},{"title":"Request body","slug":"request-body","depth":2,"children":[{"title":"Text-to-video","slug":"text-to-video","depth":3,"children":[]},{"title":"Image-to-video-flash","slug":"image-to-video-flash","depth":3,"children":[]},{"title":"Reference-to-video","slug":"reference-to-video","depth":3,"children":[]}]},{"title":"Parameters","slug":"parameters","depth":2,"children":[]},{"title":"Response format","slug":"response-format","depth":2,"children":[{"title":"Submit task response","slug":"submit-task-response","depth":3,"children":[]},{"title":"Status response fields","slug":"status-response-fields","depth":3,"children":[]}]},{"title":"Webhook callback mode","slug":"webhook-callback-mode","depth":2,"children":[]},{"title":"Billing","slug":"billing","depth":2,"children":[]},{"title":"Latency and polling","slug":"latency-and-polling","depth":2,"children":[]},{"title":"Errors and troubleshooting","slug":"errors-and-troubleshooting","depth":2,"children":[{"title":"HTTP errors","slug":"http-errors","depth":3,"children":[]},{"title":"Task failure codes","slug":"task-failure-codes","depth":3,"children":[]},{"title":"Parameter troubleshooting","slug":"parameter-troubleshooting","depth":3,"children":[]}]},{"title":"MCP integration","slug":"mcp-integration","depth":2,"children":[]},{"title":"Related links","slug":"related-links","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"gravity-5d102d7e","siteName":"APIXO","title":"Wan 2.6 Video API: Text, Image \u0026 Reference to Video - APIXO","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-11T14:45:02.597Z","originalFileLocation":"models/video/wan-2-6-video.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=\"Alibaba Wan 2.6 Video generation API for text, image, and reference-driven workflows\">\u003cmeta data-mint-head name=\"application-name\" content=\"APIXO\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/gravity-5d102d7e/0MphcyxegGgYri0x/_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=\"/docs/mintlify-assets/_mintlify/favicons/gravity-5d102d7e/0MphcyxegGgYri0x/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/gravity-5d102d7e/0MphcyxegGgYri0x/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/gravity-5d102d7e/0MphcyxegGgYri0x/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/gravity-5d102d7e/0MphcyxegGgYri0x/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/gravity-5d102d7e/0MphcyxegGgYri0x/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/gravity-5d102d7e/0MphcyxegGgYri0x/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/gravity-5d102d7e/0MphcyxegGgYri0x/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/gravity-5d102d7e/0MphcyxegGgYri0x/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Wan 2.6 Video API: Text, Image \u0026amp; Reference to Video - APIXO\">\u003cmeta data-mint-head property=\"og:description\" content=\"Alibaba Wan 2.6 Video generation API for text, image, and reference-driven workflows\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"APIXO\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://apixo.ai/docs/models/video/wan-2-6-video\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://gravity-5d102d7e.mintlify.site/docs/_mintlify/api/og/v2?division=Wan+Video\u0026amp;title=Wan+2.6+Video+API%3A+Text%2C+Image+%26+Reference+to+Video\u0026amp;description=Alibaba+Wan+2.6+Video+generation+API+for+text%2C+image%2C+and+reference-driven+workflows\u0026amp;theme=e83b6bcc8469cdf871a17626\u0026amp;signature=a8aba62cfd02af37116f28477278438bb1fbe82417ea82ccd6ed564cae549ec9\">\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=\"Wan 2.6 Video API: Text, Image \u0026amp; Reference to Video - APIXO\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Alibaba Wan 2.6 Video generation API for text, image, and reference-driven workflows\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://gravity-5d102d7e.mintlify.site/docs/_mintlify/api/og/v2?division=Wan+Video\u0026amp;title=Wan+2.6+Video+API%3A+Text%2C+Image+%26+Reference+to+Video\u0026amp;description=Alibaba+Wan+2.6+Video+generation+API+for+text%2C+image%2C+and+reference-driven+workflows\u0026amp;theme=e83b6bcc8469cdf871a17626\u0026amp;signature=a8aba62cfd02af37116f28477278438bb1fbe82417ea82ccd6ed564cae549ec9\">\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=\"/docs/mintlify-assets/_mintlify/favicons/gravity-5d102d7e/0MphcyxegGgYri0x/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"APIXO\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0A0D14\">\u003cmeta data-mint-head name=\"googlebot\" content=\"index, follow\">\u003cmeta data-mint-head name=\"language\" content=\"en\">\u003clink data-mint-head rel=\"canonical\" href=\"https://apixo.ai/docs/models/video/wan-2-6-video\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/models/video/wan-2-6-video.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://apixo.ai/#organization\",\"name\":\"APIXO\",\"url\":\"https://apixo.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/gravity-5d102d7e/Av4s9i9o7qbwDSEy/logo/light.svg?fit=max\u0026auto=format\u0026n=Av4s9i9o7qbwDSEy\u0026q=85\u0026s=5433e3866d978cb04dffe3a42991cd08\"}},{\"@type\":\"WebSite\",\"@id\":\"https://apixo.ai/docs#website\",\"name\":\"APIXO\",\"url\":\"https://apixo.ai/docs\",\"publisher\":{\"@id\":\"https://apixo.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://apixo.ai/docs/models/video/wan-2-6-video#webpage\",\"url\":\"https://apixo.ai/docs/models/video/wan-2-6-video\",\"name\":\"Wan 2.6 Video API: Text, Image \u0026 Reference to Video\",\"description\":\"Alibaba Wan 2.6 Video generation API for text, image, and reference-driven workflows\",\"dateModified\":\"2026-11-11T14:45:02.597Z\",\"isPartOf\":{\"@id\":\"https://apixo.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://apixo.ai/docs/models/video/wan-2-6-video#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://apixo.ai/docs/models/video/wan-2-6-video#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Multimodal APIs\",\"item\":\"https://apixo.ai/docs/models\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Video Models\",\"item\":\"https://apixo.ai/docs/models/video\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Wan Video\",\"item\":\"https://apixo.ai/docs/models/video/wan-2-5-video\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Wan 2.6 Video API: Text, Image \u0026 Reference to Video\",\"item\":\"https://apixo.ai/docs/models/video/wan-2-6-video\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://apixo.ai/docs/models/video/wan-2-6-video#article\",\"headline\":\"Wan 2.6 Video API: Text, Image \u0026 Reference to Video\",\"name\":\"Wan 2.6 Video API: Text, Image \u0026 Reference to Video\",\"description\":\"Alibaba Wan 2.6 Video generation API for text, image, and reference-driven workflows\",\"url\":\"https://apixo.ai/docs/models/video/wan-2-6-video\",\"mainEntityOfPage\":{\"@id\":\"https://apixo.ai/docs/models/video/wan-2-6-video#webpage\"},\"dateModified\":\"2026-11-11T14:45:02.597Z\",\"publisher\":{\"@id\":\"https://apixo.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://apixo.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"APIXO\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"APIXO\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/models/video/wan-2-6-video.md","siteName":"APIXO","nav":{"global":null,"groups":[{"group":"Start Here","root":{"title":"APIXO API Documentation: Image, Video, Audio \u0026 LLM","sidebarTitle":"Overview","href":"/index"},"expanded":true,"pages":[{"title":"Quickstart: Make Your First Generation API Request","sidebarTitle":"Quickstart","href":"/quickstart"},{"title":"API Pricing: Image, Video, Audio \u0026 LLM Model Costs","sidebarTitle":"Pricing","href":"/pricing"},{"group":"Core Concepts","root":{"title":"Core Concepts: API Families, Tasks, Routing \u0026 Access","sidebarTitle":"Concepts Overview","href":"/concepts/index"},"expanded":false,"pages":[{"title":"How APIXO Works: API Families, Task Flow \u0026 Routing","sidebarTitle":"How APIXO Works","href":"/concepts/how-apixo-works"},{"title":"API Authentication: Create \u0026 Use Your APIXO API Key","sidebarTitle":"API Keys","href":"/concepts/authentication"},{"title":"Async Workflow: Submit Tasks, Poll Status \u0026 Get Results","sidebarTitle":"Async Workflow","href":"/concepts/async-workflow"},{"title":"Routing Strategies: Auto, Value \u0026 Official Providers","sidebarTitle":"Routing Strategies","href":"/concepts/routing-strategies"}]},{"group":"APIXO MCP","root":{"title":"APIXO MCP: Connect AI Clients to Image, Video \u0026 Audio Models","sidebarTitle":"MCP Overview","href":"/integrations/mcp/index"},"expanded":false,"pages":[{"title":"Connect APIXO MCP: Remote Setup for Codex, Claude Code \u0026 Cursor","sidebarTitle":"Installation","href":"/integrations/mcp/installation"},{"title":"APIXO MCP Troubleshooting: OAuth and Remote Connection Issues","sidebarTitle":"Troubleshooting","href":"/integrations/mcp/troubleshooting"}]}]},{"group":"Multimodal APIs","root":{"title":"Multimodal AI Models: Image, Video, Audio \u0026 Chat APIs","sidebarTitle":"Multimodal AI Models","href":"/models/index"},"expanded":true,"pages":[{"group":"Image Models","root":{"title":"Image Generation APIs: Text-to-Image, Editing \u0026 Upscale","sidebarTitle":"Image Models","href":"/models/image/index"},"expanded":false,"pages":[{"group":"Flux","expanded":false,"pages":[{"title":"Flux 2 API: Text-to-Image \u0026 Image Editing","sidebarTitle":"Flux 2","href":"/models/image/flux-2"},{"title":"FLUX 3 Image API: Text-to-Image \u0026 Image Editing","sidebarTitle":"FLUX 3 Image","href":"/models/image/flux-3-image"},{"title":"Flux Kontext API: Context-Aware Image Editing","sidebarTitle":"Flux Kontext","href":"/models/image/flux-kontext"}]},{"group":"GPT Image","expanded":false,"pages":[{"title":"GPT Image 1 API: Text-to-Image \u0026 Reference Editing","sidebarTitle":"GPT Image 1","href":"/models/image/gpt-image-1"},{"title":"GPT Image 2 API: Text-to-Image \u0026 Image-to-Image","sidebarTitle":"GPT Image 2","href":"/models/image/gpt-image-2"},{"title":"GPT Image 2.5 Flare API: Image Generation \u0026 Editing","sidebarTitle":"GPT Image 2.5 Flare","href":"/models/image/gpt-image-2-5-flare"},{"title":"GPT Image 2.5 Sunburst API: Image Generation \u0026 Editing","sidebarTitle":"GPT Image 2.5 Sunburst","href":"/models/image/gpt-image-2-5-sunburst"},{"title":"GPT Image 2.6 Flare API: Image Generation and Editing","sidebarTitle":"GPT Image 2.6 Flare","href":"/models/image/gpt-image-2-6-flare"},{"title":"GPT Image 2.6 Sunburst API: Image Generation and Editing","sidebarTitle":"GPT Image 2.6 Sunburst","href":"/models/image/gpt-image-2-6-sunburst"}]},{"group":"Grok","expanded":false,"pages":[{"title":"Grok Imagine Image API: xAI Text-to-Image \u0026 Image-to-Image","sidebarTitle":"Grok Imagine Image","href":"/models/image/grok-imagine-image"},{"title":"Grok Imagine Image 2.0 API: Image Generation \u0026 Editing","sidebarTitle":"Grok Imagine Image 2.0","href":"/models/image/grok-imagine-image-2-0"}]},{"title":"Midjourney API: Text-to-Image \u0026 Image-to-Image","sidebarTitle":"Midjourney","href":"/models/image/midjourney"},{"title":"MiniMax Image 01 API: Text-to-Image Generation","sidebarTitle":"MiniMax Image 01","href":"/models/image/minimax-image-01"},{"group":"Nano Banana","expanded":false,"pages":[{"title":"Nano Banana API: Fast Google Image Generation","sidebarTitle":"Nano Banana","href":"/models/image/nano-banana"},{"title":"Nano Banana Pro API: 4K Google Image Generation","sidebarTitle":"Nano Banana Pro","href":"/models/image/nano-banana-pro"},{"title":"Nano Banana 2 API: Google Text-to-Image \u0026 Editing","sidebarTitle":"Nano Banana 2","href":"/models/image/nano-banana-2"},{"title":"Nano Banana 2.1 API: Image Generation \u0026 Editing","sidebarTitle":"Nano Banana 2.1","href":"/models/image/nano-banana-2-1"}]},{"group":"Qwen Image","expanded":false,"pages":[{"title":"Qwen Image API: Prompt-Guided Image-to-Image","sidebarTitle":"Qwen Image","href":"/models/image/qwen"},{"title":"Qwen 2 Image API: Standard \u0026 Pro Text-to-Image","sidebarTitle":"Qwen 2 Image","href":"/models/image/qwen-2-image"},{"title":"Qwen Image 3.0 API: Text-to-Image \u0026 Editing","sidebarTitle":"Qwen Image 3.0","href":"/models/image/qwen-image-3-0"},{"title":"Qwen Image 3.0 Pro API: High-Fidelity Generation","sidebarTitle":"Qwen Image 3.0 Pro","href":"/models/image/qwen-image-3-0-pro"},{"title":"Qwen Image Edit LoRA API: Editing with Reference Images","sidebarTitle":"Qwen Image Edit LoRA","href":"/models/image/qwen-image-edit-lora"}]},{"group":"Runway Gen4 Image","expanded":false,"pages":[{"title":"Runway Gen4 Image API: Text \u0026 Reference to Image","sidebarTitle":"Runway Gen4 Image","href":"/models/image/runway-gen4-image"},{"title":"Runway Gen4 Image Turbo API: Fast Text-to-Image","sidebarTitle":"Runway Gen4 Image Turbo","href":"/models/image/runway-gen4-image-turbo"}]},{"group":"Seedream","expanded":false,"pages":[{"title":"Seedream 4.0 API: ByteDance Text-to-Image \u0026 Editing","sidebarTitle":"Seedream 4.0","href":"/models/image/seedream-4-0"},{"title":"Seedream 4.5 API: High-Resolution Image Generation","sidebarTitle":"Seedream 4.5","href":"/models/image/seedream-4-5"},{"title":"Seedream 5.0 API: Text-to-Image with Web Search","sidebarTitle":"Seedream 5.0","href":"/models/image/seedream-5-0"},{"title":"Seedream 5.0 Pro API: Layered Image Generation","sidebarTitle":"Seedream 5.0 Pro","href":"/models/image/seedream-5-0-pro"},{"title":"Seedream 5.5 API for Image Generation and Layer Decomposition","sidebarTitle":"Seedream 5.5","href":"/models/image/seedream-5-5"}]},{"group":"Wan Image","expanded":false,"pages":[{"title":"Wan 2.5 Image API: Text-to-Image \u0026 Image-to-Image","sidebarTitle":"Wan 2.5 Image","href":"/models/image/wan-2-5-image"},{"title":"Wan 2.6 Image API: Alibaba Text-to-Image Generation","sidebarTitle":"Wan 2.6 Image","href":"/models/image/wan-2-6-image"},{"title":"Wan 2.7 Image API: Omni-Image Generation","sidebarTitle":"Wan 2.7 Image","href":"/models/image/wan-2-7-image"}]},{"group":"Z-Image","expanded":false,"pages":[{"title":"Z-Image LoRA API: Flexible-Size Text-to-Image","sidebarTitle":"Z-Image LoRA","href":"/models/image/z-image-lora"},{"title":"Z-Image LoRA Pro API: Vivid Text-to-Image","sidebarTitle":"Z-Image LoRA Pro","href":"/models/image/z-image-lora-pro"}]}]},{"group":"Video Models","root":{"title":"Video Generation APIs: Text-to-Video \u0026 Image-to-Video","sidebarTitle":"Video Models","href":"/models/video/index"},"expanded":false,"pages":[{"title":"FLUX 3 API: Text-to-Video \u0026 Image-to-Video","sidebarTitle":"FLUX 3","href":"/models/video/flux-3"},{"title":"Gemini Omni API: Google Multimodal Video Generation","sidebarTitle":"Gemini Omni","href":"/models/video/gemini-omni"},{"group":"Grok","expanded":false,"pages":[{"title":"Grok Imagine Video API: xAI Text-to-Video \u0026 Image-to-Video","sidebarTitle":"Grok Imagine Video","href":"/models/video/grok-imagine-video"},{"title":"Grok Imagine Video 1.5 API: Image-to-Video Animation","sidebarTitle":"Grok Imagine Video 1.5","href":"/models/video/grok-imagine-video-1-5"}]},{"group":"Hailuo","expanded":false,"pages":[{"title":"Hailuo 2.3 API: Standard \u0026 Pro Video Generation","sidebarTitle":"Hailuo 2.3","href":"/models/video/hailuo-2-3"},{"title":"Hailuo 2.3 Fast API: Quick Image-to-Video","sidebarTitle":"Hailuo 2.3 Fast","href":"/models/video/hailuo-2-3-fast"}]},{"group":"MiniMax H3","expanded":false,"pages":[{"title":"MiniMax H3 API: 768p \u0026 2K Video Generation","sidebarTitle":"MiniMax H3","href":"/models/video/minimax-h3"},{"title":"MiniMax H3 LoRA API: 480p \u0026 768p Video","sidebarTitle":"MiniMax H3 LoRA","href":"/models/video/minimax-h3-lora"}]},{"title":"HappyHorse API: Video Generation \u0026 Editing","sidebarTitle":"HappyHorse","href":"/models/video/happyhorse"},{"title":"InfiniteTalk API: Audio-Driven Talking Avatar Video","sidebarTitle":"InfiniteTalk","href":"/models/video/infinitetalk"},{"group":"Kling","expanded":false,"pages":[{"title":"Kling 2.1 API: Standard, Pro \u0026 Master Video Modes","sidebarTitle":"Kling 2.1","href":"/models/video/kling-2-1"},{"title":"Kling 2.5 Turbo Pro API: Fast Quality Video","sidebarTitle":"Kling 2.5 Turbo Pro","href":"/models/video/kling-2-5-turbo-pro"},{"title":"Kling 2.6 API: Audio-Visual Video Generation","sidebarTitle":"Kling 2.6","href":"/models/video/kling-2-6"},{"title":"Kling 3.0 Standard API: Text \u0026 Image to Video","sidebarTitle":"Kling 3.0 Standard","href":"/models/video/kling-3-0-std"},{"title":"Kling 3.0 Turbo API: Fast Text-to-Video","sidebarTitle":"Kling 3.0 Turbo","href":"/models/video/kling-3-0-turbo"},{"title":"Kling 3.0 Omni API: Multi-Mode Video Generation","sidebarTitle":"Kling 3.0 Omni","href":"/models/video/kling-3-0-omni"},{"title":"Kling 4.0 API: Text, Keyframe \u0026 Reference Video","sidebarTitle":"Kling 4.0","href":"/models/video/kling-4-0"}]},{"title":"LTX-2 19B API: Lightricks Text \u0026 Image to Video","sidebarTitle":"LTX-2 19B","href":"/models/video/ltx-2-19b"},{"title":"Runway Gen4 Video Turbo API: Image-to-Video","sidebarTitle":"Runway Gen4 Video Turbo","href":"/models/video/runway-gen4-video-turbo"},{"group":"Seedance","expanded":false,"pages":[{"title":"Seedance 1.5 Pro API: ByteDance Video Generation","sidebarTitle":"Seedance 1.5 Pro","href":"/models/video/seedance-1-5-pro"},{"title":"Seedance 2.0 API: Multimodal Video Generation","sidebarTitle":"Seedance 2.0","href":"/models/video/seedance-2-0"},{"title":"Seedance 2.0 Fast API: Quick Multimodal Video","sidebarTitle":"Seedance 2.0 Fast","href":"/models/video/seedance-2-0-fast"},{"title":"Seedance 2.0 Mini API: Lightweight Video Generation","sidebarTitle":"Seedance 2.0 Mini","href":"/models/video/seedance-2-0-mini"},{"title":"Seedance 2.5 API: 4K Video Generation and Drafts","sidebarTitle":"Seedance 2.5","href":"/models/video/seedance-2-5"},{"title":"Seedance 2.5 Flash API for 480p and 720p Video","sidebarTitle":"Seedance 2.5 Flash","href":"/models/video/seedance-2-5-flash"}]},{"group":"Sora","expanded":false,"pages":[{"title":"Sora 2 API: OpenAI Text-to-Video \u0026 Image-to-Video","sidebarTitle":"Sora 2","href":"/models/video/sora-2"},{"title":"Sora 2 Pro API: OpenAI Premium Video Generation","sidebarTitle":"Sora 2 Pro","href":"/models/video/sora-2-pro"}]},{"title":"Veo 3.1 API: Google Text-to-Video \u0026 Frame Control","sidebarTitle":"Veo 3.1","href":"/models/video/veo-3-1"},{"group":"Video Utilities","expanded":false,"pages":[{"title":"Video Upscaler API: Single-Video Resolution Boost","sidebarTitle":"Video Upscaler","href":"/models/video/video-upscaler"},{"title":"Video Watermark Remover API: Single-Video Cleanup","sidebarTitle":"Video Watermark Remover","href":"/models/video/video-watermark-remover"}]},{"title":"Vidu Q3 API: Standard \u0026 Turbo Video Generation","sidebarTitle":"Vidu Q3","href":"/models/video/vidu-q3"},{"group":"Wan Animate","expanded":false,"pages":[{"title":"Wan 2.2 Animate API: Character Animation from Image","sidebarTitle":"Wan 2.2 Animate","href":"/models/video/wan-2-2-animate"},{"title":"Wan Animate LoRA API: Character Motion Transfer","sidebarTitle":"Wan Animate LoRA","href":"/models/video/wan-animate-lora"}]},{"group":"Wan Video","expanded":false,"pages":[{"title":"Wan 2.5 Video API: Text \u0026 Image to Video","sidebarTitle":"Wan 2.5 Video","description":"Alibaba-style video generation API for text-to-video and image-to-video workflows","href":"/models/video/wan-2-5-video"},{"title":"Wan 2.6 Video API: Text, Image \u0026 Reference to Video","sidebarTitle":"Wan 2.6 Video","href":"/models/video/wan-2-6-video"},{"title":"Wan 2.7 Video API: Generation \u0026 Editing","sidebarTitle":"Wan 2.7 Video","description":"Alibaba video generation and editing API for text, image, reference, and video-edit workflows","href":"/models/video/wan-2-7-video"},{"title":"Wan 3.0 Video API: Latest-Gen Text \u0026 Image to Video","sidebarTitle":"Wan 3.0 Video","href":"/models/video/wan-3-0-video"},{"title":"Wan 3.0 Video LoRA API: 480p, 720p \u0026 1080p Video","sidebarTitle":"Wan 3.0 Video LoRA","href":"/models/video/wan-3-0-video-lora"},{"title":"Wan 3.0 Video Pro LoRA API: 1080p, 2K \u0026 4K Video","sidebarTitle":"Wan 3.0 Video Pro LoRA","href":"/models/video/wan-3-0-video-pro-lora"},{"title":"Wan 2.7 Video LoRA API: Optional Sound Generation","sidebarTitle":"Wan 2.7 Video LoRA","href":"/models/video/wan-2-7-video-lora"},{"title":"Wan 2.2 Video LoRA API: First \u0026 Last Frame Control","sidebarTitle":"Wan 2.2 Video LoRA","href":"/models/video/wan-2-2-video-lora"}]}]},{"group":"Audio Models","root":{"title":"Audio Generation APIs: Music, TTS \u0026 Voice Cloning","sidebarTitle":"Audio Models","href":"/models/audio/index"},"expanded":false,"pages":[{"group":"CosyVoice","expanded":false,"pages":[{"title":"CosyVoice 3 Flash API: TTS with Built-in Voices","sidebarTitle":"CosyVoice 3 Flash","href":"/models/audio/cosyvoice-3-flash"},{"title":"CosyVoice 3 Plus API: TTS \u0026 Voice Cloning","sidebarTitle":"CosyVoice 3 Plus","href":"/models/audio/cosyvoice-3-plus"},{"title":"CosyVoice 3.5 Flash API: Custom-Voice TTS","sidebarTitle":"CosyVoice 3.5 Flash","href":"/models/audio/cosyvoice-3-5-flash"},{"title":"CosyVoice 3.5 Plus API: Cloned-Voice TTS","sidebarTitle":"CosyVoice 3.5 Plus","href":"/models/audio/cosyvoice-3-5-plus"}]},{"group":"MiniMax Speech 2.8","expanded":false,"pages":[{"title":"MiniMax Speech 2.8 API: TTS with Preset Voices","sidebarTitle":"API Guide","href":"/models/audio/minimax-speech-2-8"},{"title":"MiniMax Speech 2.8 Preset Voice Reference","sidebarTitle":"Voice Reference","href":"/guides/minimax-speech-2-8-voices"}]},{"title":"MiniMax Voice API: Custom Voice Creation","sidebarTitle":"MiniMax Voice","href":"/models/audio/minimax-voice"},{"title":"Suno API: AI Music Generation with Vocals \u0026 Lyrics","sidebarTitle":"Suno","href":"/models/audio/suno"}]},{"group":"Chat Models","root":{"title":"Chat API: Claude, OpenAI \u0026 Gemini Compatible Gateway","sidebarTitle":"Chat API","href":"/llm/index"},"expanded":false,"pages":[{"title":"Claude API Gateway: Models, Pricing \u0026 Code","sidebarTitle":"Claude","href":"/models/text/claude"},{"title":"Gemini API Gateway: Models, Pricing \u0026 Code","sidebarTitle":"Gemini","href":"/models/text/gemini"},{"title":"OpenAI Responses API Gateway: Models, Pricing \u0026 Code","sidebarTitle":"GPT","href":"/models/text/openai-responses"},{"group":"Chat API Guides","expanded":false,"pages":[{"title":"LLM Gateway Authentication with Your APIXO API Key","sidebarTitle":"Authentication","href":"/llm/authentication"},{"title":"Supported LLM Models: Claude, GPT \u0026 Gemini Model IDs","sidebarTitle":"All Supported Models","href":"/llm/supported-models"},{"title":"LLM Streaming: SSE for Claude, OpenAI \u0026 Gemini APIs","sidebarTitle":"Streaming","href":"/llm/streaming"},{"title":"LLM Errors \u0026 Retry: Safe Retry Strategy for the Gateway","sidebarTitle":"Errors and Retry","href":"/llm/errors-retry"}]}]},{"group":"More APIs","expanded":false,"pages":[{"group":"Image Utilities","expanded":false,"pages":[{"title":"Face Swap LoRA API: One-Image Face Replacement","sidebarTitle":"Face Swap LoRA","href":"/models/image/face-swap-lora"},{"title":"Head Swap LoRA API: One-Image Head Replacement","sidebarTitle":"Head Swap LoRA","href":"/models/image/head-swap-lora"},{"title":"Image Upscaler API: 2K, 4K \u0026 8K Enhancement","sidebarTitle":"Image Upscaler","href":"/models/image/image-upscaler"},{"title":"Image Watermark Remover API: Single-Image Cleanup","sidebarTitle":"Image Watermark Remover","href":"/models/image/image-watermark-remover"}]},{"title":"Prompt Optimizer API: Image and Video Prompt Optimization","sidebarTitle":"Prompt Optimizer","href":"/models/text/prompt-optimizer"},{"title":"Content Moderation API: Review Text, Images, and Video","sidebarTitle":"Content Moderation","href":"/models/text/content-moderation"},{"title":"Prompt Optimizer AI Guide: Preserve Intent and Exact Text","sidebarTitle":"AI Calling Guide","href":"/guides/prompt-optimizer-ai"},{"title":"Schema-driven MCP attachments and results","href":"/guides/mcp-model-contracts"}]}]},{"group":"API Reference","root":{"title":"Generation API Reference: Endpoints, Params \u0026 Errors","sidebarTitle":"Overview","href":"/api-reference/index"},"expanded":true,"pages":[{"group":"Single Tasks","expanded":true,"pages":[{"title":"Generate Task API: Submit Image, Video \u0026 Audio Jobs","sidebarTitle":"Generate Task","href":"/api-reference/generate-task"},{"title":"Status Task API: Poll Generation Results by Task ID","sidebarTitle":"Status Task","href":"/api-reference/status-task"},{"title":"Webhooks: Receive Task Completion Callbacks","sidebarTitle":"Webhooks","href":"/api-reference/webhooks"}]},{"group":"Batch Tasks","expanded":true,"pages":[{"title":"Batch Generate API: Submit Multiple Asynchronous Tasks","sidebarTitle":"Batch Generate","href":"/api-reference/batch-generate"},{"title":"Batch Status API: Query Multiple Task Results","sidebarTitle":"Batch Status","href":"/api-reference/batch-status"},{"title":"Batch Webhooks: Receive Signed Task Completion Events","sidebarTitle":"Batch Webhooks","href":"/api-reference/batch-webhooks"}]},{"title":"Unified Parameters: One Spec for Every Model Family","sidebarTitle":"Parameters","href":"/api-reference/parameters"},{"title":"System APIs: Account, Balance \u0026 Status Endpoints","sidebarTitle":"System APIs","href":"/api-reference/system"},{"title":"API Error Codes: HTTP Status \u0026 Failure Code Reference","sidebarTitle":"Errors","href":"/api-reference/errors"},{"group":"Production Guides","expanded":false,"pages":[{"title":"Polling vs Webhooks: Choosing a Result Delivery Mode","sidebarTitle":"Polling vs Webhooks","href":"/guides/polling-vs-webhooks"},{"title":"Production Best Practices for the APIXO API","sidebarTitle":"Best Practices","href":"/guides/best-practices"}]}]},{"group":"Integrations","root":{"title":"Integrations: MCP, Official SDKs \u0026 Compatible Apps","sidebarTitle":"Integrations","href":"/integrations/index"},"expanded":true,"pages":[{"title":"Official SDKs: Claude, OpenAI \u0026 Gemini via APIXO","sidebarTitle":"Compatible SDKs","href":"/llm/official-sdks"},{"group":"Apps \u0026 Clients","expanded":false,"pages":[{"title":"Third-Party Apps: Connect Compatible Clients to APIXO","sidebarTitle":"Configure a Compatible App","href":"/llm/third-party-apps"}]}]},{"group":"Reference","hidden":true,"searchable":true,"pages":[{"title":"Other Models: Utility APIs Beyond Core Categories","sidebarTitle":"Other Models","href":"/models/text/index"}]},{"group":"Changelog","root":{"title":"Changelog: New Models, API Changes \u0026 Pricing Updates","sidebarTitle":"Changelog","href":"/changelog"},"pages":[]}]},"basePath":"","title":"Wan 2.6 Video API: Text, Image \u0026 Reference to Video - APIXO","buildId":"dpl_H5KQTnCewfWWvJxA7c3bCm7MFbb6","deploymentId":"dpl_H5KQTnCewfWWvJxA7c3bCm7MFbb6","dynamics":[],"chunks":[]}