Wan 3.0 Video Prime API guide
Wan 3.0 Video Prime API: Generate video from text, image frames, or multimodal references with Wan 3.0 Video Prime. The reference workflow can include media, a document URL, or a webpage URL where the field requirements allow it.
Model overview
Generate video from text, image frames, or multimodal references with Wan 3.0 Video Prime. The reference workflow can include media, a document URL, or a webpage URL where the field requirements allow it.
API integration
| Documentation | Value |
|---|---|
| API invocation identifier | wan-3.0-video-prime |
| Integration | Async task API |
Use this invocation identifier in API requests. Check your authorized model catalog for access. Follow the Quickstart for your first complete call.
Request parameters
Select a mode to highlight its required inputs. Mode selection does not change the API field names.
Studio presets describe the form setup, not guaranteed server defaults. Send preset values explicitly to reproduce them.
Additional requirements depend on other values. See model rules.
Describe the video in at most 20000 characters; required without reference material and optional with reference material.
Length: maximum 20000.
Enable intelligent prompt extension. It can improve short prompts but adds latency. Must be enabled when using a document or web link.
Studio preset: true.
Required for Image to Video, First and Last Frames.
Additional requirements depend on other values. See model rules.
Public image URLs. generation_type selects frame or reference input. Frame and reference families must not be mixed.
Item count: maximum 10.
Media types: image/jpeg, image/png, image/bmp, image/webp.
Up to five reference video clips, each 1-15 seconds and at most 15 seconds combined. Combined source and output duration must not exceed 30 seconds.
Item count: maximum 5.
Media types: video/mp4, video/quicktime.
Up to five reference audio clips, each 1-15 seconds and at most 15 seconds combined.
Item count: maximum 5.
Media types: audio/wav, audio/mpeg.
Single reference audio clip; alternative to audio_urls.
Media types: audio/wav, audio/mpeg.
Public URL of one reference document; cannot be combined with link_url.
Length: minimum 1.
Media types: .docx, .doc, .xlsx, .xls, .pptx, .ppt, .pdf, .txt, .key, .pages, .numbers, .md.
Public URL of one login-free web page; cannot be combined with file_url.
Length: minimum 1.
Additional requirements depend on other values. See model rules.
Set reference when image_urls contains bare reference images; frame images can omit it.
Allowed values: "frame", "reference".
Output resolution; defaults to 1080P when omitted.
Allowed values: "480P", "720P", "1080P".
Studio preset: "1080P".
Output duration in seconds: 2–30, or -1 for model-selected duration.
Allowed values (30)
Allowed values: -1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30.
Value: minimum -1; maximum 30.
Studio preset: 5.
Include an output audio track; enabled by default.
Studio preset: true.
Output video aspect ratio or adaptive sizing.
Allowed values: "adaptive", "16:9", "4:3", "1:1", "3:4", "9:16".
Studio preset: "adaptive".
Standard quantity control field. The allowed range for this item is 1-4.
Repeats MuseSpark execution within one logical task. This is separate from a model-native output count.
Value: minimum 1; maximum 4.
Studio preset: 1.
Pre-generation content safety checks are unavailable. Leave this option off or omit it.
Allowed values: false.
Studio preset: false.
Whether to add a watermark to the video.
Studio preset: false.
Random seed for reproducible generation.
Value: minimum 0; maximum 2147483647.
No parameters match. Clear the search or reset the filters.
Model rules
Input modes
Select a mode by supplying its required public inputs. The mode identifier describes a documentation/form choice; do not send input_mode as a model parameter.
| Mode | Required inputs |
|---|---|
| Text to Video | No reference media required |
| Image to Video | image_urls |
| Reference to Video | No reference media required |
| First and Last Frames | image_urls |
- When the input mode is Text to Video, provide
prompt. - When the input mode is Text to Video, provide
prompt; use `` forgeneration_type; keepprompt, when supplied, at least 1; omitfile_url; omitlink_url; omitaudio_url; omitaudio_urls; omitimage_urls; omitvideo_urls. - When the input mode is Image to Video, provide
image_urls; useframeforgeneration_type; omitfile_url; omitlink_url; omitaudio_url; omitaudio_urls; keepimage_urls, when supplied, at least 1 and at most 1 items; omitvideo_urls. - When the input mode is First and Last Frames, provide
image_urls; useframeforgeneration_type; omitfile_url; omitlink_url; omitaudio_url; omitaudio_urls; keepimage_urls, when supplied, at least 2 and at most 2 items; omitvideo_urls. - When the input mode is Reference to Video and
image_urlsis omitted andvideo_urlsis omitted andaudio_urlsis omitted andaudio_urlis omitted andfile_urlis omitted andlink_urlis omitted, provideimage_urls; keepimage_urls, when supplied, at least 1 items. - When the input mode is Reference to Video, use
referenceforgeneration_type. - When the input mode is Reference to Video and
image_urlsis provided andvideo_urlsis omitted andaudio_urlsis omitted andaudio_urlis omitted andfile_urlis omitted andlink_urlis omitted, providegeneration_type. - When
file_urlis provided, use `` forlink_url. - When
link_urlis provided, use `` forfile_url. - When
audio_urlis provided, omitaudio_urls. - When
audio_urlsis provided, omitaudio_url. - When
image_urlsis omitted andvideo_urlsis omitted andaudio_urlsis omitted andaudio_urlis omitted andfile_urlis omitted andlink_urlis omitted, provideprompt; use `` forgeneration_type; keepprompt, when supplied, at least 1. - When
generation_typeis "frame", provideimage_urls; omitfile_url; omitlink_url; omitaudio_url; omitaudio_urls; keepimage_urls, when supplied, at least 1 and at most 2 items; omitvideo_urls. - When
generation_typeis omitted andimage_urlsis provided andvideo_urlsis omitted andaudio_urlsis omitted andaudio_urlis omitted andfile_urlis omitted andlink_urlis omitted, keepimage_urls, when supplied, at most 2 items. - When
file_urlis provided, usetrueforprompt_extend. - When
link_urlis provided, usetrueforprompt_extend. - When the input mode is Text to Video, provide
prompt; omitimage_urls; omitvideo_urls. - When the input mode is Image to Video, provide
image_urls; keepimage_urls, when supplied, at least 1 items. - When the input mode is First and Last Frames, provide
image_urls; keepimage_urls, when supplied, at least 2 items.
Parameter meaning
- Pass a supported tier explicitly when output size matters. Omitting it can select the highest default tier.
Dependencies
- Reference-video duration and requested output duration share a combined budget. Adaptive output length still has to fit within that budget.
- Reference indices are counted separately for each media type. Align prompt references with the ordering within the relevant array.
batch_size controls repeated MuseSpark executions. Output grouping, sequential image generation, and video shot count are separate concepts.
Request examples
Replace example media URLs and YOUR_... input identifiers with your own valid resources. Examples are checked against the exported item schema; media access and paid execution are separate runtime checks.
Set MUSESPARK_API_KEY and a stable MUSESPARK_REQUEST_ID before submitting. Preserve the request ID for retries of the same request and use a new ID for new work. Python examples use requests; JavaScript examples use Node.js 20 or later. The standalone Quickstart includes task polling and recovery.
Text to Video
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "wan-3.0-video-prime",
"parameters": {
"audio": true,
"duration": 5,
"watermark": false,
"batch_size": 1,
"nsfw_check": false,
"resolution": "1080P",
"aspect_ratio": "adaptive",
"prompt_extend": true,
"prompt": "A paper city under soft morning light"
}
}'Parameters used: audio · duration · watermark · batch_size · nsfw_check · resolution · aspect_ratio · prompt_extend · prompt.
Image to Video
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "wan-3.0-video-prime",
"parameters": {
"audio": true,
"duration": 5,
"watermark": false,
"batch_size": 1,
"nsfw_check": false,
"resolution": "1080P",
"aspect_ratio": "adaptive",
"prompt_extend": true,
"prompt": "A paper city under soft morning light",
"image_urls": [
"https://example.com/input-1.png"
]
}
}'Parameters used: audio · duration · watermark · batch_size · nsfw_check · resolution · aspect_ratio · prompt_extend · prompt · image_urls.
Reference to Video
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "wan-3.0-video-prime",
"parameters": {
"audio": true,
"duration": 5,
"watermark": false,
"batch_size": 1,
"nsfw_check": false,
"resolution": "1080P",
"aspect_ratio": "adaptive",
"prompt_extend": true,
"prompt": "A paper city under soft morning light",
"image_urls": [
"https://example.com/input-1.png"
],
"generation_type": "reference"
}
}'Parameters used: audio · duration · watermark · batch_size · nsfw_check · resolution · aspect_ratio · prompt_extend · prompt · image_urls · generation_type.
First and Last Frames
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "wan-3.0-video-prime",
"parameters": {
"audio": true,
"duration": 5,
"watermark": false,
"batch_size": 1,
"nsfw_check": false,
"resolution": "1080P",
"aspect_ratio": "adaptive",
"prompt_extend": true,
"prompt": "A paper city under soft morning light",
"image_urls": [
"https://example.com/input-1.png",
"https://example.com/input-2.png"
]
}
}'Parameters used: audio · duration · watermark · batch_size · nsfw_check · resolution · aspect_ratio · prompt_extend · prompt · image_urls.
Output
Creation returns a task ID inside data. Poll that task until completion, then save data.result.output_urls and any data.result.batch_results. See the task lifecycle for terminal states, result retention, and errors.
Troubleshooting
For rejected inputs, check the field type, accepted values, and conditional requirements in Request parameters and Model rules. Correct the affected fields before submitting again.
If creation times out, preserve the request identity and any known task ID. Follow Errors, timeouts and retries before submitting again.
Related docs
The public input snapshot was exported on 2026-11-09. Current prices and availability are listed in the model center.