Wan 2.6 Video Spicy API guide
Wan 2.6 Video Spicy API: Generate video from text, an image, or reference media with Wan 2.6 Video Spicy. Supply the inputs required by the selected mode and use the declared duration and resolution values.
Model overview
Generate video from text, an image, or reference media with Wan 2.6 Video Spicy. Supply the inputs required by the selected mode and use the declared duration and resolution values.
API integration
| Documentation | Value |
|---|---|
| API invocation identifier | wan-2.6-video-spicy |
| 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.
The positive prompt for the generation.
Required for Image to Video.
The image for generating the output.
Additional requirements depend on other values. See model rules.
One optional reference image URL, used alone or together with one reference video. Reference media cannot be combined with the separate image field.
Item count: minimum 1; maximum 1.
One optional reference video URL, used alone or together with one reference image. Reference media cannot be combined with the separate image field.
Item count: minimum 1; maximum 1.
The resolution of the generated media.
Allowed values: "720p", "1080p".
Studio preset: "720p".
The duration of the generated media in seconds.
Value: minimum 4; maximum 15.
Studio preset: 5.
Sets aspect ratio for this item.
Allowed values: "16:9", "9:16", "1:1", "4:3", "3:4".
Studio preset: "16:9".
Content to avoid in text-to-video or image-to-video. Not supported with reference images or videos.
Sets batch size for this item.
Repeats MuseSpark execution within one logical task. This is separate from a model-native output count.
Value: minimum 1; maximum 4.
Studio preset: 1.
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 |
| Reference to Video | No reference media required |
- When
imageis provided, omitimage_urls; omitvideo_urls. - When
image_urlsis provided, omitimage. - When
video_urlsis provided, omitimage. - When the input mode is Text to Video, omit
image; omitimage_urls; omitvideo_urls. - When the input mode is Reference to Video and
image_urlsis omitted andvideo_urlsis omitted, provideimage_urls; keepimage_urls, when supplied, at least 1 items. - When
imageis omitted andimage_urlsis omitted andvideo_urlsis omitted, use5,10,15forduration. - When
image_urlsis provided, use16:9,9:16foraspect_ratio; omitnegative_prompt. - When
video_urlsis provided, use16:9,9:16foraspect_ratio; omitnegative_prompt.
Parameter meaning
- Supplying an image selects image-to-video behavior. Text-only generation instead relies on the prompt and requested composition.
- Image 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: Describe the intended scene, character actions and motion in prompt. Send prompt directly inside parameters, as shown in the request examples.
- Text to Video: Describe the intended scene, character actions and motion in prompt. Send prompt directly inside parameters, as shown in the request examples.
Dependencies
- Reference to Video: For reference-to-video, the duration range is 4–15 seconds. Follow any narrower field constraints shown above when selecting a value.
- Text to Video: For this text-to-video mode, choose a duration of 5, 10 or 15 seconds, defaulting to 5. Other input modes have separate duration requirements.
- Text to Video: Select a resolution tier and aspect ratio to determine output dimensions. This text-to-video mode supports five aspect ratios at each tier.
Reference media
- Image to Video: Use an HTTPS URL for the starting reference image. The image supplies scene appearance while the prompt describes the requested motion.
- Reference to Video: References guide character appearance, motion or style. Supply HTTPS media URLs using image_urls and video_urls. Use landscape or portrait framing for this reference mode.
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.image_urls,video_urls,aspect_ratio: Keep image_urls and video_urls separate. For reference-to-video, choose landscape or portrait framing; other input modes have separate aspect-ratio support.
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-2.6-video-spicy",
"parameters": {
"duration": 5,
"batch_size": 1,
"resolution": "720p",
"aspect_ratio": "16:9",
"prompt": "A paper city under soft morning light"
}
}'Parameters used: duration · 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-2.6-video-spicy",
"parameters": {
"duration": 5,
"batch_size": 1,
"resolution": "720p",
"aspect_ratio": "16:9",
"prompt": "A paper city under soft morning light",
"image": "YOUR_IMAGE"
}
}'Parameters used: duration · batch_size · resolution · aspect_ratio · prompt · image.
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-2.6-video-spicy",
"parameters": {
"duration": 5,
"batch_size": 1,
"resolution": "720p",
"aspect_ratio": "16:9",
"prompt": "A paper city under soft morning light",
"image_urls": [
"https://example.com/input-1.png"
]
}
}'Parameters used: duration · batch_size · resolution · aspect_ratio · 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.