MuseSpark
MuseSpark
Models & toolsVideo models

Wan 3.0 Video Spicy API guide

Wan 3.0 Video Spicy API: Generate video from text, images, or multimodal references with Wan 3.0 Video Spicy. Choose the matching generation_type and use this item's media, duration, resolution, and watermark requirements.

Model overview

Generate video from text, images, or multimodal references with Wan 3.0 Video Spicy. Choose the matching generation_type and use this item's media, duration, resolution, and watermark requirements.

API integration

DocumentationValue
API invocation identifierwan-3.0-video-spicy
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-nullRequired

Additional requirements depend on other values. See model rules.

Text prompt describing the video to generate. Required for every input mode.

image_urlsarray<string>Non-nullConditional

Required for Image to Video.

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.

generation_typestringNon-nullConditional

Additional requirements depend on other values. See model rules.

For image-only input, Frame selects image-guided generation and Reference selects generation with visual references. With video or audio input, omit this option or select Reference; Frame is rejected by the public input-mode conditions.

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, from 4 to 30.

Allowed values (27)

Allowed values: 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 4; maximum 30.

Studio preset: 5.

aspect_ratiostringNon-nullOptional

Output video aspect ratio. Choose one of the five listed concrete ratios.

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

Studio preset: "16:9".

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.

watermarkbooleanNon-nullOptional

Whether to add a watermark to the video.

Studio preset: false.

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
  • When the input mode is Text to Video, provide prompt; 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 audio_url; omit audio_urls; keep image_urls, when supplied, at least 1 and at most 10 items; omit video_urls.
  • 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, provide generation_type.
  • 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, provide image_urls; keep image_urls, when supplied, at least 1 items.
  • When audio_url is provided, omit audio_urls.
  • When audio_urls is provided, omit audio_url.
  • When audio_urls is provided and image_urls is omitted and video_urls is omitted, provide image_urls; keep image_urls, when supplied, at least 1 items.
  • When audio_url is provided and image_urls is omitted and video_urls is omitted, provide image_urls; keep image_urls, when supplied, at least 1 items.
  • When generation_type is "reference" and image_urls is omitted and video_urls is omitted and audio_urls is omitted and audio_url is omitted, provide image_urls; keep image_urls, when supplied, at least 1 items.

Parameter meaning

  • Pass a supported tier explicitly when output size matters. Omitting it can select the highest default tier.
  • Reference to Video: Describe the intended scene, character actions and motion in prompt. Send prompt directly inside parameters, as shown in the request examples.
  • Reference to Video: resolution selects output quality, aspect_ratio selects framing, and duration is the generated clip length in seconds. Set these controls separately inside parameters.
  • Image to Video: Describe the intended scene, character actions and motion in prompt. Send prompt directly inside parameters, as shown in the request examples.
  • Image to Video: resolution selects output quality, aspect_ratio selects framing, and duration is the generated clip length in seconds. Set these controls separately inside parameters.
  • Text to Video: Describe the intended scene, character actions and motion in prompt. Send prompt directly inside parameters, as shown in the request examples.
  • Text to Video: resolution selects output quality, aspect_ratio selects framing, and duration is the generated clip length in seconds. Set these controls separately inside parameters.

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.

Reference media

  • Reference to Video: The guidance in this section covers still-image references. Additional video and audio reference behavior is not verified here.
  • Image to Video: Send reference URLs in the declared image_urls array, directly inside parameters.

Integration notes

Use the following field formats and values in MuseSpark requests.

  • prompt, resolution: Send the flat public fields inside parameters, as shown in the request examples. Create and poll tasks using the MuseSpark task endpoints.

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-spicy",
  "parameters": {
    "duration": 5,
    "watermark": false,
    "batch_size": 1,
    "resolution": "1080P",
    "aspect_ratio": "16:9",
    "prompt": "A paper city under soft morning light"
  }
}'

Parameters used: duration · watermark · batch_size · resolution · aspect_ratio · 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-spicy",
  "parameters": {
    "duration": 5,
    "watermark": false,
    "batch_size": 1,
    "resolution": "1080P",
    "aspect_ratio": "16:9",
    "prompt": "A paper city under soft morning light",
    "image_urls": [
      "https://example.com/input-1.png"
    ]
  }
}'

Parameters used: duration · watermark · batch_size · resolution · aspect_ratio · 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-spicy",
  "parameters": {
    "duration": 5,
    "watermark": false,
    "batch_size": 1,
    "resolution": "1080P",
    "aspect_ratio": "16:9",
    "prompt": "A paper city under soft morning light",
    "image_urls": [
      "https://example.com/input-1.png"
    ],
    "generation_type": "reference"
  }
}'

Parameters used: duration · watermark · batch_size · resolution · aspect_ratio · prompt · image_urls · generation_type.

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.