Send model and input. Omitting input.mode selects text_to_video; the other three workflows require an explicit mode (never inferred), and fields are validated against the selected mode. See the Body section below for defaults and limits.nsfw_check: true screens text/images; false or omitted skips it. Provider moderation still applies.
Request type
Required input fields
Text to video
prompt (mode optional; defaults to "text_to_video")
Mode compatibility rules; see Body below for exact defaults, duration bounds, and media limits.
Mode isolation: Fields belonging to another mode return HTTP 400. Check the Body resolution default before omitting resolution.
Reference (reference_to_video): image_with_roles and flat images are mutually exclusive; omit aspect_ratio with a first frame. Reference videos lower the Body duration cap.
Edit (video_edit): Default duration matches source length; an explicit duration trims from the start without exceeding source length. Continuation and effects templates are unsupported.
Use cases
Submit to POST /api/v1/tasks/create_task. files.apistable.ai URLs are live samples; replace cdn.example.com links with public HTTPS URLs meeting Body limits.
{ "model": "wan-2.7", "input": { "mode": "text_to_video", "prompt": "A paper boat drifting on a calm pond at sunrise, gentle ripples", "resolution": "720p", "duration": 2, "aspect_ratio": "16:9" }}
{ "model": "wan-2.7", "input": { "mode": "image_to_video", "first_frame_url": "https://files.apistable.ai/examples/wan/v2/inputs/wan27-boat-keyframes-input-0.jpg", "last_frame_url": "https://files.apistable.ai/examples/wan/v2/inputs/wan27-boat-keyframes-input-1.jpg", "prompt": "Smooth transition as morning mist lifts and warm sunlight brightens the pond.", "resolution": "1080p", "duration": 5 }}
{ "model": "wan-2.7", "input": { "mode": "reference_to_video", "prompt": "Keep the folded paper boat appearance from the reference image and the calm golden-hour pond setting and visual style from the reference video as gentle ripples spread.", "reference_image_urls": [ "https://files.apistable.ai/examples/wan/v2/inputs/wan27-boat-reference-input-0.jpg" ], "reference_video_urls": [ "https://files.apistable.ai/examples/wan/v2/inputs/wan27-boat-snow-edit-input-0.mp4" ], "resolution": "720p", "duration": 5, "aspect_ratio": "16:9" }}
{ "model": "wan-2.7", "input": { "mode": "reference_to_video", "prompt": "Medium close-up of the studio host from the character reference image speaking calmly into the camera in the bound reference voice, warm studio key light, soft background.", "image_with_roles": [ { "url": "https://cdn.example.com/character-host.jpg", "role": "reference_image", "reference_voice": "https://cdn.example.com/host-voice.mp3" } ], "aspect_ratio": "16:9", "resolution": "720p", "duration": 5 }}
{ "model": "wan-2.7", "input": { "mode": "video_edit", "source_video_url": "https://files.apistable.ai/examples/wan/v2/inputs/wan27-boat-snow-edit-input-0.mp4", "reference_image_urls": [ "https://files.apistable.ai/examples/wan/v2/inputs/wan27-boat-reference-input-0.jpg" ], "prompt": "Replace the distant background with a softly blurred snowy shoreline while keeping the white paper boat, water ripples, and camera motion unchanged.", "resolution": "720p", "duration": 0, "metadata": { "audio_setting": "origin" } }}
Track data.task_id via Query task or callback_url (Webhook security); see Create task for errors and Quickstart for auth. Output URLs last 14 days; tasks unfinished after 24 hours are eligible for timeout cleanup at no charge.
Playground and pricing
Each task generates 1 video at one per-second rate across modes. Text/image modes bill requested output seconds; reference/edit modes bill every input video’s seconds (including repeated URLs) plus measured output seconds (images/audio add none). Failed tasks cost 0. See Available Credits.
Resolution
Credits / billable s
USD / billable s
720p
17.0
$0.085
1080p (default)
28.0
$0.140
Try in Playground
Test all four Wan 2.7 modes interactively.
View pricing
Compare 720p and 1080p rates by mode.
Authorizations
Authorization
string
header
required
Sign in to APIstable, then create and copy a key from API Key management.
Send this HTTP header with every request:
Authorization: Bearer YOUR_API_KEY
Replace YOUR_API_KEY with the key you created.
Body
application/json
model
enum<string>
required
The APIstable model ID for this endpoint.
Available options:
wan-2.7
Example:
"wan-2.7"
input
object
required
Wan 2.7 input validated by the selected workflow (mode: text_to_video, image_to_video, reference_to_video, or video_edit). Omitting mode selects text_to_video; the other three workflows require mode. When nsfw_check is true, APIstable screens text and images before submission; omitted or false skips APIstable screening. Video and audio are passed to the model provider, which applies its own moderation.
Option 1
Option 2
Option 3
Option 4
Show child attributes
callback_url
string<uri>
Optional public HTTPS endpoint for signed completion callbacks; no redirects or private IPs.
Callbacks
POST
{$request.body#/callback_url}Webhook
Body
application/json
When the task succeeds or fails, APIstable sends a JSON POST to the callback_url supplied at creation. Verify the signature and return HTTP 2xx to acknowledge delivery.
Read data.status to determine the generation outcome. Successful tasks report succeeded with generated video URLs in data.result.urls. For a failed task, data.result is null and data.message contains the failure reason.
Use X-APIstable-Signature, X-APIstable-Timestamp, and X-APIstable-Event-Id to verify and deduplicate deliveries. See Webhook security.
Accepted task. Use task_id to query the task, or receive the result at callback_url.
code
any
required
msg
any
required
data
object
required
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"API Stable","colors":{"primary":"#6256e8","light":"#7468f2","dark":"#a9a0ff"},"api":{"playground":{"display":"interactive","proxy":true},"examples":{"languages":["curl","javascript","python"]}},"navbar":{"primary":{"type":"button","label":"Model market","href":"https://apistable.ai/models"}},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","navbar":{"primary":{"type":"button","label":"Model market","href":"https://apistable.ai/models"}},"href":"quickstart"},{"language":"cn","navbar":{"primary":{"type":"button","label":"模型市场","href":"https://apistable.ai/models"}},"href":"zh/quickstart"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"apistable","hasAudioNarration":false,"actualSubdomain":"apistable","customDomains":["docs.apistable.ai"],"gitSource":{"type":"github","owner":"bairde","repo":"apistable","deployBranch":"main","contentDirectory":"mintlify","isPrivate":true,"mountPath":"","label":"","_id":"6ae5e3ed778ca28c5ec178e9"},"entitlements":{},"buildId":"6b0a55970380eb9dc3155fbc","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"en","tag":"Market","count":51},{"language":"cn","tag":"模型市场","count":51},{"language":"en","tag":"Image models","count":21},{"language":"cn","tag":"图片模型","count":21},{"language":"en","tag":"Music models","count":19},{"language":"en","tag":"Suno","count":19},{"language":"cn","tag":"音乐模型","count":19},{"language":"cn","tag":"Suno","count":19},{"language":"en","tag":"Common APIs","count":11},{"language":"en","tag":"Video models","count":11},{"language":"en","tag":"ByteDance","count":11},{"language":"cn","tag":"通用 API","count":11},{"language":"cn","tag":"视频模型","count":11},{"language":"cn","tag":"ByteDance","count":11},{"language":"en","tag":"Alibaba","count":8},{"language":"cn","tag":"Alibaba","count":8},{"language":"en","tag":"OpenAI","count":6},{"language":"cn","tag":"OpenAI","count":6},{"language":"en","tag":"Google","count":5},{"language":"cn","tag":"Google","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"after-api-reference.css","content":"#api-playground-2-operation-page .mdx-content:has(>.after-api-reference){display:flex;flex-direction:column;reading-flow:flex-visual}#api-playground-2-operation-page .mdx-content>.after-api-reference{order:1}"},{"filePath":"callback-order.css","content":"#api-playground-2-operation-page .mdx-content>div:has(>.api-section>div>details>summary){display:flex;flex-direction:column;reading-flow:flex-visual}#api-playground-2-operation-page .mdx-content>div>.api-section:has(>div>details>summary){order:1}"}]}
{"page":{"pagePath":"wan-2.7","slug":"/wan-2.7","pageMetadata":{"title":"Wan 2.7","description":"Unified 720p/1080p video API for text, first/last frames, multi-reference with voice binding, and video editing.","openapi":"openapi-wan-2.7.json POST /api/v1/tasks/create_task","href":"/wan-2.7"},"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: \"Unified 720p/1080p video API for text, first/last frames, multi-reference with voice binding, and video editing.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,blockquote:`blockquote`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Card,CodeBlock,CodeGroup,Columns,Heading,Table}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Columns)_missingMdxReference(`Columns`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`parameters-and-input-modes`,children:`Parameters and input modes`}),`\n`,_jsxs(_components.p,{children:[`Send `,_jsx(_components.code,{children:`model`}),` and `,_jsx(_components.code,{children:`input`}),`. Omitting `,_jsx(_components.code,{children:`input.mode`}),` selects `,_jsx(_components.code,{children:`text_to_video`}),`; the other three workflows require an explicit `,_jsx(_components.code,{children:`mode`}),` (never inferred), and fields are validated against the selected mode. See the Body section below for defaults and limits.`]}),`\n`,_jsx(_components.p,{children:`nsfw_check: true screens text/images; false or omitted skips it. Provider moderation still applies.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Request type`}),_jsx(_components.th,{children:`Required input fields`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Text to video`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`prompt`}),` (`,_jsx(_components.code,{children:`mode`}),` optional; defaults to `,_jsx(_components.code,{children:`\"text_to_video\"`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Image to video`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`mode: \"image_to_video\"`}),`, `,_jsx(_components.code,{children:`first_frame_url`}),` (`,_jsx(_components.code,{children:`last_frame_url`}),`, `,_jsx(_components.code,{children:`reference_audio_urls`}),` optional)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Reference to video`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`mode: \"reference_to_video\"`}),`, `,_jsx(_components.code,{children:`prompt`}),`, ≥1 image or video (`,_jsx(_components.code,{children:`first_frame_url`}),`/`,_jsx(_components.code,{children:`reference_image_urls`}),` or `,_jsx(_components.code,{children:`image_with_roles`}),`, and/or `,_jsx(_components.code,{children:`reference_video_urls`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Video edit`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`mode: \"video_edit\"`}),`, `,_jsx(_components.code,{children:`source_video_url`}),` (`,_jsx(_components.code,{children:`prompt`}),`, `,_jsx(_components.code,{children:`reference_image_urls`}),` optional)`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`special-modes`,children:`Special modes`}),`\n`,_jsx(_components.p,{children:`Mode compatibility rules; see Body below for exact defaults, duration bounds, and media limits.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Mode isolation`}),`: Fields belonging to another mode return HTTP 400. Check the Body resolution default before omitting `,_jsx(_components.code,{children:`resolution`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Reference`}),` (`,_jsx(_components.code,{children:`reference_to_video`}),`): `,_jsx(_components.code,{children:`image_with_roles`}),` and flat images are mutually exclusive; omit `,_jsx(_components.code,{children:`aspect_ratio`}),` with a first frame. Reference videos lower the Body duration cap.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Edit`}),` (`,_jsx(_components.code,{children:`video_edit`}),`): Default `,_jsx(_components.code,{children:`duration`}),` matches source length; an explicit duration trims from the start without exceeding source length. Continuation and effects templates are unsupported.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`use-cases`,children:`Use cases`}),`\n`,_jsxs(_components.p,{children:[`Submit to `,_jsx(_components.code,{children:`POST /api/v1/tasks/create_task`}),`. `,_jsx(_components.code,{children:`files.apistable.ai`}),` URLs are live samples; replace `,_jsx(_components.code,{children:`cdn.example.com`}),` links with public HTTPS URLs meeting Body limits.`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Text to video`,numberOfLines:`10`,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:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wan-2.7\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text_to_video\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A paper boat drifting on a calm pond at sunrise, gentle ripples\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"720p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_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:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`})]}),`\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:`Image to video (first + last frame)`,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:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wan-2.7\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"image_to_video\"`}),_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:` \"first_frame_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://files.apistable.ai/examples/wan/v2/inputs/wan27-boat-keyframes-input-0.jpg\"`}),_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:` \"last_frame_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://files.apistable.ai/examples/wan/v2/inputs/wan27-boat-keyframes-input-1.jpg\"`}),_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:`\"Smooth transition as morning mist lifts and warm sunlight brightens the pond.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1080p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`})]}),`\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:`Reference to video (images + video)`,numberOfLines:`16`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wan-2.7\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reference_to_video\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Keep the folded paper boat appearance from the reference image and the calm golden-hour pond setting and visual style from the reference video as gentle ripples spread.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reference_image_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://files.apistable.ai/examples/wan/v2/inputs/wan27-boat-reference-input-0.jpg\"`})}),`\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:` \"reference_video_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://files.apistable.ai/examples/wan/v2/inputs/wan27-boat-snow-edit-input-0.mp4\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"720p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`})]}),`\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:`Reference with character voice`,numberOfLines:`17`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`17`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wan-2.7\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reference_to_video\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Medium close-up of the studio host from the character reference image speaking calmly into the camera in the bound reference voice, warm studio key light, soft background.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image_with_roles\"`}),_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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.example.com/character-host.jpg\"`}),_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:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reference_image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reference_voice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.example.com/host-voice.mp3\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"720p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`})]}),`\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:`Video edit`,numberOfLines:`16`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wan-2.7\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"video_edit\"`}),_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:` \"source_video_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://files.apistable.ai/examples/wan/v2/inputs/wan27-boat-snow-edit-input-0.mp4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reference_image_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://files.apistable.ai/examples/wan/v2/inputs/wan27-boat-reference-input-0.jpg\"`})}),`\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:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Replace the distant background with a softly blurred snowy shoreline while keeping the white paper boat, water ripples, and camera motion unchanged.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"720p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_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:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"audio_setting\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"origin\"`})]}),`\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`,_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[`Track `,_jsx(_components.code,{children:`data.task_id`}),` via `,_jsx(_components.a,{href:`/query-task`,children:`Query task`}),` or `,_jsx(_components.code,{children:`callback_url`}),` (`,_jsx(_components.a,{href:`/webhook-secret`,children:`Webhook security`}),`); see `,_jsx(_components.a,{href:`/create-task`,children:`Create task`}),` for errors and `,_jsx(_components.a,{href:`/quickstart`,children:`Quickstart`}),` for auth. Output URLs last 14 days; tasks unfinished after 24 hours are eligible for timeout cleanup at no charge.`]}),`\n`]}),`\n`,_jsxs(`div`,{className:`after-api-reference`,children:[_jsx(Heading,{level:`2`,id:`playground-and-pricing`,children:`Playground and pricing`}),_jsxs(_components.p,{children:[`Each task generates 1 video at one per-second rate across modes. Text/image modes bill requested output seconds; reference/edit modes bill every input video’s seconds (including repeated URLs) plus measured output seconds (images/audio add none). Failed tasks cost 0. See `,_jsx(_components.a,{href:`/credits`,children:`Available Credits`}),`.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Resolution`}),_jsx(_components.th,{children:`Credits / billable s`}),_jsx(_components.th,{children:`USD / billable s`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`720p`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`17.0`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`$0.085`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`1080p`}),` (default)`]}),_jsx(_components.td,{\"data-numeric\":`true`,children:`28.0`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`$0.140`})]})]})]}),_jsxs(Columns,{cols:2,children:[_jsx(Card,{title:`Try in Playground`,icon:`play`,href:`https://apistable.ai/models/wan-2.7#try`,children:_jsx(_components.p,{children:`Test all four Wan 2.7 modes interactively.`})}),_jsx(Card,{title:`View pricing`,icon:`tag`,href:`https://apistable.ai/models/wan-2.7#pricing`,children:_jsx(_components.p,{children:`Compare 720p and 1080p rates by mode.`})})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Wan 2.7","description":"Unified 720p/1080p video API for text, first/last frames, multi-reference with voice binding, and video editing.","openapi":"openapi-wan-2.7.json POST /api/v1/tasks/create_task","href":"/wan-2.7"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Parameters and input modes","slug":"parameters-and-input-modes","depth":2,"children":[]},{"title":"Special modes","slug":"special-modes","depth":2,"children":[]},{"title":"Use cases","slug":"use-cases","depth":2,"children":[]},{"title":"Playground and pricing","slug":"playground-and-pricing","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/apistable/5b83048c7746b83a/range-label.js"],"openApiReferenceData":{"operation":{"operationId":"wan-2.7","summary":"Wan 2.7","security":["ea20f1dd-7e09-44a3-9f3b-9016d6163600"],"description":"Unified 720p/1080p video API for text, first/last frames, multi-reference with voice binding, and video editing.","requestBody":"e459299f-55ac-4e9d-8a0b-17c835f5d3c1","responses":{"200":"a07b0b9c-466e-4f6f-8aa3-361d6035cbb6","400":"77269b5b-25c1-4a67-8355-ab46f56f0ae4","401":"d559dbf6-e4aa-46db-915a-3ae0bcea4c60","402":"7c213950-9f59-4624-b1ae-6378608fc6ba","403":"5cc34316-dba9-461d-a3a7-0d4171050aee","404":"c3c0956e-9d06-409e-846c-4a7b9fdbde13","409":"ac6042a1-ec12-4ccf-b0e5-02d30cd9410c","410":"9a7d1b1d-e057-48be-bf00-2a2a42d6c7c0","413":"c96a7c8e-1f21-4487-84aa-7c08aac3e0cf","422":"6f790442-f8bd-4999-8929-54ad162382ef","429":"160182a4-9319-4f8e-8b78-455f5c9638fc","503":"babc9946-b80a-47be-8cea-248aa627b9c4"},"callbacks":{"Webhook":"85e26c07-c5d6-4f9c-bac5-f35fddfda891"},"method":"post","type":"path","servers":["37d0ef1c-c776-438c-a739-967d4d72527c"],"path":"/api/v1/tasks/create_task","baseUrlOptions":["https://apistable.ai"],"title":"Wan 2.7","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","input"],"additionalProperties":false,"properties":{"model":{"type":"string","enum":["wan-2.7"],"example":"wan-2.7","description":"The APIstable model ID for this endpoint.","isRequired":true,"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"input":{"oneOf":[{"type":"object","description":"Wan 2.7 input validated by the selected workflow (mode: text_to_video, image_to_video, reference_to_video, or video_edit). Omitting mode selects text_to_video; the other three workflows require mode. When nsfw_check is true, APIstable screens text and images before submission; omitted or false skips APIstable screening. Video and audio are passed to the model provider, which applies its own moderation.","required":["prompt"],"properties":{"prompt":{"type":"string","minLength":1,"maxLength":5000,"description":"Required scene instruction, 1–5,000 characters.","isRequired":true,"uniqueKey":"input.oneOf.0.prompt","typeLabel":"string"},"nsfw_check":{"description":"Run APIstable input screening when true; omitted or false skips it. Never forwarded to the generation provider.","type":"boolean","uniqueKey":"input.oneOf.0.nsfw_check","typeLabel":"boolean"},"negative_prompt":{"description":"Optional undesired content, up to 500 characters.","type":"string","maxLength":500,"uniqueKey":"input.oneOf.0.negative_prompt","typeLabel":"string"},"resolution":{"default":"1080p","description":"Output resolution: 720p (17.0 credits/billable s) or 1080p (default, 28.0 credits/billable s).","type":"string","enum":["720p","1080p"],"uniqueKey":"input.oneOf.0.resolution","typeLabel":"enum\u003cstring>"},"duration":{"default":5,"description":"Output seconds, integer 2–15 (default 5).","type":"integer","minimum":2,"maximum":15,"uniqueKey":"input.oneOf.0.duration","typeLabel":"integer"},"prompt_extend":{"default":true,"description":"Enable automatic prompt expansion (default true).","type":"boolean","uniqueKey":"input.oneOf.0.prompt_extend","typeLabel":"boolean"},"watermark":{"default":false,"description":"Add an AI-generated watermark (default false).","type":"boolean","uniqueKey":"input.oneOf.0.watermark","typeLabel":"boolean"},"seed":{"description":"Optional non-negative integer seed (0–2147483647); omit for random generation.","type":"integer","minimum":0,"maximum":2147483647,"uniqueKey":"input.oneOf.0.seed","typeLabel":"integer"},"output_count":{"default":1,"description":"Fixed at 1 video per request.","type":"number","const":1,"uniqueKey":"input.oneOf.0.output_count","typeLabel":"number"},"official_fallback":{"default":false,"description":"Fallback is unavailable; fixed at false.","type":"boolean","const":false,"uniqueKey":"input.oneOf.0.official_fallback","typeLabel":"boolean"},"mode":{"default":"text_to_video","description":"Explicit workflow mode: text_to_video (default), image_to_video, reference_to_video, or video_edit; never inferred from media.","type":"string","const":"text_to_video","uniqueKey":"input.oneOf.0.mode","typeLabel":"string"},"aspect_ratio":{"description":"Optional output aspect ratio (16:9, 9:16, 1:1, 4:3, 3:4); defaults to 16:9.","type":"string","enum":["16:9","9:16","1:1","4:3","3:4"],"uniqueKey":"input.oneOf.0.aspect_ratio","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"input.oneOf.0","typeLabel":"object"},{"type":"object","description":"Wan 2.7 input validated by the selected workflow (mode: text_to_video, image_to_video, reference_to_video, or video_edit). Omitting mode selects text_to_video; the other three workflows require mode. When nsfw_check is true, APIstable screens text and images before submission; omitted or false skips APIstable screening. Video and audio are passed to the model provider, which applies its own moderation.","required":["mode","first_frame_url"],"properties":{"mode":{"type":"string","const":"image_to_video","description":"Explicit workflow mode: text_to_video (default), image_to_video, reference_to_video, or video_edit; never inferred from media.","isRequired":true,"uniqueKey":"input.oneOf.1.mode","typeLabel":"string"},"first_frame_url":{"type":"string","maxLength":16384,"format":"uri","description":"Required first frame. Public HTTPS image URL (JPEG/PNG/BMP/WebP, no alpha for any format, ≤10 MiB, 240–8000 px, ratio 1:8–8:1). Sets output aspect ratio; omit aspect_ratio.","isRequired":true,"uniqueKey":"input.oneOf.1.first_frame_url","typeLabel":"string\u003curi>"},"nsfw_check":{"description":"Run APIstable input screening when true; omitted or false skips it. Never forwarded to the generation provider.","type":"boolean","uniqueKey":"input.oneOf.1.nsfw_check","typeLabel":"boolean"},"prompt":{"description":"Optional scene instruction, 1–5,000 characters.","type":"string","minLength":1,"maxLength":5000,"uniqueKey":"input.oneOf.1.prompt","typeLabel":"string"},"negative_prompt":{"description":"Optional undesired content, up to 500 characters.","type":"string","maxLength":500,"uniqueKey":"input.oneOf.1.negative_prompt","typeLabel":"string"},"resolution":{"default":"1080p","description":"Output resolution: 720p (17.0 credits/billable s) or 1080p (default, 28.0 credits/billable s).","type":"string","enum":["720p","1080p"],"uniqueKey":"input.oneOf.1.resolution","typeLabel":"enum\u003cstring>"},"duration":{"default":5,"description":"Output seconds, integer 2–15 (default 5).","type":"integer","minimum":2,"maximum":15,"uniqueKey":"input.oneOf.1.duration","typeLabel":"integer"},"prompt_extend":{"default":true,"description":"Enable automatic prompt expansion (default true).","type":"boolean","uniqueKey":"input.oneOf.1.prompt_extend","typeLabel":"boolean"},"watermark":{"default":false,"description":"Add an AI-generated watermark (default false).","type":"boolean","uniqueKey":"input.oneOf.1.watermark","typeLabel":"boolean"},"seed":{"description":"Optional non-negative integer seed (0–2147483647); omit for random generation.","type":"integer","minimum":0,"maximum":2147483647,"uniqueKey":"input.oneOf.1.seed","typeLabel":"integer"},"output_count":{"default":1,"description":"Fixed at 1 video per request.","type":"number","const":1,"uniqueKey":"input.oneOf.1.output_count","typeLabel":"number"},"official_fallback":{"default":false,"description":"Fallback is unavailable; fixed at false.","type":"boolean","const":false,"uniqueKey":"input.oneOf.1.official_fallback","typeLabel":"boolean"},"last_frame_url":{"description":"Optional closing keyframe paired with first_frame_url. Public HTTPS image URL (JPEG/PNG/BMP/WebP, no alpha for any format, ≤10 MiB, 240–8000 px, ratio 1:8–8:1).","type":"string","maxLength":16384,"format":"uri","uniqueKey":"input.oneOf.1.last_frame_url","typeLabel":"string\u003curi>"},"reference_audio_urls":{"description":"Optional custom audio URL (max 1; public HTTPS WAV/MP3, 2–30s, ≤15 MiB).","maxItems":1,"type":"array","items":{"type":"string","maxLength":16384,"format":"uri","uniqueKey":"input.oneOf.1.reference_audio_urls.items.[INDEX]","typeLabel":"string\u003curi>"},"uniqueKey":"input.oneOf.1.reference_audio_urls","typeLabel":"string\u003curi>[]"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"input.oneOf.1","typeLabel":"object"},{"type":"object","description":"Wan 2.7 input validated by the selected workflow (mode: text_to_video, image_to_video, reference_to_video, or video_edit). Omitting mode selects text_to_video; the other three workflows require mode. When nsfw_check is true, APIstable screens text and images before submission; omitted or false skips APIstable screening. Video and audio are passed to the model provider, which applies its own moderation.","required":["prompt","mode"],"properties":{"prompt":{"type":"string","minLength":1,"maxLength":5000,"description":"Required scene instruction, 1–5,000 characters.","isRequired":true,"uniqueKey":"input.oneOf.2.prompt","typeLabel":"string"},"mode":{"type":"string","const":"reference_to_video","description":"Explicit workflow mode: text_to_video (default), image_to_video, reference_to_video, or video_edit; never inferred from media.","isRequired":true,"uniqueKey":"input.oneOf.2.mode","typeLabel":"string"},"nsfw_check":{"description":"Run APIstable input screening when true; omitted or false skips it. Never forwarded to the generation provider.","type":"boolean","uniqueKey":"input.oneOf.2.nsfw_check","typeLabel":"boolean"},"negative_prompt":{"description":"Optional undesired content, up to 500 characters.","type":"string","maxLength":500,"uniqueKey":"input.oneOf.2.negative_prompt","typeLabel":"string"},"resolution":{"default":"1080p","description":"Output resolution: 720p (17.0 credits/billable s) or 1080p (default, 28.0 credits/billable s).","type":"string","enum":["720p","1080p"],"uniqueKey":"input.oneOf.2.resolution","typeLabel":"enum\u003cstring>"},"duration":{"default":5,"description":"Output seconds, integer 2–15 (default 5); adding any reference video caps output at 2–10.","type":"integer","minimum":2,"maximum":15,"uniqueKey":"input.oneOf.2.duration","typeLabel":"integer"},"prompt_extend":{"default":true,"description":"Enable automatic prompt expansion (default true).","type":"boolean","uniqueKey":"input.oneOf.2.prompt_extend","typeLabel":"boolean"},"watermark":{"default":false,"description":"Add an AI-generated watermark (default false).","type":"boolean","uniqueKey":"input.oneOf.2.watermark","typeLabel":"boolean"},"seed":{"description":"Optional non-negative integer seed (0–2147483647); omit for random generation.","type":"integer","minimum":0,"maximum":2147483647,"uniqueKey":"input.oneOf.2.seed","typeLabel":"integer"},"output_count":{"default":1,"description":"Fixed at 1 video per request.","type":"number","const":1,"uniqueKey":"input.oneOf.2.output_count","typeLabel":"number"},"official_fallback":{"default":false,"description":"Fallback is unavailable; fixed at false.","type":"boolean","const":false,"uniqueKey":"input.oneOf.2.official_fallback","typeLabel":"boolean"},"aspect_ratio":{"description":"Optional output aspect ratio (16:9, 9:16, 1:1, 4:3, 3:4); defaults to 16:9. Omit when providing a first frame, which sets output proportions.","type":"string","enum":["16:9","9:16","1:1","4:3","3:4"],"uniqueKey":"input.oneOf.2.aspect_ratio","typeLabel":"enum\u003cstring>"},"first_frame_url":{"description":"Optional first frame. Public HTTPS image URL (JPEG/PNG/BMP/WebP, no alpha for any format, ≤10 MiB, 240–8000 px, ratio 1:8–8:1). Sets output aspect ratio; omit aspect_ratio.","type":"string","maxLength":16384,"format":"uri","uniqueKey":"input.oneOf.2.first_frame_url","typeLabel":"string\u003curi>"},"reference_image_urls":{"description":"Optional reference images. Public HTTPS image URL (JPEG/PNG/BMP/WebP, no alpha for any format, ≤10 MiB, 240–8000 px, ratio 1:8–8:1). At least one reference image or video is required; images + videos ≤5.","maxItems":5,"type":"array","items":{"type":"string","maxLength":16384,"format":"uri","uniqueKey":"input.oneOf.2.reference_image_urls.items.[INDEX]","typeLabel":"string\u003curi>"},"uniqueKey":"input.oneOf.2.reference_image_urls","typeLabel":"string\u003curi>[]"},"reference_video_urls":{"description":"Optional reference videos (up to 5; public HTTPS MP4/MOV, 1–30s each, ≤150s total, ≤100 MiB, 240–4096 px, ratio 1:8–8:1). Images + videos ≤5; every supplied video instance (including repeated URLs) contributes its validated seconds to billing.","maxItems":5,"type":"array","items":{"type":"string","maxLength":16384,"format":"uri","uniqueKey":"input.oneOf.2.reference_video_urls.items.[INDEX]","typeLabel":"string\u003curi>"},"uniqueKey":"input.oneOf.2.reference_video_urls","typeLabel":"string\u003curi>[]"},"image_with_roles":{"description":"Alternative to flat image fields (mutually exclusive) for per-character voice binding (1–30s WAV/MP3, ≤15 MiB). Public HTTPS image URL (JPEG/PNG/BMP/WebP, no alpha for any format, ≤10 MiB, 240–8000 px, ratio 1:8–8:1). At most one first_frame; images + videos ≤5.","minItems":1,"maxItems":5,"type":"array","items":{"type":"object","properties":{"url":{"type":"string","maxLength":16384,"format":"uri","description":"Public HTTPS image URL (JPEG/PNG/BMP/WebP, no alpha for any format, ≤10 MiB, 240–8000 px, ratio 1:8–8:1).","isRequired":true,"uniqueKey":"input.oneOf.2.image_with_roles.items.[INDEX].url","typeLabel":"string\u003curi>"},"role":{"default":"reference_image","description":"Image role: reference_image (default) or first_frame (at most one).","type":"string","enum":["reference_image","first_frame"],"uniqueKey":"input.oneOf.2.image_with_roles.items.[INDEX].role","typeLabel":"enum\u003cstring>"},"reference_voice":{"description":"Optional public HTTPS voice sample URL (WAV/MP3, 1–30s, ≤15 MiB). Passed to the model provider for its own moderation.","type":"string","maxLength":16384,"format":"uri","uniqueKey":"input.oneOf.2.image_with_roles.items.[INDEX].reference_voice","typeLabel":"string\u003curi>"}},"required":["url"],"additionalProperties":false,"uniqueKey":"input.oneOf.2.image_with_roles.items.[INDEX]","typeLabel":"object"},"uniqueKey":"input.oneOf.2.image_with_roles","typeLabel":"object[]"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"input.oneOf.2","typeLabel":"object"},{"type":"object","description":"Wan 2.7 input validated by the selected workflow (mode: text_to_video, image_to_video, reference_to_video, or video_edit). Omitting mode selects text_to_video; the other three workflows require mode. When nsfw_check is true, APIstable screens text and images before submission; omitted or false skips APIstable screening. Video and audio are passed to the model provider, which applies its own moderation.","required":["mode","source_video_url"],"properties":{"mode":{"type":"string","const":"video_edit","description":"Explicit workflow mode: text_to_video (default), image_to_video, reference_to_video, or video_edit; never inferred from media.","isRequired":true,"uniqueKey":"input.oneOf.3.mode","typeLabel":"string"},"source_video_url":{"type":"string","maxLength":16384,"format":"uri","description":"Required source video (public HTTPS MP4/MOV, 2–10s, ≤100 MiB, 240–4096 px, ratio 1:8–8:1). Source seconds plus measured output seconds are billed.","isRequired":true,"uniqueKey":"input.oneOf.3.source_video_url","typeLabel":"string\u003curi>"},"nsfw_check":{"description":"Run APIstable input screening when true; omitted or false skips it. Never forwarded to the generation provider.","type":"boolean","uniqueKey":"input.oneOf.3.nsfw_check","typeLabel":"boolean"},"prompt":{"description":"Optional edit instruction, 1–5,000 characters.","type":"string","minLength":1,"maxLength":5000,"uniqueKey":"input.oneOf.3.prompt","typeLabel":"string"},"negative_prompt":{"description":"Optional undesired content, up to 500 characters.","type":"string","maxLength":500,"uniqueKey":"input.oneOf.3.negative_prompt","typeLabel":"string"},"resolution":{"default":"1080p","description":"Output resolution: 720p (17.0 credits/billable s) or 1080p (default, 28.0 credits/billable s).","type":"string","enum":["720p","1080p"],"uniqueKey":"input.oneOf.3.resolution","typeLabel":"enum\u003cstring>"},"duration":{"oneOf":[{"type":"number","description":"Output seconds: 0 (default) follows source length; 2–10 trims from the start and cannot exceed the source video duration. Edits bill source seconds plus measured output seconds.","default":0,"const":0,"uniqueKey":"input.oneOf.3.duration.oneOf.0","typeLabel":"number"},{"type":"integer","description":"Output seconds: 0 (default) follows source length; 2–10 trims from the start and cannot exceed the source video duration. Edits bill source seconds plus measured output seconds.","default":0,"maximum":10,"minimum":2,"uniqueKey":"input.oneOf.3.duration.oneOf.1","typeLabel":"integer"}],"uniqueKey":"input.oneOf.3.duration","typeLabel":"number | integer"},"prompt_extend":{"default":true,"description":"Enable automatic prompt expansion (default true).","type":"boolean","uniqueKey":"input.oneOf.3.prompt_extend","typeLabel":"boolean"},"watermark":{"default":false,"description":"Add an AI-generated watermark (default false).","type":"boolean","uniqueKey":"input.oneOf.3.watermark","typeLabel":"boolean"},"seed":{"description":"Optional non-negative integer seed (0–2147483647); omit for random generation.","type":"integer","minimum":0,"maximum":2147483647,"uniqueKey":"input.oneOf.3.seed","typeLabel":"integer"},"output_count":{"default":1,"description":"Fixed at 1 video per request.","type":"number","const":1,"uniqueKey":"input.oneOf.3.output_count","typeLabel":"number"},"official_fallback":{"default":false,"description":"Fallback is unavailable; fixed at false.","type":"boolean","const":false,"uniqueKey":"input.oneOf.3.official_fallback","typeLabel":"boolean"},"aspect_ratio":{"description":"Optional output aspect ratio (16:9, 9:16, 1:1, 4:3, 3:4); omitting follows the source video ratio.","type":"string","enum":["16:9","9:16","1:1","4:3","3:4"],"uniqueKey":"input.oneOf.3.aspect_ratio","typeLabel":"enum\u003cstring>"},"reference_image_urls":{"description":"Optional reference images (up to 4). Public HTTPS image URL (JPEG/PNG/BMP/WebP, no alpha for any format, ≤10 MiB, 240–8000 px, ratio 1:8–8:1).","maxItems":4,"type":"array","items":{"type":"string","maxLength":16384,"format":"uri","uniqueKey":"input.oneOf.3.reference_image_urls.items.[INDEX]","typeLabel":"string\u003curi>"},"uniqueKey":"input.oneOf.3.reference_image_urls","typeLabel":"string\u003curi>[]"},"metadata":{"default":{"audio_setting":"auto"},"description":"Video edit audio setting: auto (default) regenerates audio; origin preserves source audio.","type":"object","properties":{"audio_setting":{"default":"auto","description":"auto (default) regenerates audio; origin preserves source audio.","type":"string","enum":["auto","origin"],"uniqueKey":"input.oneOf.3.metadata.audio_setting","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"input.oneOf.3.metadata","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"input.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"input","typeLabel":"object"},"callback_url":{"type":"string","format":"uri","description":"Optional public HTTPS endpoint for signed completion callbacks; no redirects or private IPs.","uniqueKey":"callback_url","typeLabel":"string\u003curi>"}},"uniqueKey":"","typeLabel":"object"},"example":{"model":"wan-2.7","input":{"mode":"text_to_video","prompt":"A paper boat drifting on a calm pond at sunrise, gentle ripples","resolution":"720p","duration":2,"aspect_ratio":"16:9"}},"examples":{"Example":{"title":"Example","value":{"model":"wan-2.7","input":{"mode":"text_to_video","prompt":"A paper boat drifting on a calm pond at sunrise, gentle ripples","resolution":"720p","duration":2,"aspect_ratio":"16:9"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"a07b0b9c-466e-4f6f-8aa3-361d6035cbb6":{"description":"Accepted task. Use `task_id` to [query the task](/query-task), or receive the result at `callback_url`.","content":{"application/json":{"schema":{"type":"object","required":["code","msg","data"],"additionalProperties":false,"properties":{"code":{"const":200,"isRequired":true,"uniqueKey":"code","typeLabel":"any"},"msg":{"const":"success","isRequired":true,"uniqueKey":"msg","typeLabel":"any"},"data":{"type":"object","required":["task_id"],"additionalProperties":false,"properties":{"task_id":{"type":"string","isRequired":true,"uniqueKey":"data.task_id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":200,"msg":"success","data":{"task_id":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"77269b5b-25c1-4a67-8355-ab46f56f0ae4":{"description":"40001 invalid JSON, 40002 invalid input/callback or input rejected by screening, 40003 unsupported parameter.","content":{"application/json":{"schema":{"type":"object","required":["code","msg","data"],"properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"data":{"type":"null","isRequired":true,"uniqueKey":"data","typeLabel":"null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":123,"msg":"\u003cstring>","data":null}}},"exampleType":"generated"}},"exampleType":"generated"},"d559dbf6-e4aa-46db-915a-3ae0bcea4c60":{"description":"Invalid or revoked API key.","content":{"application/json":{"schema":{"type":"object","required":["code","msg","data"],"properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"data":{"type":"null","isRequired":true,"uniqueKey":"data","typeLabel":"null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":123,"msg":"\u003cstring>","data":null}}},"exampleType":"generated"}},"exampleType":"generated"},"7c213950-9f59-4624-b1ae-6378608fc6ba":{"description":"40201: Insufficient credits (live acceptance).","content":{"application/json":{"schema":{"type":"object","required":["code","msg","data"],"properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"data":{"type":"null","isRequired":true,"uniqueKey":"data","typeLabel":"null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":123,"msg":"\u003cstring>","data":null}}},"exampleType":"generated"}},"exampleType":"generated"},"5cc34316-dba9-461d-a3a7-0d4171050aee":{"description":"40301: Website session requests require the APIstable site origin.","content":{"application/json":{"schema":{"type":"object","required":["code","msg","data"],"properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"data":{"type":"null","isRequired":true,"uniqueKey":"data","typeLabel":"null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":123,"msg":"\u003cstring>","data":null}}},"exampleType":"generated"}},"exampleType":"generated"},"c3c0956e-9d06-409e-846c-4a7b9fdbde13":{"description":"40401: Unknown model or resource not found in this account.","content":{"application/json":{"schema":{"type":"object","required":["code","msg","data"],"properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"data":{"type":"null","isRequired":true,"uniqueKey":"data","typeLabel":"null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":123,"msg":"\u003cstring>","data":null}}},"exampleType":"generated"}},"exampleType":"generated"},"ac6042a1-ec12-4ccf-b0e5-02d30cd9410c":{"description":"40901: Resource incompatible with this operation.","content":{"application/json":{"schema":{"type":"object","required":["code","msg","data"],"properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"data":{"type":"null","isRequired":true,"uniqueKey":"data","typeLabel":"null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":123,"msg":"\u003cstring>","data":null}}},"exampleType":"generated"}},"exampleType":"generated"},"9a7d1b1d-e057-48be-bf00-2a2a42d6c7c0":{"description":"41001: Source audio or temporary resource has expired.","content":{"application/json":{"schema":{"type":"object","required":["code","msg","data"],"properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"data":{"type":"null","isRequired":true,"uniqueKey":"data","typeLabel":"null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":123,"msg":"\u003cstring>","data":null}}},"exampleType":"generated"}},"exampleType":"generated"},"c96a7c8e-1f21-4487-84aa-7c08aac3e0cf":{"description":"41301: Request too large.","content":{"application/json":{"schema":{"type":"object","required":["code","msg","data"],"properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"data":{"type":"null","isRequired":true,"uniqueKey":"data","typeLabel":"null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":123,"msg":"\u003cstring>","data":null}}},"exampleType":"generated"}},"exampleType":"generated"},"6f790442-f8bd-4999-8929-54ad162382ef":{"description":"42201: Requested capability combination is not enabled.","content":{"application/json":{"schema":{"type":"object","required":["code","msg","data"],"properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"data":{"type":"null","isRequired":true,"uniqueKey":"data","typeLabel":"null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":123,"msg":"\u003cstring>","data":null}}},"exampleType":"generated"}},"exampleType":"generated"},"160182a4-9319-4f8e-8b78-455f5c9638fc":{"description":"42901: Rate/concurrency limit (live acceptance).","content":{"application/json":{"schema":{"type":"object","required":["code","msg","data"],"properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"data":{"type":"null","isRequired":true,"uniqueKey":"data","typeLabel":"null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":123,"msg":"\u003cstring>","data":null}}},"exampleType":"generated"}},"exampleType":"generated"},"babc9946-b80a-47be-8cea-248aa627b9c4":{"description":"50301: Service unavailable. No live submission or charge.","content":{"application/json":{"schema":{"type":"object","required":["code","msg","data"],"properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"data":{"type":"null","isRequired":true,"uniqueKey":"data","typeLabel":"null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":123,"msg":"\u003cstring>","data":null}}},"exampleType":"generated"}},"exampleType":"generated"}},"callbacks":[{"callbackName":"Webhook","expression":"{$request.body#/callback_url}","method":"post","resolved":{"operation":{"requestBody":"f1a769ea-1ff7-4221-bb59-de42bfbb6ab7","responses":{"2XX":"ca734365-7cdb-4e00-ab41-7a430731efff"},"method":"post","type":"path"},"dependencies":{"parameters":{},"requestBody":{"required":true,"description":"When the task succeeds or fails, APIstable sends a JSON POST to the `callback_url` supplied at creation. Verify the signature and return HTTP 2xx to acknowledge delivery.\n\nRead `data.status` to determine the generation outcome. Successful tasks report `succeeded` with generated video URLs in `data.result.urls`. For a failed task, `data.result` is `null` and `data.message` contains the failure reason.\n\nUse `X-APIstable-Signature`, `X-APIstable-Timestamp`, and `X-APIstable-Event-Id` to verify and deduplicate deliveries. See [Webhook security](/webhook-secret).\n\n**Webhook payload example**\n\n```json\n{\n \"code\": 200,\n \"msg\": \"success\",\n \"data\": {\n \"task_id\": \"c6adbc82-8b9a-4d6f-8b60-1114c8c4aafb\",\n \"model\": \"wan-2.7\",\n \"status\": \"succeeded\",\n \"created_at\": \"2026-11-24T08:30:00.000Z\",\n \"completed_at\": \"2026-11-24T08:31:45.000Z\",\n \"duration\": 105000,\n \"charged_credits\": 85,\n \"message\": \"\",\n \"input\": \"{\\\"mode\\\":\\\"text_to_video\\\",\\\"prompt\\\":\\\"A paper boat drifting on a calm pond at sunrise, gentle ripples\\\",\\\"resolution\\\":\\\"720p\\\",\\\"aspect_ratio\\\":\\\"16:9\\\",\\\"duration\\\":5}\",\n \"result\": {\n \"urls\": [\n \"https://cdn.example.com/generated/wan-video.mp4\"\n ],\n \"items\": [\n {\n \"id\": \"e7aacd19-819a-4747-bbbf-46fb6f2995a5\",\n \"urls\": [\n \"https://cdn.example.com/generated/wan-video.mp4\"\n ],\n \"last_frame_url\": null,\n \"draft\": false,\n \"draft_expires_at\": null\n }\n ]\n }\n }\n}\n```","content":{"application/json":{"schema":{"type":"object","required":["code","msg","data"],"properties":{"code":{"type":"integer","const":200,"isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","const":"success","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"data":{"type":"object","additionalProperties":false,"required":["task_id","model","status","created_at","completed_at","duration","charged_credits","message","input","result"],"properties":{"task_id":{"type":"string","isRequired":true,"uniqueKey":"data.task_id","typeLabel":"string"},"model":{"type":"string","const":"wan-2.7","isRequired":true,"uniqueKey":"data.model","typeLabel":"string"},"status":{"type":"string","enum":["succeeded","failed"],"isRequired":true,"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.created_at","typeLabel":"string\u003cdate-time>"},"completed_at":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.completed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"data.completed_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.completed_at","typeLabel":"string\u003cdate-time> | null"},"duration":{"oneOf":[{"type":"integer","minimum":0,"description":"Total elapsed milliseconds; null while processing.","isRequired":true,"uniqueKey":"data.duration.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"Total elapsed milliseconds; null while processing.","isRequired":true,"uniqueKey":"data.duration.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.duration","typeLabel":"integer | null"},"charged_credits":{"oneOf":[{"type":"number","minimum":0,"description":"Final charged Credits; null until completion.","isRequired":true,"uniqueKey":"data.charged_credits.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"Final charged Credits; null until completion.","isRequired":true,"uniqueKey":"data.charged_credits.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.charged_credits","typeLabel":"number | null"},"message":{"type":"string","description":"Failure reason for failed tasks, or an actionable pending-settlement message while processing; empty on success.","isRequired":true,"uniqueKey":"data.message","typeLabel":"string"},"input":{"type":"string","contentMediaType":"application/json","description":"JSON-serialized accepted model input.","isRequired":true,"uniqueKey":"data.input","typeLabel":"string"},"result":{"oneOf":[{"type":"object","required":["urls","items"],"properties":{"urls":{"type":"array","items":{"type":"string","format":"uri","uniqueKey":"data.result.oneOf.0.urls.items.[INDEX]","typeLabel":"string\u003curi>"},"isRequired":true,"uniqueKey":"data.result.oneOf.0.urls","typeLabel":"string\u003curi>[]"},"items":{"type":"array","maxItems":1,"items":{"type":"object","required":["id","urls","last_frame_url","draft","draft_expires_at"],"properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.result.oneOf.0.\\items.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"urls":{"type":"array","items":{"type":"string","format":"uri","uniqueKey":"data.result.oneOf.0.\\items.items.[INDEX].urls.items.[INDEX]","typeLabel":"string\u003curi>"},"isRequired":true,"uniqueKey":"data.result.oneOf.0.\\items.items.[INDEX].urls","typeLabel":"string\u003curi>[]"},"last_frame_url":{"oneOf":[{"type":"string","format":"uri","isRequired":true,"uniqueKey":"data.result.oneOf.0.\\items.items.[INDEX].last_frame_url.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","isRequired":true,"uniqueKey":"data.result.oneOf.0.\\items.items.[INDEX].last_frame_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.result.oneOf.0.\\items.items.[INDEX].last_frame_url","typeLabel":"string\u003curi> | null"},"draft":{"type":"boolean","isRequired":true,"uniqueKey":"data.result.oneOf.0.\\items.items.[INDEX].draft","typeLabel":"boolean"},"draft_expires_at":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.result.oneOf.0.\\items.items.[INDEX].draft_expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"data.result.oneOf.0.\\items.items.[INDEX].draft_expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.result.oneOf.0.\\items.items.[INDEX].draft_expires_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"data.result.oneOf.0.\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.result.oneOf.0.\\items","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"data.result.oneOf.0","typeLabel":"object"},{"type":"null","required":["urls","items"],"properties":{"urls":{"type":"array","items":{"type":"string","format":"uri"}},"items":{"type":"array","maxItems":1,"items":{"type":"object","required":["id","urls","last_frame_url","draft","draft_expires_at"],"properties":{"id":{"type":"string","format":"uuid"},"urls":{"type":"array","items":{"type":"string","format":"uri"}},"last_frame_url":{"oneOf":[{"type":"string","format":"uri"},{"type":"null","format":"uri"}]},"draft":{"type":"boolean"},"draft_expires_at":{"oneOf":[{"type":"string","format":"date-time"},{"type":"null","format":"date-time"}]}}}}},"isRequired":true,"uniqueKey":"data.result.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.result","typeLabel":"object | null"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":200,"msg":"success","data":{"task_id":"c6adbc82-8b9a-4d6f-8b60-1114c8c4aafb","model":"wan-2.7","status":"succeeded","created_at":"2026-11-24T08:30:00.000Z","completed_at":"2026-11-24T08:31:45.000Z","duration":105000,"charged_credits":85,"message":"","input":"{\"mode\":\"text_to_video\",\"prompt\":\"A paper boat drifting on a calm pond at sunrise, gentle ripples\",\"resolution\":\"720p\",\"aspect_ratio\":\"16:9\",\"duration\":5}","result":{"urls":["https://cdn.example.com/generated/wan-video.mp4"],"items":[{"id":"e7aacd19-819a-4747-bbbf-46fb6f2995a5","urls":["https://cdn.example.com/generated/wan-video.mp4"],"last_frame_url":null,"draft":false,"draft_expires_at":null}]}}},"examples":{"Example":{"title":"Example","value":{"code":200,"msg":"success","data":{"task_id":"c6adbc82-8b9a-4d6f-8b60-1114c8c4aafb","model":"wan-2.7","status":"succeeded","created_at":"2026-11-24T08:30:00.000Z","completed_at":"2026-11-24T08:31:45.000Z","duration":105000,"charged_credits":85,"message":"","input":"{\"mode\":\"text_to_video\",\"prompt\":\"A paper boat drifting on a calm pond at sunrise, gentle ripples\",\"resolution\":\"720p\",\"aspect_ratio\":\"16:9\",\"duration\":5}","result":{"urls":["https://cdn.example.com/generated/wan-video.mp4"],"items":[{"id":"e7aacd19-819a-4747-bbbf-46fb6f2995a5","urls":["https://cdn.example.com/generated/wan-video.mp4"],"last_frame_url":null,"draft":false,"draft_expires_at":null}]}}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"ca734365-7cdb-4e00-ab41-7a430731efff":{"description":"Webhook acknowledged.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{}}}}],"security":{"ea20f1dd-7e09-44a3-9f3b-9016d6163600":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Sign in to APIstable, then create and copy a key from [API Key management](https://apistable.ai/console/keys).\n\nSend this HTTP header with every request:\n\n```http\nAuthorization: Bearer YOUR_API_KEY\n```\n\nReplace YOUR_API_KEY with the key you created.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"37d0ef1c-c776-438c-a739-967d4d72527c":{"url":"https://apistable.ai","description":"API Stable API"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Sign in to APIstable, then create and copy a key from [API Key management](https://apistable.ai/console/keys).\n\nSend this HTTP header with every request:\n\n```http\nAuthorization: Bearer YOUR_API_KEY\n```\n\nReplace YOUR_API_KEY with the key you created.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Sign in to APIstable, then create and copy a key from [API Key management](https://apistable.ai/console/keys).\n\nSend this HTTP header with every request:\n\n```http\nAuthorization: Bearer YOUR_API_KEY\n```\n\nReplace YOUR_API_KEY with the key you created.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi-wan-2.7.json"},"subdomain":"apistable","siteName":"API Stable","title":"Wan 2.7 - API Stable","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/wan-2.7","matchLevel":0},"cn":{"href":"/zh/wan-2.7","matchLevel":1}}},"lastModified":"2026-11-28T04:16:45.696Z","originalFileLocation":"wan-2.7.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=\"Unified 720p/1080p video API for text, first/last frames, multi-reference with voice binding, and video editing.\">\u003cmeta data-mint-head name=\"application-name\" content=\"API Stable\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/apistable/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/apistable/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/apistable/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/apistable/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Wan 2.7 - API Stable\">\u003cmeta data-mint-head property=\"og:description\" content=\"Unified 720p/1080p video API for text, first/last frames, multi-reference with voice binding, and video editing.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"API Stable\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.apistable.ai/wan-2.7\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://apistable.mintlify.site/_mintlify/api/og/v2?division=Alibaba\u0026amp;title=Wan+2.7\u0026amp;description=Unified+720p%2F1080p+video+API+for+text%2C+first%2Flast+frames%2C+multi-reference+with+voice+binding%2C+and+video+editing.\u0026amp;theme=8c1667e11f3a76c1a048851e\u0026amp;signature=51939e52fd013dfac2843a02a2e777d7feddecb3f078dfec7e414d090f1cf1c3\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Wan 2.7 - API Stable\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Unified 720p/1080p video API for text, first/last frames, multi-reference with voice binding, and video editing.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://apistable.mintlify.site/_mintlify/api/og/v2?division=Alibaba\u0026amp;title=Wan+2.7\u0026amp;description=Unified+720p%2F1080p+video+API+for+text%2C+first%2Flast+frames%2C+multi-reference+with+voice+binding%2C+and+video+editing.\u0026amp;theme=8c1667e11f3a76c1a048851e\u0026amp;signature=51939e52fd013dfac2843a02a2e777d7feddecb3f078dfec7e414d090f1cf1c3\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/apistable/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"API Stable\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6256e8\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.apistable.ai/wan-2.7\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/wan-2.7.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.apistable.ai/wan-2.7\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.apistable.ai/zh/wan-2.7\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.apistable.ai/wan-2.7\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.apistable.ai/#organization\",\"name\":\"API Stable\",\"url\":\"https://docs.apistable.ai\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.apistable.ai#website\",\"name\":\"API Stable\",\"url\":\"https://docs.apistable.ai\",\"publisher\":{\"@id\":\"https://docs.apistable.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.apistable.ai/wan-2.7#webpage\",\"url\":\"https://docs.apistable.ai/wan-2.7\",\"name\":\"Wan 2.7\",\"description\":\"Unified 720p/1080p video API for text, first/last frames, multi-reference with voice binding, and video editing.\",\"dateModified\":\"2026-11-28T04:16:45.696Z\",\"isPartOf\":{\"@id\":\"https://docs.apistable.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.apistable.ai/wan-2.7#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.apistable.ai/wan-2.7#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Market\",\"item\":\"https://docs.apistable.ai/qwen-image-3.0\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Video models\",\"item\":\"https://docs.apistable.ai/wan-3.0\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Alibaba\",\"item\":\"https://docs.apistable.ai/wan-3.0\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Wan 2.7\",\"item\":\"https://docs.apistable.ai/wan-2.7\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.apistable.ai/wan-2.7#apireference\",\"headline\":\"Wan 2.7\",\"name\":\"Wan 2.7\",\"description\":\"Unified 720p/1080p video API for text, first/last frames, multi-reference with voice binding, and video editing.\",\"url\":\"https://docs.apistable.ai/wan-2.7\",\"mainEntityOfPage\":{\"@id\":\"https://docs.apistable.ai/wan-2.7#webpage\"},\"dateModified\":\"2026-11-28T04:16:45.696Z\",\"publisher\":{\"@id\":\"https://docs.apistable.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.apistable.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"API Stable\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"API Stable\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/wan-2.7.md","siteName":"API Stable","nav":{"global":null,"languages":[{"language":"en","navbar":{"primary":{"type":"button","label":"Model market","href":"https://apistable.ai/models"}},"groups":[{"group":"Getting started with API Stable","pages":[{"title":"Your first request","href":"/quickstart"},{"title":"Connect with MCP","href":"/mcp-guide"},{"title":"Build with the integration Skill","href":"/skill"}]},{"group":"Common APIs","pages":[{"title":"Overview","href":"/api-directory"},{"title":"List currently available models","openapi":"openapi.json GET /api/v1/models","sidebarTitle":"List models","href":"/api-listModels"},{"title":"Read model capabilities and precise schemas","openapi":"openapi.json GET /api/v1/models/{model_id}","sidebarTitle":"Model details","href":"/api-getModel"},{"title":"Create task","openapi":"openapi.json POST /api/v1/tasks/create_task","href":"/create-task"},{"title":"Query task","openapi":"openapi.json GET /api/v1/tasks/{task_id}","href":"/query-task"},{"title":"Available Credits","openapi":"openapi.json GET /api/v1/balance","href":"/credits"},{"title":"Webhook security","href":"/webhook-secret"},{"title":"LLM integration","openapi":"openapi.json POST /api/v1/chat/completions","href":"/llm"},{"group":"File uploads","pages":[{"title":"Upload a file","openapi":"openapi.json POST /api/v1/files/upload","href":"/file-upload"},{"title":"Upload from URL","openapi":"openapi.json POST /api/v1/files/upload_url","href":"/file-upload-url"},{"title":"Upload Base64","openapi":"openapi.json POST /api/v1/files/upload_base64","href":"/file-upload-base64"}]}]},{"group":"Market","pages":[{"group":"Image models","pages":[{"group":"Alibaba","pages":[{"title":"Qwen Image 3.0","openapi":"openapi-qwen-image-3.0.json POST /api/v1/tasks/create_task","href":"/qwen-image-3.0"},{"title":"Qwen Image 3.0 Pro","openapi":"openapi-qwen-image-3.0-pro.json POST /api/v1/tasks/create_task","href":"/qwen-image-3.0-pro"},{"title":"Qwen Image 2.0","openapi":"openapi-qwen-image-2.0.json POST /api/v1/tasks/create_task","href":"/qwen-image-2.0"},{"title":"Qwen Image 2.0 Pro","openapi":"openapi-qwen-image-2.0-pro.json POST /api/v1/tasks/create_task","href":"/qwen-image-2.0-pro"}]},{"group":"ByteDance","pages":[{"title":"Seedream 5.5 API","openapi":"openapi-seedream-5-5.json POST /api/v1/tasks/create_task","href":"/seedream-5-5"},{"title":"Seedream 5.0 Flash API","openapi":"openapi-seedream-5-0-flash.json POST /api/v1/tasks/create_task","href":"/seedream-5-0-flash"},{"title":"Seedream 5.0 Pro API","openapi":"openapi-seedream-5-0-pro.json POST /api/v1/tasks/create_task","href":"/seedream-5-0-pro"},{"title":"Seedream 5.0 Lite API","openapi":"openapi-seedream-5-0-lite.json POST /api/v1/tasks/create_task","href":"/seedream-5-0-lite"},{"title":"Seedream 4.5 API","openapi":"openapi-seedream-4-5.json POST /api/v1/tasks/create_task","href":"/seedream-4-5"},{"title":"Seedream 4.0 API","openapi":"openapi-seedream-4-0.json POST /api/v1/tasks/create_task","href":"/seedream-4-0"}]},{"group":"Google","pages":[{"title":"Nano Banana API","openapi":"openapi-nano-banana.json POST /api/v1/tasks/create_task","href":"/nano-banana"},{"title":"Nano Banana Pro API","openapi":"openapi-nano-banana-pro.json POST /api/v1/tasks/create_task","href":"/nano-banana-pro"},{"title":"Nano Banana 2 API","openapi":"openapi-nano-banana-2.json POST /api/v1/tasks/create_task","href":"/nano-banana-2"},{"title":"Nano Banana 2 Lite API","openapi":"openapi-nano-banana-2-lite.json POST /api/v1/tasks/create_task","href":"/nano-banana-2-lite"},{"title":"Nano Banana 2.1 API","openapi":"openapi-nano-banana-2.1.json POST /api/v1/tasks/create_task","href":"/nano-banana-2.1"}]},{"group":"OpenAI","pages":[{"title":"GPT Image 2","openapi":"openapi-gpt-image-2.json POST /api/v1/tasks/create_task","href":"/gpt-image-2"},{"title":"GPT Image 2.5","openapi":"openapi-gpt-image-2.5.json POST /api/v1/tasks/create_task","href":"/gpt-image-2.5"},{"title":"GPT Image 2.6","openapi":"openapi-gpt-image-2.6.json POST /api/v1/tasks/create_task","href":"/gpt-image-2.6"},{"title":"GPT Image 2 Official","openapi":"openapi-gpt-image-2-official.json POST /api/v1/tasks/create_task","href":"/gpt-image-2-official"},{"title":"GPT Image 2.5 Official","openapi":"openapi-gpt-image-2.5-official.json POST /api/v1/tasks/create_task","href":"/gpt-image-2.5-official"},{"title":"GPT Image 2.6 Official","openapi":"openapi-gpt-image-2.6-official.json POST /api/v1/tasks/create_task","href":"/gpt-image-2.6-official"}]}]},{"group":"Video models","pages":[{"group":"Alibaba","pages":[{"title":"Wan 3.0 Standard","openapi":"openapi-wan-3.0.json POST /api/v1/tasks/create_task","href":"/wan-3.0"},{"title":"Wan 3.0 Prime","openapi":"openapi-wan-3.0-prime.json POST /api/v1/tasks/create_task","href":"/wan-3.0-prime"},{"title":"Wan 2.6","description":"Generate 720p or 1080p videos (5s, 10s, or 15s) from text or a first-frame image with audio included.","openapi":"openapi-wan-2.6.json POST /api/v1/tasks/create_task","href":"/wan-2.6"},{"title":"Wan 2.7","openapi":"openapi-wan-2.7.json POST /api/v1/tasks/create_task","href":"/wan-2.7"}]},{"group":"ByteDance","pages":[{"title":"Seedance 2.0","description":"Create videos from a prompt, first and last frames, or reference media.","openapi":"openapi-seedance-2.0.json POST /api/v1/tasks/create_task","href":"/seedance-2.0"},{"title":"Seedance 2.0-fast","openapi":"openapi-seedance-2.0-fast.json POST /api/v1/tasks/create_task","href":"/seedance-2.0-fast"},{"title":"Seedance 2.0-mini","openapi":"openapi-seedance-2.0-mini.json POST /api/v1/tasks/create_task","href":"/seedance-2.0-mini"},{"title":"Seedance 2.5","openapi":"openapi-seedance-2.5.json POST /api/v1/tasks/create_task","href":"/seedance-2.5"},{"title":"Seedance 2.5 Flash","openapi":"openapi-seedance-2.5-flash.json POST /api/v1/tasks/create_task","href":"/seedance-2.5-flash"}]},{"group":"Genjutsu","pages":[{"title":"Genjutsu 1.0 / Lite","openapi":"openapi-genjutsu.json POST /api/v1/tasks/create_task","href":"/genjutsu"}]},{"group":"MAGI","pages":[{"title":"MAGI-2","openapi":"openapi-magi-2.json POST /api/v1/tasks/create_task","href":"/magi-2"}]}]},{"group":"Music models","pages":[{"group":"Suno","pages":[{"title":"Suno API: Register audio","openapi":"openapi-suno-upload.json POST /api/v1/tasks/create_task","href":"/suno-upload"},{"title":"Suno API: Generate music","openapi":"openapi-suno-generate.json POST /api/v1/tasks/create_task","href":"/suno-generate"},{"title":"Suno API: Extend music","openapi":"openapi-suno-extend.json POST /api/v1/tasks/create_task","href":"/suno-extend"},{"title":"Suno API: Cover a song","openapi":"openapi-suno-cover.json POST /api/v1/tasks/create_task","href":"/suno-cover"},{"title":"Suno API: Replace a section","openapi":"openapi-suno-replace-section.json POST /api/v1/tasks/create_task","href":"/suno-replace-section"},{"title":"Suno API: Add instrumental backing","openapi":"openapi-suno-add-instrumental.json POST /api/v1/tasks/create_task","href":"/suno-add-instrumental"},{"title":"Suno API: Add vocals","openapi":"openapi-suno-add-vocals.json POST /api/v1/tasks/create_task","href":"/suno-add-vocals"},{"title":"Suno API: Add an instrumental stem","openapi":"openapi-suno-add-stem.json POST /api/v1/tasks/create_task","href":"/suno-add-stem"},{"title":"Suno API: Aligned lyrics","openapi":"openapi-suno-lyrics-timestamps.json POST /api/v1/tasks/create_task","href":"/suno-lyrics-timestamps"},{"title":"Suno API: Export WAV","openapi":"openapi-suno-export-wav.json POST /api/v1/tasks/create_task","href":"/suno-export-wav"},{"title":"Suno API: Download MP3","openapi":"openapi-suno-export-mp3.json POST /api/v1/tasks/create_task","href":"/suno-export-mp3"},{"title":"Suno API: Export MIDI","openapi":"openapi-suno-export-midi.json POST /api/v1/tasks/create_task","href":"/suno-export-midi"},{"title":"Suno API: Vocal remover and stems","openapi":"openapi-suno-separate-vocals.json POST /api/v1/tasks/create_task","href":"/suno-separate-vocals"},{"title":"Suno API: Create Persona from a song","openapi":"openapi-suno-persona-create.json POST /api/v1/tasks/create_task","href":"/suno-persona-create"},{"title":"Voice and Persona workflows","href":"/suno-voice-workflow"},{"title":"Suno API: Upload a Voice sample","openapi":"openapi-suno-voice-upload.json POST /api/v1/tasks/create_task","href":"/suno-voice-upload"},{"title":"Suno API: Verify and create Voice","openapi":"openapi-suno-voice-create.json POST /api/v1/tasks/create_task","href":"/suno-voice-create"},{"title":"Get verification phrase","openapi":"openapi.json POST /api/v1/voices/verification_phrase","href":"/voice-verification-phrase"},{"title":"Check Voice availability","openapi":"openapi.json GET /api/v1/voices/{voice_id}","href":"/voice-availability"}]}]}]}]},{"language":"cn","navbar":{"primary":{"type":"button","label":"模型市场","href":"https://apistable.ai/models"}},"pages":[{"title":"cn","href":"/zh/wan-2.7"}]}]},"basePath":"","title":"Wan 2.7 - API Stable","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CyAr6xD1.js","snippetPresets-BSqedH3o.js","utils-DXfQSZU_.js","style-to-object-BY3JEAdk.js","utils-DiMyLQC-.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-DvPCxzT8.js","conditional-requirements-CFM0id0Q.js","cloneDeep-dx7iM-7h.js","_Uint8Array-DpQIK2Aw.js","isObject-FP1Yky1u.js","ApiExamples-B2sy5qvP.js","usePlaygroundInputsStore-BDc5FJKB.js","shallow-DxZq5uhD.js","isEqual-Bl_IuwU4.js","CodeSnippets-D1UoeS-I.js","CodeSnippet-C87it1Zg.js","use-playground-group-access-DyECiQ2v.js","Page-wigwbDGe.js","api-description-markdown-DHZIfeWZ.js","DynamicMarkdown-D8KwOkxZ.js","SectionHeading-uish4Ed2.js","MethodPill-DR7O5MCP.js","getPastedJson-D2WQib0m.js","Check2Icon-CUuzblYS.js","axios-CsQoIw0U.js","Markdown-K6_WYP3x.js","AssistantPageLink-BrppVW5v.js","dist-OmDnwAnM.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}