{ "error": "insufficient_balance", "message": "insufficient available balance"}
Submit a prompt and optional media to the AntiRouter Wan3.0 endpoint to create an asynchronous video task. Save the returned task ID and use Query Task to retrieve its status and finished video.
Use an inference key. Generation reserves account credits. Fixed output durations are 3–14 seconds; use -1 for automatic duration. Example IDs and resource URLs illustrate the response format only.
Request body
string
required
Model ID, such as w3.0-video. See Models for other Wan3.0 variants and check the live list for availability.
object
required
Content to generate, including a prompt and optional source media.
Show input fields
string
Describe the subject, action, scene, and camera movement. Supply a prompt or media input. Keep the prompt within 20,000 characters.
object[]
Optional source-media array. Omit it for text-only generation. Each item has a type and url; see the media types and limits below.
Show media item fields
string
required
Media type from the table below.
string
required
Public HTTP/HTTPS URL of the source media.
object
required
Generation options. Explicitly set duration, resolution, aspect ratio, and the audio and prompt-expansion options you need.
Show parameters fields
integer
required
Fixed output duration in whole seconds, from 3 to 14, or -1 for automatic duration. Set this field explicitly; do not omit it or send 0.
string
Output resolution. Standard and Prime variants accept 480p, 720p, or 1080p. Pro and Prime Pro variants accept 1080p, 2k, or 4k. Set it explicitly and check that pricing is available for that resolution.
string
Aspect ratio: adaptive, 16:9, 4:3, 1:1, 3:4, or 9:16. For example, use 16:9 for landscape output.
boolean
Audio-generation option. Send true to request audio.
integer
Optional random seed from 0 to 2147483647. Reusing a seed does not guarantee frame-identical output.
boolean
Prompt-expansion option. Send true to request expansion; enable it when using file or link.
Media types
type
Purpose
Usage
first_frame
Starting image
At most one item.
last_frame
Ending image
At most one item; use with a first frame.
reference_image
Reference image
Up to five reference images, videos, and audio items combined.
reference_video
Reference video
Combined original video duration must be strictly less than 15 seconds.
reference_audio
Reference audio
Shares the five-item limit with other reference media.
file
Document URL
At most one; cannot be combined with link or reference media.
link
Public webpage URL
At most one; cannot be combined with file or reference media.
Choose either a first/last-frame workflow or a reference-media workflow. The service fetches your media; keep URLs accessible while the task runs. Image, video, and audio URLs must support HTTP byte-range requests and have a known file size. Local file paths, Base64, data URIs, private-network URLs, and live streams are not accepted for these media inputs.
Media
Formats
Maximum size
Dimensions
Image
JPEG/JPG, PNG, BMP, WebP
10 MiB
Width and height each 240–8000 pixels; aspect ratio no greater than 8:1 in either orientation.
Video
MP4/MOV container family
100 MiB
Same dimension limits as images.
Audio
WAV, MP3
15 MiB
No image-dimension requirement.
The 15-second reference-video limit uses original duration, before billing rounding. Keep document inputs supplied as file within 100 MB. file and link are content inputs, not file-upload endpoints.
Image-to-video example
Replace input in the full request with the following object and use your own public image URL:
{ "input": { "prompt": "The camera slowly moves toward the subject. Preserve the composition and lighting of the first frame.", "media": [ { "type": "first_frame", "url": "https://example.com/first-frame.jpg" } ] }}
Successful response
Accepted requests return HTTP 200 and an X-Request-ID header. The creation endpoint returns identifiers and status only, without a video URL or final usage.
string
required
Platform request ID for tracking the generation.
object
required
Show output fields
string
required
Task ID to pass as the query endpoint’s path parameter.
string
required
Current task state, such as PENDING. Even if creation returns SUCCEEDED, query the task to get the result.
Billing and retries
Generation reserves credits before submission. See Models for usage calculation. duration: -1 reserves 30 output seconds plus billable reference-video seconds, then settles on actual usage. The hold is not a promise of the final output duration.Submit once and save the task ID. A connection timeout does not prove creation failed. Check console task history and query an existing task before resubmitting, since repeated submissions can create separately billed tasks.
Common errors
HTTP
error
Next action
400
invalid_model_request
Check duration is 3–14 or -1, and verify media parameters.
400
duplicate_media
Use at most one first frame, last frame, file, and link.
400
conflicting_file_and_link
Keep either file or link.
400
conflicting_frames_and_references
Choose one media workflow and remove conflicting inputs.
400
too_many_reference_media
Reduce reference images, videos, and audio to five items combined.
{ "error": "insufficient_balance", "message": "insufficient available balance"}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"AntiRouter","description":"Build with the AntiRouter API. Create API keys, add credits, generate videos, and retrieve task results.","colors":{"primary":"#2563EB","light":"#60A5FA","dark":"#1D4ED8"},"api":{"playground":{"display":"interactive","proxy":true},"mdx":{"auth":{"method":"bearer"},"server":"https://anti.rs"}},"navbar":{"primary":{"type":"button","label":"Console","href":"https://anti.rs/app/balance"}},"footer":{"socials":{"github":"https://github.com/anti-rs/docs"}},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","href":"en/get-started/welcome"},{"language":"zh","navbar":{"primary":{"type":"button","label":"控制台","href":"https://anti.rs/app/balance"}},"href":"zh/get-started/welcome"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"x-crop","hasAudioNarration":false,"actualSubdomain":"x-crop","customDomains":[],"gitSource":{"type":"github","owner":"anti-rs","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b0d88f780ec8b1c63da5dfe"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0d9fcb80ec8b1c63dc0bda","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"en","tag":"Get Started","count":6},{"language":"zh","tag":"开始使用","count":6},{"language":"en","tag":"API Reference","count":2},{"language":"en","tag":"Wan3.0","count":2},{"language":"zh","tag":"API 参考","count":2},{"language":"zh","tag":"Wan3.0","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"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":"site-roles","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":"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":"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":"turbopuffer-dual-write","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":"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":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@media (min-width: 1024px){#navbar div:has(>div>#localization-select-trigger){display:contents}#navbar div:has(>#search-bar-entry){order:1;max-width:28rem;margin-inline:auto}#navbar div:has(>#localization-select-trigger){order:2}#navbar div:has(>nav #topbar-cta-button){order:3;flex:none;margin-left:0}}"}]}
{"page":{"pagePath":"en/api-reference/wan3/generation","slug":"/en/api-reference/wan3/generation","pageMetadata":{"title":"Create a Wan3.0 video task","sidebarTitle":"Generation","description":"Create an asynchronous Wan3.0 video task from text or media. Review request fields, supported inputs, duration limits, billing, and response examples.","keywords":["AntiRouter","Wan3.0","Generation"],"api":"POST /api/v1/services/aigc/video-generation/video-synthesis","href":"/en/api-reference/wan3/generation"},"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: \"Create an asynchronous Wan3.0 video task from text or media. Review request fields, supported inputs, duration limits, billing, and response examples.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Submit a prompt and optional media to the AntiRouter Wan3.0 endpoint to create an asynchronous video task. Save the returned task ID and use `,_jsx(_components.a,{href:`/en/api-reference/wan3/query-task`,children:`Query Task`}),` to retrieve its status and finished video.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Use an inference key. Generation reserves account credits. Fixed output durations are 3–14 seconds; use `,_jsx(_components.code,{children:`-1`}),` for automatic duration. Example IDs and resource URLs illustrate the response format only.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),`\n`,_jsx(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:_jsxs(_components.p,{children:[`Model ID, such as `,_jsx(_components.code,{children:`w3.0-video`}),`. See `,_jsx(_components.a,{href:`/en/get-started/models`,children:`Models`}),` for other Wan3.0 variants and check the live list for availability.`]})}),`\n`,_jsxs(ParamField,{body:`input`,type:`object`,required:true,id:`param-input`,children:[_jsx(_components.p,{children:`Content to generate, including a prompt and optional source media.`}),_jsxs(Expandable,{title:`input fields`,children:[_jsx(ParamField,{body:`prompt`,type:`string`,id:`param-prompt`,children:_jsx(_components.p,{children:`Describe the subject, action, scene, and camera movement. Supply a prompt or media input. Keep the prompt within 20,000 characters.`})}),_jsxs(ParamField,{body:`media`,type:`object[]`,id:`param-media`,children:[_jsxs(_components.p,{children:[`Optional source-media array. Omit it for text-only generation. Each item has a `,_jsx(_components.code,{children:`type`}),` and `,_jsx(_components.code,{children:`url`}),`; see the media types and limits below.`]}),_jsxs(Expandable,{title:`media item fields`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type`,children:`Media type from the table below.`}),_jsx(ParamField,{body:`url`,type:`string`,required:true,id:`param-url`,children:`Public HTTP/HTTPS URL of the source media.`})]})]})]})]}),`\n`,_jsxs(ParamField,{body:`parameters`,type:`object`,required:true,id:`param-parameters`,children:[_jsx(_components.p,{children:`Generation options. Explicitly set duration, resolution, aspect ratio, and the audio and prompt-expansion options you need.`}),_jsxs(Expandable,{title:`parameters fields`,children:[_jsx(ParamField,{body:`duration`,type:`integer`,required:true,id:`param-duration`,children:_jsxs(_components.p,{children:[`Fixed output duration in whole seconds, from 3 to 14, or `,_jsx(_components.code,{children:`-1`}),` for automatic duration. Set this field explicitly; do not omit it or send `,_jsx(_components.code,{children:`0`}),`.`]})}),_jsx(ParamField,{body:`resolution`,type:`string`,id:`param-resolution`,children:_jsxs(_components.p,{children:[`Output resolution. Standard and Prime variants accept `,_jsx(_components.code,{children:`480p`}),`, `,_jsx(_components.code,{children:`720p`}),`, or `,_jsx(_components.code,{children:`1080p`}),`. Pro and Prime Pro variants accept `,_jsx(_components.code,{children:`1080p`}),`, `,_jsx(_components.code,{children:`2k`}),`, or `,_jsx(_components.code,{children:`4k`}),`. Set it explicitly and check that pricing is available for that resolution.`]})}),_jsx(ParamField,{body:`ratio`,type:`string`,id:`param-ratio`,children:_jsxs(_components.p,{children:[`Aspect ratio: `,_jsx(_components.code,{children:`adaptive`}),`, `,_jsx(_components.code,{children:`16:9`}),`, `,_jsx(_components.code,{children:`4:3`}),`, `,_jsx(_components.code,{children:`1:1`}),`, `,_jsx(_components.code,{children:`3:4`}),`, or `,_jsx(_components.code,{children:`9:16`}),`. For example, use `,_jsx(_components.code,{children:`16:9`}),` for landscape output.`]})}),_jsxs(ParamField,{body:`audio`,type:`boolean`,id:`param-audio`,children:[`Audio-generation option. Send `,_jsx(_components.code,{children:`true`}),` to request audio.`]}),_jsx(ParamField,{body:`seed`,type:`integer`,id:`param-seed`,children:`Optional random seed from 0 to 2147483647. Reusing a seed does not guarantee frame-identical output.`}),_jsxs(ParamField,{body:`prompt_extend`,type:`boolean`,id:`param-prompt-extend`,children:[`Prompt-expansion option. Send `,_jsx(_components.code,{children:`true`}),` to request expansion; enable it when using `,_jsx(_components.code,{children:`file`}),` or `,_jsx(_components.code,{children:`link`}),`.`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`media-types`,children:`Media types`}),`\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:`Purpose`}),_jsx(_components.th,{children:`Usage`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`first_frame`})}),_jsx(_components.td,{children:`Starting image`}),_jsx(_components.td,{children:`At most one item.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`last_frame`})}),_jsx(_components.td,{children:`Ending image`}),_jsx(_components.td,{children:`At most one item; use with a first frame.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reference_image`})}),_jsx(_components.td,{children:`Reference image`}),_jsx(_components.td,{children:`Up to five reference images, videos, and audio items combined.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reference_video`})}),_jsx(_components.td,{children:`Reference video`}),_jsx(_components.td,{children:`Combined original video duration must be strictly less than 15 seconds.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reference_audio`})}),_jsx(_components.td,{children:`Reference audio`}),_jsx(_components.td,{children:`Shares the five-item limit with other reference media.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`file`})}),_jsx(_components.td,{children:`Document URL`}),_jsxs(_components.td,{children:[`At most one; cannot be combined with `,_jsx(_components.code,{children:`link`}),` or reference media.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`link`})}),_jsx(_components.td,{children:`Public webpage URL`}),_jsxs(_components.td,{children:[`At most one; cannot be combined with `,_jsx(_components.code,{children:`file`}),` or reference media.`]})]})]})]}),`\n`,_jsx(_components.p,{children:`Choose either a first/last-frame workflow or a reference-media workflow. The service fetches your media; keep URLs accessible while the task runs. Image, video, and audio URLs must support HTTP byte-range requests and have a known file size. Local file paths, Base64, data URIs, private-network URLs, and live streams are not accepted for these media inputs.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Media`}),_jsx(_components.th,{children:`Formats`}),_jsx(_components.th,{children:`Maximum size`}),_jsx(_components.th,{children:`Dimensions`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Image`}),_jsx(_components.td,{children:`JPEG/JPG, PNG, BMP, WebP`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`10 MiB`}),_jsx(_components.td,{children:`Width and height each 240–8000 pixels; aspect ratio no greater than 8:1 in either orientation.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Video`}),_jsx(_components.td,{children:`MP4/MOV container family`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`100 MiB`}),_jsx(_components.td,{children:`Same dimension limits as images.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Audio`}),_jsx(_components.td,{children:`WAV, MP3`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`15 MiB`}),_jsx(_components.td,{children:`No image-dimension requirement.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The 15-second reference-video limit uses original duration, before billing rounding. Keep document inputs supplied as `,_jsx(_components.code,{children:`file`}),` within 100 MB. `,_jsx(_components.code,{children:`file`}),` and `,_jsx(_components.code,{children:`link`}),` are content inputs, not file-upload endpoints.`]}),`\n`,_jsx(Heading,{level:`2`,id:`image-to-video-example`,children:`Image-to-video example`}),`\n`,_jsxs(_components.p,{children:[`Replace `,_jsx(_components.code,{children:`input`}),` in the full request with the following object and use your own public image URL:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,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:`11`,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:` \"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 slowly moves toward the subject. Preserve the composition and lighting of the 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:` \"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`,_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:`successful-response`,children:`Successful response`}),`\n`,_jsxs(_components.p,{children:[`Accepted requests return HTTP `,_jsx(_components.code,{children:`200`}),` and an `,_jsx(_components.code,{children:`X-Request-ID`}),` header. The creation endpoint returns identifiers and status only, without a video URL or final usage.`]}),`\n`,_jsx(ResponseField,{name:`request_id`,type:`string`,required:true,id:`param-request-id`,children:`Platform request ID for tracking the generation.`}),`\n`,_jsx(ResponseField,{name:`output`,type:`object`,required:true,id:`param-output`,children:_jsxs(Expandable,{title:`output fields`,children:[_jsx(ResponseField,{name:`task_id`,type:`string`,required:true,id:`param-task-id`,children:`Task ID to pass as the query endpoint’s path parameter.`}),_jsxs(ResponseField,{name:`task_status`,type:`string`,required:true,id:`param-task-status`,children:[`Current task state, such as `,_jsx(_components.code,{children:`PENDING`}),`. Even if creation returns `,_jsx(_components.code,{children:`SUCCEEDED`}),`, query the task to get the result.`]})]})}),`\n`,_jsx(Heading,{level:`2`,id:`billing-and-retries`,children:`Billing and retries`}),`\n`,_jsxs(_components.p,{children:[`Generation reserves credits before submission. See `,_jsx(_components.a,{href:`/en/get-started/models`,children:`Models`}),` for usage calculation. `,_jsx(_components.code,{children:`duration: -1`}),` reserves 30 output seconds plus billable reference-video seconds, then settles on actual usage. The hold is not a promise of the final output duration.`]}),`\n`,_jsx(_components.p,{children:`Submit once and save the task ID. A connection timeout does not prove creation failed. Check console task history and query an existing task before resubmitting, since repeated submissions can create separately billed tasks.`}),`\n`,_jsx(Heading,{level:`2`,id:`common-errors`,children:`Common errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`error`})}),_jsx(_components.th,{children:`Next action`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_model_request`})}),_jsxs(_components.td,{children:[`Check duration is 3–14 or `,_jsx(_components.code,{children:`-1`}),`, and verify media parameters.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`duplicate_media`})}),_jsx(_components.td,{children:`Use at most one first frame, last frame, file, and link.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`conflicting_file_and_link`})}),_jsx(_components.td,{children:`Keep either file or link.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`conflicting_frames_and_references`})}),_jsx(_components.td,{children:`Choose one media workflow and remove conflicting inputs.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`too_many_reference_media`})}),_jsx(_components.td,{children:`Reduce reference images, videos, and audio to five items combined.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`reference_video_duration_limit_exceeded`})}),_jsx(_components.td,{children:`Keep combined reference-video duration strictly below 15 seconds.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`streaming_media_unsupported`})}),_jsx(_components.td,{children:`Provide a direct URL with byte-range support and a known file size.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`invalid_video_media`}),` / `,_jsx(_components.code,{children:`media_metadata_unavailable`})]}),_jsx(_components.td,{children:`Check media type, URL, and whether the file can be read.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`image_too_large`}),` / `,_jsx(_components.code,{children:`video_too_large`}),` / `,_jsx(_components.code,{children:`audio_too_large`})]}),_jsx(_components.td,{children:`Reduce file size.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`unsupported_image_format`}),` / `,_jsx(_components.code,{children:`unsupported_video_format`}),` / `,_jsx(_components.code,{children:`unsupported_audio_format`})]}),_jsx(_components.td,{children:`Convert to a supported format.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`invalid_media_resolution`}),` / `,_jsx(_components.code,{children:`invalid_media_aspect_ratio`})]}),_jsx(_components.td,{children:`Adjust media dimensions or aspect ratio.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`unauthorized`})}),_jsx(_components.td,{children:`Use an enabled, valid inference key.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`402`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`insufficient_balance`})}),_jsx(_components.td,{children:`Add enough credits for the hold.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`not_found`})}),_jsx(_components.td,{children:`Check the model ID exists and is enabled.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`502`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`upstream_unavailable`})}),_jsx(_components.td,{children:`Check task history before retrying generation.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`metering_unavailable`})}),_jsx(_components.td,{children:`Pricing is temporarily unavailable; retry later.`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a Wan3.0 video task","sidebarTitle":"Generation","description":"Create an asynchronous Wan3.0 video task from text or media. Review request fields, supported inputs, duration limits, billing, and response examples.","keywords":["AntiRouter","Wan3.0","Generation"],"api":"POST /api/v1/services/aigc/video-generation/video-synthesis","href":"/en/api-reference/wan3/generation"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Submit a prompt and optional media to the AntiRouter Wan3.0 endpoint to create an asynchronous video task. Save the returned task ID and use `,_jsx(_components.a,{href:`/en/api-reference/wan3/query-task`,children:`Query Task`}),` to retrieve its status and finished video.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Use an inference key. Generation reserves account credits. Fixed output durations are 3–14 seconds; use `,_jsx(_components.code,{children:`-1`}),` for automatic duration. Example IDs and resource URLs illustrate the response format only.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),`\n`,_jsx(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:_jsxs(_components.p,{children:[`Model ID, such as `,_jsx(_components.code,{children:`w3.0-video`}),`. See `,_jsx(_components.a,{href:`/en/get-started/models`,children:`Models`}),` for other Wan3.0 variants and check the live list for availability.`]})}),`\n`,_jsxs(ParamField,{body:`input`,type:`object`,required:true,id:`param-input`,children:[_jsx(_components.p,{children:`Content to generate, including a prompt and optional source media.`}),_jsxs(Expandable,{title:`input fields`,children:[_jsx(ParamField,{body:`prompt`,type:`string`,id:`param-prompt`,children:_jsx(_components.p,{children:`Describe the subject, action, scene, and camera movement. Supply a prompt or media input. Keep the prompt within 20,000 characters.`})}),_jsxs(ParamField,{body:`media`,type:`object[]`,id:`param-media`,children:[_jsxs(_components.p,{children:[`Optional source-media array. Omit it for text-only generation. Each item has a `,_jsx(_components.code,{children:`type`}),` and `,_jsx(_components.code,{children:`url`}),`; see the media types and limits below.`]}),_jsxs(Expandable,{title:`media item fields`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type`,children:`Media type from the table below.`}),_jsx(ParamField,{body:`url`,type:`string`,required:true,id:`param-url`,children:`Public HTTP/HTTPS URL of the source media.`})]})]})]})]}),`\n`,_jsxs(ParamField,{body:`parameters`,type:`object`,required:true,id:`param-parameters`,children:[_jsx(_components.p,{children:`Generation options. Explicitly set duration, resolution, aspect ratio, and the audio and prompt-expansion options you need.`}),_jsxs(Expandable,{title:`parameters fields`,children:[_jsx(ParamField,{body:`duration`,type:`integer`,required:true,id:`param-duration`,children:_jsxs(_components.p,{children:[`Fixed output duration in whole seconds, from 3 to 14, or `,_jsx(_components.code,{children:`-1`}),` for automatic duration. Set this field explicitly; do not omit it or send `,_jsx(_components.code,{children:`0`}),`.`]})}),_jsx(ParamField,{body:`resolution`,type:`string`,id:`param-resolution`,children:_jsxs(_components.p,{children:[`Output resolution. Standard and Prime variants accept `,_jsx(_components.code,{children:`480p`}),`, `,_jsx(_components.code,{children:`720p`}),`, or `,_jsx(_components.code,{children:`1080p`}),`. Pro and Prime Pro variants accept `,_jsx(_components.code,{children:`1080p`}),`, `,_jsx(_components.code,{children:`2k`}),`, or `,_jsx(_components.code,{children:`4k`}),`. Set it explicitly and check that pricing is available for that resolution.`]})}),_jsx(ParamField,{body:`ratio`,type:`string`,id:`param-ratio`,children:_jsxs(_components.p,{children:[`Aspect ratio: `,_jsx(_components.code,{children:`adaptive`}),`, `,_jsx(_components.code,{children:`16:9`}),`, `,_jsx(_components.code,{children:`4:3`}),`, `,_jsx(_components.code,{children:`1:1`}),`, `,_jsx(_components.code,{children:`3:4`}),`, or `,_jsx(_components.code,{children:`9:16`}),`. For example, use `,_jsx(_components.code,{children:`16:9`}),` for landscape output.`]})}),_jsxs(ParamField,{body:`audio`,type:`boolean`,id:`param-audio`,children:[`Audio-generation option. Send `,_jsx(_components.code,{children:`true`}),` to request audio.`]}),_jsx(ParamField,{body:`seed`,type:`integer`,id:`param-seed`,children:`Optional random seed from 0 to 2147483647. Reusing a seed does not guarantee frame-identical output.`}),_jsxs(ParamField,{body:`prompt_extend`,type:`boolean`,id:`param-prompt-extend`,children:[`Prompt-expansion option. Send `,_jsx(_components.code,{children:`true`}),` to request expansion; enable it when using `,_jsx(_components.code,{children:`file`}),` or `,_jsx(_components.code,{children:`link`}),`.`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`media-types`,children:`Media types`}),`\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:`Purpose`}),_jsx(_components.th,{children:`Usage`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`first_frame`})}),_jsx(_components.td,{children:`Starting image`}),_jsx(_components.td,{children:`At most one item.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`last_frame`})}),_jsx(_components.td,{children:`Ending image`}),_jsx(_components.td,{children:`At most one item; use with a first frame.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reference_image`})}),_jsx(_components.td,{children:`Reference image`}),_jsx(_components.td,{children:`Up to five reference images, videos, and audio items combined.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reference_video`})}),_jsx(_components.td,{children:`Reference video`}),_jsx(_components.td,{children:`Combined original video duration must be strictly less than 15 seconds.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reference_audio`})}),_jsx(_components.td,{children:`Reference audio`}),_jsx(_components.td,{children:`Shares the five-item limit with other reference media.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`file`})}),_jsx(_components.td,{children:`Document URL`}),_jsxs(_components.td,{children:[`At most one; cannot be combined with `,_jsx(_components.code,{children:`link`}),` or reference media.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`link`})}),_jsx(_components.td,{children:`Public webpage URL`}),_jsxs(_components.td,{children:[`At most one; cannot be combined with `,_jsx(_components.code,{children:`file`}),` or reference media.`]})]})]})]}),`\n`,_jsx(_components.p,{children:`Choose either a first/last-frame workflow or a reference-media workflow. The service fetches your media; keep URLs accessible while the task runs. Image, video, and audio URLs must support HTTP byte-range requests and have a known file size. Local file paths, Base64, data URIs, private-network URLs, and live streams are not accepted for these media inputs.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Media`}),_jsx(_components.th,{children:`Formats`}),_jsx(_components.th,{children:`Maximum size`}),_jsx(_components.th,{children:`Dimensions`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Image`}),_jsx(_components.td,{children:`JPEG/JPG, PNG, BMP, WebP`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`10 MiB`}),_jsx(_components.td,{children:`Width and height each 240–8000 pixels; aspect ratio no greater than 8:1 in either orientation.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Video`}),_jsx(_components.td,{children:`MP4/MOV container family`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`100 MiB`}),_jsx(_components.td,{children:`Same dimension limits as images.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Audio`}),_jsx(_components.td,{children:`WAV, MP3`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`15 MiB`}),_jsx(_components.td,{children:`No image-dimension requirement.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The 15-second reference-video limit uses original duration, before billing rounding. Keep document inputs supplied as `,_jsx(_components.code,{children:`file`}),` within 100 MB. `,_jsx(_components.code,{children:`file`}),` and `,_jsx(_components.code,{children:`link`}),` are content inputs, not file-upload endpoints.`]}),`\n`,_jsx(Heading,{level:`2`,id:`image-to-video-example`,children:`Image-to-video example`}),`\n`,_jsxs(_components.p,{children:[`Replace `,_jsx(_components.code,{children:`input`}),` in the full request with the following object and use your own public image URL:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,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:`11`,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:` \"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 slowly moves toward the subject. Preserve the composition and lighting of the 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:` \"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`,_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:`successful-response`,children:`Successful response`}),`\n`,_jsxs(_components.p,{children:[`Accepted requests return HTTP `,_jsx(_components.code,{children:`200`}),` and an `,_jsx(_components.code,{children:`X-Request-ID`}),` header. The creation endpoint returns identifiers and status only, without a video URL or final usage.`]}),`\n`,_jsx(ResponseField,{name:`request_id`,type:`string`,required:true,id:`param-request-id`,children:`Platform request ID for tracking the generation.`}),`\n`,_jsx(ResponseField,{name:`output`,type:`object`,required:true,id:`param-output`,children:_jsxs(Expandable,{title:`output fields`,children:[_jsx(ResponseField,{name:`task_id`,type:`string`,required:true,id:`param-task-id`,children:`Task ID to pass as the query endpoint’s path parameter.`}),_jsxs(ResponseField,{name:`task_status`,type:`string`,required:true,id:`param-task-status`,children:[`Current task state, such as `,_jsx(_components.code,{children:`PENDING`}),`. Even if creation returns `,_jsx(_components.code,{children:`SUCCEEDED`}),`, query the task to get the result.`]})]})}),`\n`,_jsx(Heading,{level:`2`,id:`billing-and-retries`,children:`Billing and retries`}),`\n`,_jsxs(_components.p,{children:[`Generation reserves credits before submission. See `,_jsx(_components.a,{href:`/en/get-started/models`,children:`Models`}),` for usage calculation. `,_jsx(_components.code,{children:`duration: -1`}),` reserves 30 output seconds plus billable reference-video seconds, then settles on actual usage. The hold is not a promise of the final output duration.`]}),`\n`,_jsx(_components.p,{children:`Submit once and save the task ID. A connection timeout does not prove creation failed. Check console task history and query an existing task before resubmitting, since repeated submissions can create separately billed tasks.`}),`\n`,_jsx(Heading,{level:`2`,id:`common-errors`,children:`Common errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`error`})}),_jsx(_components.th,{children:`Next action`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_model_request`})}),_jsxs(_components.td,{children:[`Check duration is 3–14 or `,_jsx(_components.code,{children:`-1`}),`, and verify media parameters.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`duplicate_media`})}),_jsx(_components.td,{children:`Use at most one first frame, last frame, file, and link.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`conflicting_file_and_link`})}),_jsx(_components.td,{children:`Keep either file or link.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`conflicting_frames_and_references`})}),_jsx(_components.td,{children:`Choose one media workflow and remove conflicting inputs.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`too_many_reference_media`})}),_jsx(_components.td,{children:`Reduce reference images, videos, and audio to five items combined.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`reference_video_duration_limit_exceeded`})}),_jsx(_components.td,{children:`Keep combined reference-video duration strictly below 15 seconds.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`streaming_media_unsupported`})}),_jsx(_components.td,{children:`Provide a direct URL with byte-range support and a known file size.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`invalid_video_media`}),` / `,_jsx(_components.code,{children:`media_metadata_unavailable`})]}),_jsx(_components.td,{children:`Check media type, URL, and whether the file can be read.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`image_too_large`}),` / `,_jsx(_components.code,{children:`video_too_large`}),` / `,_jsx(_components.code,{children:`audio_too_large`})]}),_jsx(_components.td,{children:`Reduce file size.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`unsupported_image_format`}),` / `,_jsx(_components.code,{children:`unsupported_video_format`}),` / `,_jsx(_components.code,{children:`unsupported_audio_format`})]}),_jsx(_components.td,{children:`Convert to a supported format.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`invalid_media_resolution`}),` / `,_jsx(_components.code,{children:`invalid_media_aspect_ratio`})]}),_jsx(_components.td,{children:`Adjust media dimensions or aspect ratio.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`unauthorized`})}),_jsx(_components.td,{children:`Use an enabled, valid inference key.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`402`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`insufficient_balance`})}),_jsx(_components.td,{children:`Add enough credits for the hold.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`not_found`})}),_jsx(_components.td,{children:`Check the model ID exists and is enabled.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`502`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`upstream_unavailable`})}),_jsx(_components.td,{children:`Check task history before retrying generation.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`metering_unavailable`})}),_jsx(_components.td,{children:`Pricing is temporarily unavailable; retry later.`})]})]})]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`19`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`19`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://anti.rs/api/v1/services/aigc/video-generation/video-synthesis\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ANTI_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"w3.0-video\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"input\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"A paper boat floats along a quiet stream at sunrise. Slow tracking shot, soft natural light.\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"parameters\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\": \"720p\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ratio\": \"16:9\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\": 5,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"audio\": true,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt_extend\": true`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`32`,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:`32`,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:` json`})]}),`\n`,_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:` os`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` urllib.request `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Request, urlopen`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`payload `}),_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:`\"w3.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:`: (`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"A paper boat floats along a quiet stream at sunrise. \"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Slow tracking shot, soft natural light.\"`})}),`\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:`#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:` \"audio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`request `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Request(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://anti.rs/api/v1/services/aigc/video-generation/video-synthesis\"`}),_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:` data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`json.dumps(payload).encode(),`})]}),`\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 \"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ANTI_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:` method`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"POST\"`}),_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:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`with`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` urlopen(request, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`timeout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`120`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` json.load(response)`})]}),`\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:`(result[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"output\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`][`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200`,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:`\"3c22bd6d-4101-4c7d-8430-b7af1050e842\"`}),_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:`\"example-task-id\"`}),_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`]})})}),_jsx(CodeBlock,{filename:`402`,numberOfLines:`4`,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:`4`,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:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"insufficient_balance\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"insufficient available balance\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\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":"Create a Wan3.0 video task","sidebarTitle":"Generation","description":"Create an asynchronous Wan3.0 video task from text or media. Review request fields, supported inputs, duration limits, billing, and response examples.","keywords":["AntiRouter","Wan3.0","Generation"],"api":"POST /api/v1/services/aigc/video-generation/video-synthesis","href":"/en/api-reference/wan3/generation"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Request body","slug":"request-body","depth":2,"children":[]},{"title":"Media types","slug":"media-types","depth":2,"children":[]},{"title":"Image-to-video example","slug":"image-to-video-example","depth":2,"children":[]},{"title":"Successful response","slug":"successful-response","depth":2,"children":[]},{"title":"Billing and retries","slug":"billing-and-retries","depth":2,"children":[]},{"title":"Common errors","slug":"common-errors","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"19\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --url\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://anti.rs/api/v1/services/aigc/video-generation/video-synthesis\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$ANTI_API_KEY\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"w3.0-video\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"input\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\": \"A paper boat floats along a quiet stream at sunrise. Slow tracking shot, soft natural light.\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"parameters\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"resolution\": \"720p\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"ratio\": \"16:9\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"duration\": 5,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"audio\": true,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt_extend\": true\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"32\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> json\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> os\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">from\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> urllib.request \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> Request, urlopen\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">payload \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"w3.0-video\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"input\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: (\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"A paper boat floats along a quiet stream at sunrise. \"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Slow tracking shot, soft natural light.\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"parameters\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"resolution\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"720p\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"ratio\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"16:9\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"duration\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">5\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"audio\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">True\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt_extend\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">True\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">request \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> Request(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://anti.rs/api/v1/services/aigc/video-generation/video-synthesis\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> data\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">json.dumps(payload).encode(),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Bearer \"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> +\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> os.environ[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ANTI_API_KEY\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"application/json\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> method\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"POST\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">with\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> urlopen(request, \u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">timeout\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">120\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">as\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> response:\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> result \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> json.load(response)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(result[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"output\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">][\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"task_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">])\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"request_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"3c22bd6d-4101-4c7d-8430-b7af1050e842\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"output\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"task_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"example-task-id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"task_status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"PENDING\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"402","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"4\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"insufficient_balance\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"insufficient available balance\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Create a Wan3.0 video task","path":"/api/v1/services/aigc/video-generation/video-synthesis","servers":[{"url":"https://anti.rs"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"model":[{"type":"string","description":"Model ID, such as `w3.0-video` . See Models for other Wan3.0 variants and check the live list for availability.","required":true}],"input":[{"type":"object","properties":{"prompt":[{"type":"string","description":"Describe the subject, action, scene, and camera movement. Supply a prompt or media input. Keep the prompt within 20,000 characters."}],"media":[{"type":"array","items":[{"type":"object","properties":{"type":[{"type":"string","description":"Media type from the table below.","required":true}],"url":[{"type":"string","description":"Public HTTP/HTTPS URL of the source media.","required":true}]}}],"description":"Optional source-media array. Omit it for text-only generation. Each item has a `type` and `url` ; see the media types and limits below."}]},"description":"Content to generate, including a prompt and optional source media.","required":true}],"parameters":[{"type":"object","properties":{"duration":[{"type":"integer","description":"Fixed output duration in whole seconds, from 3 to 14, or `-1` for automatic duration. Set this field explicitly; do not omit it or send `0` .","required":true}],"resolution":[{"type":"string","description":"Output resolution. Standard and Prime variants accept `480p` , `720p` , or `1080p` . Pro and Prime Pro variants accept `1080p` , `2k` , or `4k` . Set it explicitly and check that pricing is available for that resolution."}],"ratio":[{"type":"string","description":"Aspect ratio: `adaptive` , `16:9` , `4:3` , `1:1` , `3:4` , or `9:16` . For example, use `16:9` for landscape output."}],"audio":[{"type":"boolean","description":"Audio-generation option. Send `true` to request audio."}],"seed":[{"type":"integer","description":"Optional random seed from 0 to 2147483647. Reusing a seed does not guarantee frame-identical output."}],"prompt_extend":[{"type":"boolean","description":"Prompt-expansion option. Send `true` to request expansion; enable it when using `file` or `link` ."}]},"description":"Generation options. Explicitly set duration, resolution, aspect ratio, and the audio and prompt-expansion options you need.","required":true}]}}],"examples":{"example":{"value":{"model":"\u003cstring>","input":{"prompt":"\u003cstring>","media":[{"type":"\u003cstring>","url":"\u003cstring>"}]},"parameters":{"duration":123,"resolution":"\u003cstring>","ratio":"\u003cstring>","audio":true,"seed":123,"prompt_extend":true}}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"request_id":[{"type":"string","description":"Platform request ID for tracking the generation.","required":true}],"output":[{"type":"object","properties":{"task_id":[{"type":"string","description":"Task ID to pass as the query endpoint’s path parameter.","required":true}],"task_status":[{"type":"string","description":"Current task state, such as `PENDING` . Even if creation returns `SUCCEEDED` , query the task to get the result.","required":true}]},"required":true}]}}],"examples":{"example":{"value":{"request_id":"\u003cstring>","output":{"task_id":"\u003cstring>","task_status":"\u003cstring>"}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"x-crop","siteName":"AntiRouter","title":"Create a Wan3.0 video task - AntiRouter","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/api-reference/wan3/generation","matchLevel":0},"zh":{"href":"/zh/api-reference/wan3/generation","matchLevel":1}}},"lastModified":"2026-11-30T16:09:49.256Z","originalFileLocation":"en/api-reference/wan3/generation.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create an asynchronous Wan3.0 video task from text or media. Review request fields, supported inputs, duration limits, billing, and response examples.\">\u003cmeta data-mint-head name=\"application-name\" content=\"AntiRouter\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/x-crop/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/x-crop/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/x-crop/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/x-crop/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a Wan3.0 video task - AntiRouter\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create an asynchronous Wan3.0 video task from text or media. Review request fields, supported inputs, duration limits, billing, and response examples.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AntiRouter\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://x-crop.mintlify.app/en/api-reference/wan3/generation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://x-crop.mintlify.site/_mintlify/api/og/v2?division=Wan3.0\u0026amp;title=Create+a+Wan3.0+video+task\u0026amp;description=Create+an+asynchronous+Wan3.0+video+task+from+text+or+media.+Review+request+fields%2C+supported+inputs%2C+duration+limits%2C+billing%2C+and+response+examples.\u0026amp;theme=c6b247f82d0b28602e760c10\u0026amp;signature=e5cd8dc7b4c02b33adc0fd14ad6f031f549e4bcc67da51ec5b549048daba8894\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a Wan3.0 video task - AntiRouter\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create an asynchronous Wan3.0 video task from text or media. Review request fields, supported inputs, duration limits, billing, and response examples.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://x-crop.mintlify.site/_mintlify/api/og/v2?division=Wan3.0\u0026amp;title=Create+a+Wan3.0+video+task\u0026amp;description=Create+an+asynchronous+Wan3.0+video+task+from+text+or+media.+Review+request+fields%2C+supported+inputs%2C+duration+limits%2C+billing%2C+and+response+examples.\u0026amp;theme=c6b247f82d0b28602e760c10\u0026amp;signature=e5cd8dc7b4c02b33adc0fd14ad6f031f549e4bcc67da51ec5b549048daba8894\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/x-crop/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AntiRouter\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563EB\">\u003clink data-mint-head rel=\"canonical\" href=\"https://x-crop.mintlify.app/en/api-reference/wan3/generation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/api-reference/wan3/generation.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://x-crop.mintlify.app/en/api-reference/wan3/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://x-crop.mintlify.app/zh/api-reference/wan3/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://x-crop.mintlify.app/en/api-reference/wan3/generation\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://x-crop.mintlify.app/#organization\",\"name\":\"AntiRouter\",\"url\":\"https://x-crop.mintlify.app\"},{\"@type\":\"WebSite\",\"@id\":\"https://x-crop.mintlify.app#website\",\"name\":\"AntiRouter\",\"url\":\"https://x-crop.mintlify.app\",\"publisher\":{\"@id\":\"https://x-crop.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://x-crop.mintlify.app/en/api-reference/wan3/generation#webpage\",\"url\":\"https://x-crop.mintlify.app/en/api-reference/wan3/generation\",\"name\":\"Create a Wan3.0 video task\",\"description\":\"Create an asynchronous Wan3.0 video task from text or media. Review request fields, supported inputs, duration limits, billing, and response examples.\",\"dateModified\":\"2026-11-30T16:09:49.256Z\",\"isPartOf\":{\"@id\":\"https://x-crop.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://x-crop.mintlify.app/en/api-reference/wan3/generation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://x-crop.mintlify.app/en/api-reference/wan3/generation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"AntiRouter\",\"item\":\"https://x-crop.mintlify.app\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a Wan3.0 video task\",\"item\":\"https://x-crop.mintlify.app/en/api-reference/wan3/generation\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://x-crop.mintlify.app/en/api-reference/wan3/generation#apireference\",\"headline\":\"Create a Wan3.0 video task\",\"name\":\"Create a Wan3.0 video task\",\"description\":\"Create an asynchronous Wan3.0 video task from text or media. Review request fields, supported inputs, duration limits, billing, and response examples.\",\"url\":\"https://x-crop.mintlify.app/en/api-reference/wan3/generation\",\"mainEntityOfPage\":{\"@id\":\"https://x-crop.mintlify.app/en/api-reference/wan3/generation#webpage\"},\"dateModified\":\"2026-11-30T16:09:49.256Z\",\"keywords\":\"AntiRouter, Wan3.0, Generation\",\"publisher\":{\"@id\":\"https://x-crop.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://x-crop.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"AntiRouter\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"AntiRouter\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/api-reference/wan3/generation.md","siteName":"AntiRouter","nav":{"global":null,"languages":[{"language":"en","groups":[{"group":"Get Started","pages":[{"title":"Build with AntiRouter","sidebarTitle":"Welcome","href":"/en/get-started/welcome"},{"title":"Generate your first video","sidebarTitle":"Quick Start","href":"/en/get-started/quick-start"},{"title":"Create and manage API keys","sidebarTitle":"API Keys","href":"/en/get-started/api-keys"},{"title":"API endpoints and request conventions","sidebarTitle":"Endpoint","href":"/en/get-started/endpoint"},{"title":"Choose models and understand pricing","sidebarTitle":"Models","href":"/en/get-started/models"},{"title":"Top up your API balance","sidebarTitle":"Top up","description":"Add API credits with USDT, verify the receiving network and address, track deposit confirmations, and understand available balance during video tasks.","href":"/en/get-started/top-up"}]},{"group":"API Reference","pages":[{"group":"Wan3.0","pages":[{"title":"Create a Wan3.0 video task","sidebarTitle":"Generation","api":"POST /api/v1/services/aigc/video-generation/video-synthesis","href":"/en/api-reference/wan3/generation"},{"title":"Query a Wan3.0 video task","sidebarTitle":"Query Task","description":"Retrieve a Wan3.0 video task by ID. Inspect processing and terminal states, download the video, read final usage, and implement bounded polling.","api":"GET /api/v1/tasks/{task_id}","href":"/en/api-reference/wan3/query-task"}]}]}]},{"language":"zh","navbar":{"primary":{"type":"button","label":"控制台","href":"https://anti.rs/app/balance"}},"pages":[{"title":"zh","href":"/zh/api-reference/wan3/generation"}]}]},"basePath":"","title":"Create a Wan3.0 video task - AntiRouter","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","SectionHeading-DyxPTJti.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js"]}