Wan 3.0 uses All-in-One models. Based on media types in input.media and the intent in your prompt, one model can handle text-to-video, first-frame or first-last-frame image-to-video, multimodal reference generation, video editing, and video extension. Unlike Wan 2.7 Video Generation, you do not select separate text, image, or editing models for these capabilities.This endpoint uses the Wan video task protocol. The X-DashScope-Async header is not required because async task semantics are built into the gateway.
The request body has three parts: model, input, and parameters.
Field
Required
Description
model
Yes
Platform model identifier: wan3.0-video or wan3.0-video-prime
input.prompt
At least one of input.prompt and input.media
Text prompt, up to 20,000 characters. In multimodal reference mode, use labels such as “image 1”, “video 1”, and “audio 1” to refer to assets in their array order
input.media
At least one of input.prompt and input.media
Media asset array. Every item contains type and url
parameters
No
Output resolution, ratio, duration, audio, random seed, prompt expansion, and watermark settings
media[].url accepts a publicly accessible HTTP/HTTPS URL, an OSS temporary URL, or a base64 data URI. For a base64 data URI, the gateway stores the asset before sending it upstream.
Wan 3.0 can generate video with native synchronized audio, up to 30 seconds. Provide assets through input.media:
type
Use
Limits and notes
first_frame
First-frame image-to-video
One image maximum; can be paired with last_frame for first-last-frame mode
last_frame
Last-frame image-to-video
One image maximum; may only be used with first_frame
reference_image
Reference images
Up to 10 images; each image must be 20 MB or smaller
reference_video
Reference, editing, or extension video
Up to 5 videos; 15 seconds total, 100 MB per video, and at least 16 fps
reference_audio
Reference audio
Up to 5 audio files; 15 seconds total and 15 MB per file
file
Document reference
One file maximum. Supports docx, doc, xlsx, xls, pptx, ppt, pdf, txt, and md
link
Public web-page reference
One public, no-login web page maximum
first_frame / last_frame are mutually exclusive with reference_image / reference_video / reference_audio / file / link. Choose either file or link; either can be combined with reference images, video, and audio. The three reference_* types can be freely combined.
First-frame and first-last-frame mode only accept first_frame and an optional last_frame; do not add audio or other media types. To drive imagery with audio, use multimodal reference mode, for example reference_image plus reference_audio.
Aspect ratio: 16:9, 4:3, 1:1, 3:4, 9:16, or adaptive. adaptive recommends a ratio from the input media and intent
duration
5
Output length in seconds. Without video input, use an integer from 2 to 30; with video input, input-video length plus output length must not exceed 30 seconds. Use -1 for smart duration
audio
true
Whether to include an audio track. true produces native synchronized audio; false omits the audio track. Both settings have the same price
seed
-1
Random seed. Use -1 or an integer from 0 to 2147483647; omit it or set -1 for an automatically generated seed. The same seed does not guarantee identical output
prompt_extend
true
Whether to expand the prompt. Enabling it often improves short prompts but adds latency. When using file or link, enable it or omit it; do not set it to false
watermark
false
Whether to add a watermark
For video editing, use reference_video and state the target edit, such as a replacement, removal, or modification, in the prompt. For video extension, explicitly state how to continue or extend the video. For either mode, ratio: "adaptive" and duration: -1 are recommended.
In first-last-frame mode, provide only the first and last frames. Do not mix in reference_*, file, or link.
{ "model": "wan3.0-video", "input": { "prompt": "The camera moves steadily through an empty street at dawn and ends at the entrance to a cafe, with cinematic lighting.", "media": [ { "type": "first_frame", "url": "https://example.com/first-frame.jpg" }, { "type": "last_frame", "url": "https://example.com/last-frame.jpg" } ] }, "parameters": { "resolution": "720P", "ratio": "adaptive", "duration": 5, "prompt_extend": true }}
Provide at most one file, and do not combine it with link. This mode must enable or omit prompt_extend.
{ "model": "wan3.0-video", "input": { "prompt": "Create a 10-second premium smart-glasses commercial from the product points in the file, with black, silver gray, and ice blue as the main palette.", "media": [ { "type": "file", "url": "https://example.com/product-brief.pdf" } ] }, "parameters": { "resolution": "720P", "ratio": "16:9", "duration": 10, "prompt_extend": true }}
Reference images, videos, and audio can be combined. Images, videos, and audio are each numbered in their array order.
{ "model": "wan3.0-video", "input": { "prompt": "Have the person in image 1 walk toward the camera in the beach setting from video 1, using the voice and rhythm from audio 1. Keep the result natural and realistic.", "media": [ { "type": "reference_image", "url": "https://example.com/person.jpg" }, { "type": "reference_video", "url": "https://example.com/beach.mp4" }, { "type": "reference_audio", "url": "https://example.com/voice.wav" } ] }, "parameters": { "resolution": "720P", "ratio": "adaptive", "duration": 5, "prompt_extend": true }}
Use reference_video and state the requested edit directly.
{ "model": "wan3.0-video", "input": { "prompt": "Change the sky in the video to a sunset tone while preserving the person's movement and original dialogue.", "media": [ { "type": "reference_video", "url": "https://example.com/input-video.mp4" } ] }, "parameters": { "resolution": "720P", "ratio": "adaptive", "duration": -1, "prompt_extend": true }}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"HaiRoute Doc","description":"HaiRoute API documentation for LLM models and services","colors":{"primary":"#D27387","light":"#E7A0AF","dark":"#D27387"},"logo":{"light":"https://mintcdn.com/hai-token/DFzuPoXOzfYgcv_p/images/logo/light.svg?fit=max\u0026auto=format\u0026n=DFzuPoXOzfYgcv_p\u0026q=85\u0026s=3670802ebfcfac683e0d91aa182cee09","dark":"https://mintcdn.com/hai-token/DFzuPoXOzfYgcv_p/images/logo/dark.svg?fit=max\u0026auto=format\u0026n=DFzuPoXOzfYgcv_p\u0026q=85\u0026s=ea139cf27edec66b2432346ea9f459b8","href":"https://hairoute.ai"},"favicon":"https://mintcdn.com/hai-token/roChSmiiQuAOXxeY/images/logo/favicon.svg?fit=max\u0026auto=format\u0026n=roChSmiiQuAOXxeY\u0026q=85\u0026s=4c89c3d880a270256186776f71530da0","api":{"playground":{"display":"interactive","proxy":true}},"appearance":{"default":"light"},"navbar":{},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/haipay-global","github":"https://github.com/HaipayGroup"}},"search":{"prompt":"Search HaiRoute docs..."},"seo":{"metatags":{"og:site_name":"HaiRoute Documentation","og:image":"https://hairoute.ai/og-default.png","twitter:card":"summary_large_image","twitter:site":"@HaiRoute_official","canonical":"https://docs.hairoute.ai/docs/zh/quickstart/integration-guide"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"zh","navbar":{"links":[{"href":"https://hairoute.ai/zh","label":"首页"},{"href":"https://hairoute.ai/zh/models","label":"模型"},{"href":"https://hairoute.ai/zh/enterprise","label":"企业"},{"href":"/docs/zh/quickstart/integration-guide","label":"文档"}]},"href":"docs/zh/quickstart/integration-guide"},{"language":"en","navbar":{"links":[{"href":"https://hairoute.ai/en","label":"Home"},{"href":"https://hairoute.ai/en/models","label":"Model"},{"href":"https://hairoute.ai/en/enterprise","label":"Enterprise"},{"href":"/docs/en/quickstart/integration-guide","label":"Docs"}]},"href":"docs/en/quickstart/integration-guide"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"hai-token","hasAudioNarration":false,"actualSubdomain":"hai-token","customDomains":["docs.hairoute.ai"],"gitSource":{"type":"github","owner":"haipaygroup","repo":"haitokendocs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ab3b6107bc26a37a1a129f1","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"en","tag":"API documentation","count":17},{"language":"en","tag":"AI model interface","count":17},{"language":"zh","tag":"API文档","count":17},{"language":"zh","tag":"AI模型接口","count":17},{"language":"en","tag":"AI tool integration","count":11},{"language":"zh","tag":"AI工具接入","count":11},{"language":"en","tag":"Video","count":9},{"language":"zh","tag":"视频","count":9},{"language":"en","tag":"Images","count":4},{"language":"zh","tag":"图片","count":4},{"language":"en","tag":"Chat","count":3},{"language":"zh","tag":"聊天","count":3},{"language":"en","tag":"Other","count":2},{"language":"en","tag":"Quick start","count":2},{"language":"zh","tag":"其它","count":2},{"language":"zh","tag":"快速开始","count":2},{"language":"en","tag":"Models","count":1},{"language":"zh","tag":"模型","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"html:not(.dark) #background-color{background-color:#FAF9F5}html:not(.dark) body{color:#1B0B09}html:not(.dark) #page-title{color:#1B0B09}html.dark #background-color{background-color:#17100E}html:not(.dark) [class*=\"from-background-light\"][class*=\"top-0\"]{background-image:linear-gradient(to bottom, #FAF9F5 0%, rgba(250, 249, 245, 0) 100%)!important}html.dark [class*=\"from-background-dark\"][class*=\"top-0\"]{background-image:linear-gradient(to bottom, #17100E 0%, rgba(23, 16, 14, 0) 100%)!important}"}],"page":{"pagePath":"docs/en/api-reference/video/wan3","slug":"/docs/en/api-reference/video/wan3","pageMetadata":{"title":"Wan 3.0 Video Generation","description":"Generate, edit, and extend videos with native synchronized audio using Wan 3.0 All-in-One models","openapi":"en/api-reference/video/wan3/openapi.json POST /v1/alibaba/video/generations","href":"/docs/en/api-reference/video/wan3"},"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: \"Generate, edit, and extend videos with native synchronized audio using Wan 3.0 All-in-One models\"\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`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Wan 3.0 uses All-in-One models. Based on media types in `,_jsx(_components.code,{children:`input.media`}),` and the intent in your prompt, one model can handle text-to-video, first-frame or first-last-frame image-to-video, multimodal reference generation, video editing, and video extension. Unlike `,_jsx(_components.a,{href:`/docs/en/api-reference/video/wan`,children:`Wan 2.7 Video Generation`}),`, you do not select separate text, image, or editing models for these capabilities.`]}),`\n`,_jsxs(_components.p,{children:[`This endpoint uses the Wan video task protocol. The `,_jsx(_components.code,{children:`X-DashScope-Async`}),` header is not required because async task semantics are built into the gateway.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-structure`,children:`Request structure`}),`\n`,_jsxs(_components.p,{children:[`The request body has three parts: `,_jsx(_components.code,{children:`model`}),`, `,_jsx(_components.code,{children:`input`}),`, and `,_jsx(_components.code,{children:`parameters`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`model`})}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[`Platform model identifier: `,_jsx(_components.code,{children:`wan3.0-video`}),` or `,_jsx(_components.code,{children:`wan3.0-video-prime`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`input.prompt`})}),_jsxs(_components.td,{children:[`At least one of `,_jsx(_components.code,{children:`input.prompt`}),` and `,_jsx(_components.code,{children:`input.media`})]}),_jsx(_components.td,{children:`Text prompt, up to 20,000 characters. In multimodal reference mode, use labels such as “image 1”, “video 1”, and “audio 1” to refer to assets in their array order`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`input.media`})}),_jsxs(_components.td,{children:[`At least one of `,_jsx(_components.code,{children:`input.prompt`}),` and `,_jsx(_components.code,{children:`input.media`})]}),_jsxs(_components.td,{children:[`Media asset array. Every item contains `,_jsx(_components.code,{children:`type`}),` and `,_jsx(_components.code,{children:`url`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`parameters`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Output resolution, ratio, duration, audio, random seed, prompt expansion, and watermark settings`})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`media[].url`}),` accepts a publicly accessible HTTP/HTTPS URL, an OSS temporary URL, or a base64 data URI. For a base64 data URI, the gateway stores the asset before sending it upstream.`]}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(_components.p,{children:[`Include the `,_jsx(_components.code,{children:`Authorization`}),` header in the format `,_jsx(_components.code,{children:`Bearer YOUR_API_KEY`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`supported-models`,children:`Supported models`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Model identifier`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`wan3.0-video`})}),_jsx(_components.td,{children:`Wan 3.0 general-purpose All-in-One video model`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`wan3.0-video-prime`})}),_jsx(_components.td,{children:`Wan 3.0 Prime All-in-One video model`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`capabilities-and-media-types`,children:`Capabilities and media types`}),`\n`,_jsxs(_components.p,{children:[`Wan 3.0 can generate video with native synchronized audio, up to 30 seconds. Provide assets through `,_jsx(_components.code,{children:`input.media`}),`:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.th,{children:`Use`}),_jsx(_components.th,{children:`Limits and notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`first_frame`})}),_jsx(_components.td,{children:`First-frame image-to-video`}),_jsxs(_components.td,{children:[`One image maximum; can be paired with `,_jsx(_components.code,{children:`last_frame`}),` for first-last-frame mode`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`last_frame`})}),_jsx(_components.td,{children:`Last-frame image-to-video`}),_jsxs(_components.td,{children:[`One image maximum; may only be used with `,_jsx(_components.code,{children:`first_frame`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reference_image`})}),_jsx(_components.td,{children:`Reference images`}),_jsx(_components.td,{children:`Up to 10 images; each image must be 20 MB or smaller`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reference_video`})}),_jsx(_components.td,{children:`Reference, editing, or extension video`}),_jsx(_components.td,{children:`Up to 5 videos; 15 seconds total, 100 MB per video, and at least 16 fps`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reference_audio`})}),_jsx(_components.td,{children:`Reference audio`}),_jsx(_components.td,{children:`Up to 5 audio files; 15 seconds total and 15 MB per file`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`file`})}),_jsx(_components.td,{children:`Document reference`}),_jsxs(_components.td,{children:[`One file maximum. Supports `,_jsx(_components.code,{children:`docx`}),`, `,_jsx(_components.code,{children:`doc`}),`, `,_jsx(_components.code,{children:`xlsx`}),`, `,_jsx(_components.code,{children:`xls`}),`, `,_jsx(_components.code,{children:`pptx`}),`, `,_jsx(_components.code,{children:`ppt`}),`, `,_jsx(_components.code,{children:`pdf`}),`, `,_jsx(_components.code,{children:`txt`}),`, and `,_jsx(_components.code,{children:`md`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`link`})}),_jsx(_components.td,{children:`Public web-page reference`}),_jsx(_components.td,{children:`One public, no-login web page maximum`})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`first_frame`}),` / `,_jsx(_components.code,{children:`last_frame`}),` are mutually exclusive with `,_jsx(_components.code,{children:`reference_image`}),` / `,_jsx(_components.code,{children:`reference_video`}),` / `,_jsx(_components.code,{children:`reference_audio`}),` / `,_jsx(_components.code,{children:`file`}),` / `,_jsx(_components.code,{children:`link`}),`. Choose either `,_jsx(_components.code,{children:`file`}),` or `,_jsx(_components.code,{children:`link`}),`; either can be combined with reference images, video, and audio. The three `,_jsx(_components.code,{children:`reference_*`}),` types can be freely combined.`]})}),`\n`,_jsxs(_components.p,{children:[`First-frame and first-last-frame mode only accept `,_jsx(_components.code,{children:`first_frame`}),` and an optional `,_jsx(_components.code,{children:`last_frame`}),`; do not add audio or other media types. To drive imagery with audio, use multimodal reference mode, for example `,_jsx(_components.code,{children:`reference_image`}),` plus `,_jsx(_components.code,{children:`reference_audio`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`key-parameters`,children:`Key parameters`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`resolution`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1080P`})}),_jsxs(_components.td,{children:[`Output resolution: `,_jsx(_components.code,{children:`480P`}),`, `,_jsx(_components.code,{children:`720P`}),`, or `,_jsx(_components.code,{children:`1080P`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ratio`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`adaptive`})}),_jsxs(_components.td,{children:[`Aspect ratio: `,_jsx(_components.code,{children:`16:9`}),`, `,_jsx(_components.code,{children:`4:3`}),`, `,_jsx(_components.code,{children:`1:1`}),`, `,_jsx(_components.code,{children:`3:4`}),`, `,_jsx(_components.code,{children:`9:16`}),`, or `,_jsx(_components.code,{children:`adaptive`}),`. `,_jsx(_components.code,{children:`adaptive`}),` recommends a ratio from the input media and intent`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`duration`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`5`})}),_jsxs(_components.td,{children:[`Output length in seconds. Without video input, use an integer from `,_jsx(_components.code,{children:`2`}),` to `,_jsx(_components.code,{children:`30`}),`; with video input, input-video length plus output length must not exceed 30 seconds. Use `,_jsx(_components.code,{children:`-1`}),` for smart duration`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`audio`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`true`})}),_jsxs(_components.td,{children:[`Whether to include an audio track. `,_jsx(_components.code,{children:`true`}),` produces native synchronized audio; `,_jsx(_components.code,{children:`false`}),` omits the audio track. Both settings have the same price`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`seed`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`-1`})}),_jsxs(_components.td,{children:[`Random seed. Use `,_jsx(_components.code,{children:`-1`}),` or an integer from `,_jsx(_components.code,{children:`0`}),` to `,_jsx(_components.code,{children:`2147483647`}),`; omit it or set `,_jsx(_components.code,{children:`-1`}),` for an automatically generated seed. The same seed does not guarantee identical output`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`prompt_extend`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`true`})}),_jsxs(_components.td,{children:[`Whether to expand the prompt. Enabling it often improves short prompts but adds latency. When using `,_jsx(_components.code,{children:`file`}),` or `,_jsx(_components.code,{children:`link`}),`, enable it or omit it; do not set it to `,_jsx(_components.code,{children:`false`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`watermark`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`Whether to add a watermark`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`For video editing, use `,_jsx(_components.code,{children:`reference_video`}),` and state the target edit, such as a replacement, removal, or modification, in the prompt. For video extension, explicitly state how to continue or extend the video. For either mode, `,_jsx(_components.code,{children:`ratio: \"adaptive\"`}),` and `,_jsx(_components.code,{children:`duration: -1`}),` are recommended.`]}),`\n`,_jsx(Heading,{level:`2`,id:`quick-request`,children:`Quick request`}),`\n`,_jsxs(_components.p,{children:[`This text-to-video request returns a task ID in `,_jsx(_components.code,{children:`output.task_id`}),`, which you then use to query the result.`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Python`,numberOfLines:`22`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`22`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.hairoute.ai/v1/alibaba/video/generations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_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:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer YOUR_API_KEY\"`}),_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:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_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:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wan3.0-video\"`}),_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:` \"input\"`}),_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:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A golden retriever runs along the beach at sunset; the camera follows slowly; ocean waves are clearly audible.\"`})]}),`\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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"parameters\"`}),_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:` \"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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`}),_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:` \"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:`#0A3069`,\"--shiki-dark\":`#CE9178`},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`,_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`,_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:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.json())`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`21`,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:`21`,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:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://api.hairoute.ai/v1/alibaba/video/generations'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_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:` 'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Bearer YOUR_API_KEY'`}),_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:` 'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`})]}),`\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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_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:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` model:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'wan3.0-video'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` prompt:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'A golden retriever runs along the beach at sunset; the camera follows slowly; ocean waves are clearly audible.'`})]}),`\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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` parameters:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` resolution:`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ratio:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '16:9'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` duration:`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` prompt_extend:`}),_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`16`,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:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`curl -X POST 'https://api.hairoute.ai/v1/alibaba/video/generations' \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` -H 'Authorization: Bearer YOUR_API_KEY' \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` -H 'Content-Type: application/json' \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` -d '{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"model\": \"wan3.0-video\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"input\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"prompt\": \"A golden retriever runs along the beach at sunset; the camera follows slowly; ocean waves are clearly audible.\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"parameters\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"resolution\": \"720P\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"ratio\": \"16:9\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": 5,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"prompt_extend\": true`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` }'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`scenario-examples`,children:`Scenario examples`}),`\n`,_jsx(Heading,{level:`3`,id:`first-last-frame-image-to-video`,children:`First-last-frame image to video`}),`\n`,_jsxs(_components.p,{children:[`In first-last-frame mode, provide only the first and last frames. Do not mix in `,_jsx(_components.code,{children:`reference_*`}),`, `,_jsx(_components.code,{children:`file`}),`, or `,_jsx(_components.code,{children:`link`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`22`,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:`22`,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:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wan3.0-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:` \"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:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The camera moves steadily through an empty street at dawn and ends at the entrance to a cafe, with cinematic lighting.\"`}),_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:` \"media\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"first_frame\"`}),_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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/first-frame.jpg\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"last_frame\"`}),_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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/last-frame.jpg\"`})]}),`\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`,_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:` \"parameters\"`}),_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:` \"ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"adaptive\"`}),_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:` \"prompt_extend\"`}),_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:`file-reference-generation`,children:`File-reference generation`}),`\n`,_jsxs(_components.p,{children:[`Provide at most one `,_jsx(_components.code,{children:`file`}),`, and do not combine it with `,_jsx(_components.code,{children:`link`}),`. This mode must enable or omit `,_jsx(_components.code,{children:`prompt_extend`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,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:`18`,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:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wan3.0-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:` \"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:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Create a 10-second premium smart-glasses commercial from the product points in the file, with black, silver gray, and ice blue as the main palette.\"`}),_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:` \"media\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"file\"`}),_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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/product-brief.pdf\"`})]}),`\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`,_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:` \"parameters\"`}),_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:` \"ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`}),_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:`10`}),_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`})]}),`\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:`web-page-and-reference-image-generation`,children:`Web-page and reference-image generation`}),`\n`,_jsxs(_components.p,{children:[`Use a publicly accessible, no-login page for `,_jsx(_components.code,{children:`link`}),`. It can be combined with reference media such as `,_jsx(_components.code,{children:`reference_image`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`22`,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:`22`,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:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wan3.0-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:` \"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:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Use the product information on the web page and the appearance in image 1 to create a concise product-launch 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:` \"media\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"link\"`}),_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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/product-page\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reference_image\"`}),_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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/product-reference.jpg\"`})]}),`\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`,_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:` \"parameters\"`}),_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:` \"ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`}),_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`})]}),`\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:`multimodal-reference-generation`,children:`Multimodal reference generation`}),`\n`,_jsx(_components.p,{children:`Reference images, videos, and audio can be combined. Images, videos, and audio are each numbered in their array order.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`26`,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:`26`,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:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wan3.0-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:` \"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:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Have the person in image 1 walk toward the camera in the beach setting from video 1, using the voice and rhythm from audio 1. Keep the result natural and realistic.\"`}),_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:` \"media\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reference_image\"`}),_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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/person.jpg\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reference_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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/beach.mp4\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reference_audio\"`}),_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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/voice.wav\"`})]}),`\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`,_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:` \"parameters\"`}),_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:` \"ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"adaptive\"`}),_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:` \"prompt_extend\"`}),_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:`video-editing`,children:`Video editing`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`reference_video`}),` and state the requested edit directly.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,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:`18`,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:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wan3.0-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:` \"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:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Change the sky in the video to a sunset tone while preserving the person's movement and original dialogue.\"`}),_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:` \"media\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reference_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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/input-video.mp4\"`})]}),`\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`,_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:` \"parameters\"`}),_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:` \"ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"adaptive\"`}),_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:`-1`}),_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`})]}),`\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:`video-extension`,children:`Video extension`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`reference_video`}),` and explicitly describe the continuation direction or next scene.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,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:`18`,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:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wan3.0-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:` \"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:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Extend the video forward. Keep panning right to reveal a broader mountain landscape and add natural ambient sound.\"`}),_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:` \"media\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reference_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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/input-video.mp4\"`})]}),`\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`,_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:` \"parameters\"`}),_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:` \"ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"adaptive\"`}),_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:`-1`}),_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`})]}),`\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:`A successful creation returns the task ID:`}),`\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:` \"request_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8f3d2c1a-9b7e-4f5a-8c2d-1e6f0a9b3c5d\"`}),_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:` \"output\"`}),_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:` \"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cgt-20260730120000-a1b2c3\"`}),_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:` \"task_status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PENDING\"`})]}),`\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:`2`,id:`next-steps`,children:`Next steps`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`See `,_jsx(_components.a,{href:`/docs/en/api-reference/video/wan-status`,children:`Query Wan video task`}),` to retrieve generation results`]}),`\n`,_jsxs(_components.li,{children:[`Compare `,_jsx(_components.a,{href:`/docs/en/api-reference/video/wan`,children:`Wan 2.7 Video Generation`}),` for version differences`]}),`\n`,_jsxs(_components.li,{children:[`See `,_jsx(_components.a,{href:`/docs/en/api-reference/video/generation`,children:`Video generation`}),` for the unified protocol`]}),`\n`,_jsxs(_components.li,{children:[`See the `,_jsx(_components.a,{href:`/docs/en/api-reference/models/list-models`,children:`model list`}),` for available video models`]}),`\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 3.0 Video Generation","description":"Generate, edit, and extend videos with native synchronized audio using Wan 3.0 All-in-One models","openapi":"en/api-reference/video/wan3/openapi.json POST /v1/alibaba/video/generations","href":"/docs/en/api-reference/video/wan3"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request structure","slug":"request-structure","depth":2,"children":[]},{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Supported models","slug":"supported-models","depth":2,"children":[]},{"title":"Capabilities and media types","slug":"capabilities-and-media-types","depth":2,"children":[]},{"title":"Key parameters","slug":"key-parameters","depth":2,"children":[]},{"title":"Quick request","slug":"quick-request","depth":2,"children":[]},{"title":"Scenario examples","slug":"scenario-examples","depth":2,"children":[{"title":"First-last-frame image to video","slug":"first-last-frame-image-to-video","depth":3,"children":[]},{"title":"File-reference generation","slug":"file-reference-generation","depth":3,"children":[]},{"title":"Web-page and reference-image generation","slug":"web-page-and-reference-image-generation","depth":3,"children":[]},{"title":"Multimodal reference generation","slug":"multimodal-reference-generation","depth":3,"children":[]},{"title":"Video editing","slug":"video-editing","depth":3,"children":[]},{"title":"Video extension","slug":"video-extension","depth":3,"children":[]}]},{"title":"Next steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/hai-token/d18a3efa7e831bd2/custom.js"],"openApiReferenceData":{"operation":{"summary":"Create Wan 3.0 video task","description":"Generate, edit, and extend videos with native synchronized audio using Wan 3.0 All-in-One models","parameters":["fcc0763b-6f4f-44d7-a805-c42dced181bc","08fcdb21-692b-4036-a53f-2b626ac921ab"],"requestBody":"c75e1d56-cbce-40a5-bc80-55f2a684929b","responses":{"200":"f13a4ceb-7750-4cb0-8f95-7a65652191fa"},"method":"post","type":"path","servers":["97097d2a-830d-4285-9a3f-8c090ca11f79"],"security":[],"path":"/v1/alibaba/video/generations","baseUrlOptions":["https://api.hairoute.ai"],"title":"Create Wan 3.0 video task","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"fcc0763b-6f4f-44d7-a805-c42dced181bc":{"name":"Authorization","in":"header","description":"API key in the format Bearer YOUR_API_KEY","required":true,"schema":{"type":"string","example":"Bearer YOUR_API_KEY","isRequired":true,"description":"API key in the format Bearer YOUR_API_KEY","uniqueKey":"","typeLabel":"string"}},"08fcdb21-692b-4036-a53f-2b626ac921ab":{"name":"Content-Type","in":"header","description":"Request body type","required":true,"schema":{"type":"string","example":"application/json","isRequired":true,"description":"Request body type","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","input"],"properties":{"model":{"type":"string","description":"Wan 3.0 All-in-One model identifier: wan3.0-video or wan3.0-video-prime","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"input":{"oneOf":[{"type":"object","description":"Input content (prompt and media elements)","required":["prompt"],"properties":{"prompt":{"type":"string","maxLength":20000,"description":"Text prompt describing the video to generate, edit, or extend; provide prompt or media at minimum. In multimodal reference mode, use labels such as image 1, video 1, and audio 1 to refer to assets in array order","isRequired":true,"uniqueKey":"input.oneOf.0.prompt","typeLabel":"string"},"media":{"type":"array","description":"Media element list (first frame / last frame / reference image / reference video / reference audio / file / link)","items":{"type":"object","required":["type","url"],"properties":{"type":{"type":"string","description":"Media type. first_frame / last_frame / reference_image / reference_video (reference, editing, or extension) / reference_audio / file (mutually exclusive with link) / link (mutually exclusive with file)","isRequired":true,"uniqueKey":"input.oneOf.0.media.items.[INDEX].type","typeLabel":"string"},"url":{"type":"string","format":"uri","description":"Media URL or base64 data URI (base64 is uploaded to OBS by the gateway and replaced with a URL)","isRequired":true,"uniqueKey":"input.oneOf.0.media.items.[INDEX].url","typeLabel":"string\u003curi>"}},"uniqueKey":"input.oneOf.0.media.items.[INDEX]","typeLabel":"object"},"uniqueKey":"input.oneOf.0.media","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"input.oneOf.0","typeLabel":"object"},{"type":"object","description":"Input content (prompt and media elements)","required":["media"],"properties":{"media":{"type":"array","description":"Media element list (first frame / last frame / reference image / reference video / reference audio / file / link)","items":{"type":"object","required":["type","url"],"properties":{"type":{"type":"string","description":"Media type. first_frame / last_frame / reference_image / reference_video (reference, editing, or extension) / reference_audio / file (mutually exclusive with link) / link (mutually exclusive with file)","isRequired":true,"uniqueKey":"input.oneOf.1.media.items.[INDEX].type","typeLabel":"string"},"url":{"type":"string","format":"uri","description":"Media URL or base64 data URI (base64 is uploaded to OBS by the gateway and replaced with a URL)","isRequired":true,"uniqueKey":"input.oneOf.1.media.items.[INDEX].url","typeLabel":"string\u003curi>"}},"uniqueKey":"input.oneOf.1.media.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"input.oneOf.1.media","typeLabel":"object[]"},"prompt":{"type":"string","maxLength":20000,"description":"Text prompt describing the video to generate, edit, or extend; provide prompt or media at minimum. In multimodal reference mode, use labels such as image 1, video 1, and audio 1 to refer to assets in array order","uniqueKey":"input.oneOf.1.prompt","typeLabel":"string"}},"isRequired":true,"uniqueKey":"input.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"input","typeLabel":"object"},"parameters":{"type":"object","properties":{"resolution":{"type":"string","enum":["480P","720P","1080P"],"default":"1080P","description":"Output resolution","uniqueKey":"parameters.resolution","typeLabel":"enum\u003cstring>"},"ratio":{"type":"string","enum":["16:9","4:3","1:1","3:4","9:16","adaptive"],"default":"adaptive","description":"Output aspect ratio. Use adaptive when providing input media","uniqueKey":"parameters.ratio","typeLabel":"enum\u003cstring>"},"duration":{"oneOf":[{"type":"integer","description":"Output duration in seconds. Without video input, use 2 to 30; with video input, total input-video plus output duration cannot exceed 30. Use -1 for smart duration","default":5,"enum":[-1],"uniqueKey":"parameters.duration.oneOf.0","typeLabel":"enum\u003cinteger>"},{"type":"integer","description":"Output duration in seconds. Without video input, use 2 to 30; with video input, total input-video plus output duration cannot exceed 30. Use -1 for smart duration","default":5,"maximum":30,"minimum":2,"uniqueKey":"parameters.duration.oneOf.1","typeLabel":"integer"}],"uniqueKey":"parameters.duration","typeLabel":"enum\u003cinteger> | integer"},"prompt_extend":{"type":"boolean","default":true,"description":"Whether to automatically expand the prompt. It can improve short prompts but adds latency. Do not set it to false when using file or link","uniqueKey":"parameters.prompt_extend","typeLabel":"boolean"},"audio":{"type":"boolean","default":true,"description":"Whether to output native synchronized audio. Enabled by default; set to false to disable (toggling audio does not change the price)","uniqueKey":"parameters.audio","typeLabel":"boolean"},"watermark":{"type":"boolean","default":false,"description":"Whether to add a watermark","uniqueKey":"parameters.watermark","typeLabel":"boolean"},"seed":{"type":"integer","format":"int64","minimum":-1,"maximum":2147483647,"default":-1,"description":"Random seed. Use -1 or 0 to 2147483647; omit it or use -1 for an automatically generated seed. The same seed does not guarantee identical output","uniqueKey":"parameters.seed","typeLabel":"integer\u003cint64>"}},"description":"Generation parameters","uniqueKey":"parameters","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"model":"\u003cstring>","input":{"prompt":"\u003cstring>","media":[{"type":"\u003cstring>","url":"\u003cstring>"}]},"parameters":{"resolution":"1080P","ratio":"adaptive","duration":5,"prompt_extend":true,"audio":true,"watermark":false,"seed":-1}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"f13a4ceb-7750-4cb0-8f95-7a65652191fa":{"description":"Task created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","description":"Gateway request ID","uniqueKey":"request_id","typeLabel":"string"},"output":{"type":"object","properties":{"task_id":{"type":"string","description":"Task ID for querying task status","uniqueKey":"output.task_id","typeLabel":"string"},"task_status":{"type":"string","enum":["PENDING"],"description":"Task status","uniqueKey":"output.task_status","typeLabel":"enum\u003cstring>"}},"uniqueKey":"output","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"request_id":"8f3d2c1a-9b7e-4f5a-8c2d-1e6f0a9b3c5d","output":{"task_id":"cgt-20260730120000-a1b2c3","task_status":"PENDING"}},"examples":{"Example":{"title":"Example","value":{"request_id":"8f3d2c1a-9b7e-4f5a-8c2d-1e6f0a9b3c5d","output":{"task_id":"cgt-20260730120000-a1b2c3","task_status":"PENDING"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{},"servers":{"97097d2a-830d-4285-9a3f-8c090ca11f79":{"url":"https://api.hairoute.ai"}}},"originalFileLocation":"docs/en/api-reference/video/wan3/openapi.json"},"subdomain":"hai-token","siteName":"HaiRoute Doc","title":"Wan 3.0 Video Generation - HaiRoute Doc","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"zh":{"href":"/docs/zh/api-reference/video/wan3","matchLevel":1},"en":{"href":"/docs/en/api-reference/video/wan3","matchLevel":0}}},"lastModified":"2026-09-10T12:00:04.105Z","originalFileLocation":"docs/en/api-reference/video/wan3.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Generate, edit, and extend videos with native synchronized audio using Wan 3.0 All-in-One models\">\u003cmeta data-mint-head name=\"application-name\" content=\"HaiRoute Doc\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/hai-token/ojcWBNnkbICDtPOo/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/hai-token/ojcWBNnkbICDtPOo/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/hai-token/ojcWBNnkbICDtPOo/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/hai-token/ojcWBNnkbICDtPOo/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/hai-token/ojcWBNnkbICDtPOo/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/hai-token/ojcWBNnkbICDtPOo/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/hai-token/ojcWBNnkbICDtPOo/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/hai-token/ojcWBNnkbICDtPOo/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/hai-token/ojcWBNnkbICDtPOo/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Wan 3.0 Video Generation - HaiRoute Doc\">\u003cmeta data-mint-head property=\"og:description\" content=\"Generate, edit, and extend videos with native synchronized audio using Wan 3.0 All-in-One models\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"HaiRoute Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.hairoute.ai/docs/zh/quickstart/integration-guide/docs/en/api-reference/video/wan3\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://hairoute.ai/og-default.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Wan 3.0 Video Generation - HaiRoute Doc\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Generate, edit, and extend videos with native synchronized audio using Wan 3.0 All-in-One models\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://hairoute.ai/og-default.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/hai-token/ojcWBNnkbICDtPOo/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"HaiRoute Doc\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#D27387\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.hairoute.ai/docs/zh/quickstart/integration-guide/docs/en/api-reference/video/wan3\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/en/api-reference/video/wan3.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.hairoute.ai/docs/zh/quickstart/integration-guide/docs/en/api-reference/video/wan3\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.hairoute.ai/docs/zh/quickstart/integration-guide/docs/zh/api-reference/video/wan3\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.hairoute.ai/docs/zh/quickstart/integration-guide/docs/zh/api-reference/video/wan3\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.hairoute.ai/#organization\",\"name\":\"HaiRoute Doc\",\"url\":\"https://docs.hairoute.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/hai-token/DFzuPoXOzfYgcv_p/images/logo/light.svg?fit=max\u0026auto=format\u0026n=DFzuPoXOzfYgcv_p\u0026q=85\u0026s=3670802ebfcfac683e0d91aa182cee09\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.hairoute.ai/docs/zh/quickstart/integration-guide#website\",\"name\":\"HaiRoute Doc\",\"url\":\"https://docs.hairoute.ai/docs/zh/quickstart/integration-guide\",\"publisher\":{\"@id\":\"https://docs.hairoute.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.hairoute.ai/docs/zh/quickstart/integration-guide/docs/en/api-reference/video/wan3#webpage\",\"url\":\"https://docs.hairoute.ai/docs/zh/quickstart/integration-guide/docs/en/api-reference/video/wan3\",\"name\":\"Wan 3.0 Video Generation\",\"description\":\"Generate, edit, and extend videos with native synchronized audio using Wan 3.0 All-in-One models\",\"dateModified\":\"2026-09-10T12:00:04.105Z\",\"isPartOf\":{\"@id\":\"https://docs.hairoute.ai/docs/zh/quickstart/integration-guide#website\"},\"breadcrumb\":{\"@id\":\"https://docs.hairoute.ai/docs/zh/quickstart/integration-guide/docs/en/api-reference/video/wan3#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.hairoute.ai/docs/zh/quickstart/integration-guide/docs/en/api-reference/video/wan3#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API documentation\",\"item\":\"https://docs.hairoute.ai/docs/zh/quickstart/integration-guide/docs/en/api-reference/chat/openai-format\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AI model interface\",\"item\":\"https://docs.hairoute.ai/docs/zh/quickstart/integration-guide/docs/en/api-reference/chat/openai-format\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Video\",\"item\":\"https://docs.hairoute.ai/docs/zh/quickstart/integration-guide/docs/en/api-reference/video/generation\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Wan 3.0 Video Generation\",\"item\":\"https://docs.hairoute.ai/docs/zh/quickstart/integration-guide/docs/en/api-reference/video/wan3\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.hairoute.ai/docs/zh/quickstart/integration-guide/docs/en/api-reference/video/wan3#apireference\",\"headline\":\"Wan 3.0 Video Generation\",\"name\":\"Wan 3.0 Video Generation\",\"description\":\"Generate, edit, and extend videos with native synchronized audio using Wan 3.0 All-in-One models\",\"url\":\"https://docs.hairoute.ai/docs/zh/quickstart/integration-guide/docs/en/api-reference/video/wan3\",\"mainEntityOfPage\":{\"@id\":\"https://docs.hairoute.ai/docs/zh/quickstart/integration-guide/docs/en/api-reference/video/wan3#webpage\"},\"image\":\"https://hairoute.ai/og-default.png\",\"dateModified\":\"2026-09-10T12:00:04.105Z\",\"publisher\":{\"@id\":\"https://docs.hairoute.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.hairoute.ai/docs/zh/quickstart/integration-guide#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"HaiRoute Doc\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"HaiRoute Doc","nav":{"global":null,"languages":[{"language":"zh","navbar":{"links":[{"href":"https://hairoute.ai/zh","label":"首页"},{"href":"https://hairoute.ai/zh/models","label":"模型"},{"href":"https://hairoute.ai/zh/enterprise","label":"企业"},{"href":"/docs/zh/quickstart/integration-guide","label":"文档"}]},"pages":[{"title":"zh","href":"/docs/zh/api-reference/video/wan3"}]},{"language":"en","navbar":{"links":[{"href":"https://hairoute.ai/en","label":"Home"},{"href":"https://hairoute.ai/en/models","label":"Model"},{"href":"https://hairoute.ai/en/enterprise","label":"Enterprise"},{"href":"/docs/en/quickstart/integration-guide","label":"Docs"}]},"groups":[{"group":"Quick start","pages":[{"title":"Integration guide","href":"/docs/en/quickstart/integration-guide"},{"title":"Get API Key","href":"/docs/en/quickstart/get-api-key"}]},{"group":"API documentation","pages":[{"group":"AI model interface","pages":[{"group":"Chat","pages":[{"title":"OpenAI format","openapi":"en/api-reference/chat/openai/openapi.json POST /v1/chat/completions","href":"/docs/en/api-reference/chat/openai-format"},{"title":"Claude format","openapi":"en/api-reference/chat/claude/openapi.json POST /v1/messages","href":"/docs/en/api-reference/chat/claude-format"},{"title":"Responses format","openapi":"en/api-reference/chat/responses/responses-openapi.json POST /v1/responses","href":"/docs/en/api-reference/chat/responses-format"}]},{"group":"Models","pages":[{"title":"Model list","openapi":"en/api-reference/models/openapi.json GET /v1/models","href":"/docs/en/api-reference/models/list-models"}]},{"group":"Images","pages":[{"title":"OpenAI image generation","openapi":"en/api-reference/images/openai/generation/openapi.json POST /v1/images/generations","href":"/docs/en/api-reference/images/openai/generation"},{"title":"OpenAI image edit","openapi":"en/api-reference/images/openai/edit/openapi.json POST /v1/images/edits","href":"/docs/en/api-reference/images/openai/edit"},{"title":"Seedream image generation","openapi":"en/api-reference/images/seedream/generation/openapi.json POST /v1/images/generations","href":"/docs/en/api-reference/images/seedream/generation"},{"title":"Gemini native image generation","openapi":"en/api-reference/images/gemini/generation/openapi.json POST /v1/models/{model}:generateContent","href":"/docs/en/api-reference/images/gemini/generation"}]},{"group":"Video","pages":[{"title":"Common video generation","openapi":"en/api-reference/video/generation/openapi.json POST /v1/video/generations","href":"/docs/en/api-reference/video/generation"},{"title":"Query video generation task","openapi":"en/api-reference/video/generation/openapi.json GET /v1/video/generations/{taskId}","href":"/docs/en/api-reference/video/generation-status"},{"title":"Seedance Video Generation","openapi":"en/api-reference/video/seedance/openapi.json POST /v1/seedance/video/generations","href":"/docs/en/api-reference/video/seedance"},{"title":"Seedance query video task","openapi":"en/api-reference/video/seedance/openapi.json GET /v1/seedance/video/generations/{taskId}","href":"/docs/en/api-reference/video/seedance-status"},{"title":"Wan 2.7 Video Generation","description":"Video generation API compatible with the Alibaba Wan 2.7 protocol, supporting text-to-video, image-to-video, and video editing","openapi":"en/api-reference/video/wan/openapi.json POST /v1/alibaba/video/generations","href":"/docs/en/api-reference/video/wan"},{"title":"Wan 3.0 Video Generation","openapi":"en/api-reference/video/wan3/openapi.json POST /v1/alibaba/video/generations","href":"/docs/en/api-reference/video/wan3"},{"title":"Wan query video task","description":"Query the status and result of an Alibaba Wan-compatible video task","openapi":"en/api-reference/video/wan/openapi.json GET /v1/alibaba/video/generations/{taskId}","href":"/docs/en/api-reference/video/wan-status"},{"title":"HappyHorse Video Generation","openapi":"en/api-reference/video/happyHorse/openapi.json POST /v1/alibaba/video/generations","href":"/docs/en/api-reference/video/happyHorse"},{"title":"HappyHorse query video task","openapi":"en/api-reference/video/happyHorse/openapi.json GET /v1/alibaba/video/generations/{taskId}","href":"/docs/en/api-reference/video/happy-horse-status"}]}]}]},{"group":"AI tool integration","pages":[{"title":"Claude Code","href":"/docs/en/tools/claude-code"},{"title":"CodeX/ChatGPT","href":"/docs/en/tools/codex"},{"title":"Copilot","href":"/docs/en/tools/copilot"},{"title":"Cursor","href":"/docs/en/tools/cursor"},{"title":"DeepChat","href":"/docs/en/tools/deepchat"},{"title":"Open Code","href":"/docs/en/tools/open-code"},{"title":"OpenClaw","href":"/docs/en/tools/openclaw"},{"title":"Trae Work","href":"/docs/en/tools/trae-work"},{"title":"VS Code","href":"/docs/en/tools/vscode"},{"title":"WorkBuddy","href":"/docs/en/tools/workbuddy"},{"title":"ZCode","href":"/docs/en/tools/zcode"}]},{"group":"Other","pages":[{"title":"Rate Limits","href":"/docs/en/others/rate-limits"},{"title":"VPN and proxy connectivity","href":"/docs/en/others/vpn-proxy"}]}]}]},"basePath":"","title":"Wan 3.0 Video Generation - HaiRoute Doc","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js","Markdown-D_k0dg6k.js","clsx-DK3K4Z1S.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DE3EVdvd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fN9H9n9g.js"]}