MuseSpark
MuseSpark
Models & toolsVideo models

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

DocumentationValue
API invocation identifierwan-3.0-video-prime
IntegrationAsync 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.

promptstringNon-nullConditional

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.

prompt_extendbooleanNon-nullOptional

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.

image_urlsarray<string>Non-nullConditional

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.

video_urlsarray<string>Non-nullOptional

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.

audio_urlsarray<string>Non-nullOptional

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.

audio_urlstringNon-nullOptional

Single reference audio clip; alternative to audio_urls.

Media types: audio/wav, audio/mpeg.

file_urlstringNon-nullOptional

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.

generation_typestringNon-nullConditional

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".

resolutionstringNon-nullOptional

Output resolution; defaults to 1080P when omitted.

Allowed values: "480P", "720P", "1080P".

Studio preset: "1080P".

durationintegerNon-nullOptional

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.

audiobooleanNon-nullOptional

Include an output audio track; enabled by default.

Studio preset: true.

aspect_ratiostringNon-nullOptional

Output video aspect ratio or adaptive sizing.

Allowed values: "adaptive", "16:9", "4:3", "1:1", "3:4", "9:16".

Studio preset: "adaptive".

batch_sizeintegerNon-nullOptional

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.

nsfw_checkbooleanNon-nullOptional

Pre-generation content safety checks are unavailable. Leave this option off or omit it.

Allowed values: false.

Studio preset: false.

watermarkbooleanNon-nullOptional

Whether to add a watermark to the video.

Studio preset: false.

seedintegerNon-nullOptional

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.

ModeRequired inputs
Text to VideoNo reference media required
Image to Videoimage_urls
Reference to VideoNo reference media required
First and Last Framesimage_urls
  • When the input mode is Text to Video, provide prompt.
  • When the input mode is Text to Video, provide prompt; use `` for generation_type; keep prompt, when supplied, at least 1; omit file_url; omit link_url; omit audio_url; omit audio_urls; omit image_urls; omit video_urls.
  • When the input mode is Image to Video, provide image_urls; use frame for generation_type; omit file_url; omit link_url; omit audio_url; omit audio_urls; keep image_urls, when supplied, at least 1 and at most 1 items; omit video_urls.
  • When the input mode is First and Last Frames, provide image_urls; use frame for generation_type; omit file_url; omit link_url; omit audio_url; omit audio_urls; keep image_urls, when supplied, at least 2 and at most 2 items; omit video_urls.
  • When the input mode is Reference to Video and image_urls is omitted and video_urls is omitted and audio_urls is omitted and audio_url is omitted and file_url is omitted and link_url is omitted, provide image_urls; keep image_urls, when supplied, at least 1 items.
  • When the input mode is Reference to Video, use reference for generation_type.
  • When the input mode is Reference to Video and image_urls is provided and video_urls is omitted and audio_urls is omitted and audio_url is omitted and file_url is omitted and link_url is omitted, provide generation_type.
  • When file_url is provided, use `` for link_url.
  • When link_url is provided, use `` for file_url.
  • When audio_url is provided, omit audio_urls.
  • When audio_urls is provided, omit audio_url.
  • When image_urls is omitted and video_urls is omitted and audio_urls is omitted and audio_url is omitted and file_url is omitted and link_url is omitted, provide prompt; use `` for generation_type; keep prompt, when supplied, at least 1.
  • When generation_type is "frame", provide image_urls; omit file_url; omit link_url; omit audio_url; omit audio_urls; keep image_urls, when supplied, at least 1 and at most 2 items; omit video_urls.
  • When generation_type is omitted and image_urls is provided and video_urls is omitted and audio_urls is omitted and audio_url is omitted and file_url is omitted and link_url is omitted, keep image_urls, when supplied, at most 2 items.
  • When file_url is provided, use true for prompt_extend.
  • When link_url is provided, use true for prompt_extend.
  • When the input mode is Text to Video, provide prompt; omit image_urls; omit video_urls.
  • When the input mode is Image to Video, provide image_urls; keep image_urls, when supplied, at least 1 items.
  • When the input mode is First and Last Frames, provide image_urls; keep image_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.

The public input snapshot was exported on 2026-11-09. Current prices and availability are listed in the model center.