Seedance 2.5 API guide
Seedance 2.5 API: Generate video from text, frames, or multimodal references with Seedance 2.5. The omni-reference task setting distinguishes reference use from editing; follow the input combinations and duration constraints below.
Model overview
Generate video from text, frames, or multimodal references with Seedance 2.5. The omni-reference task setting distinguishes reference use from editing; follow the input combinations and duration constraints below.
API integration
| Documentation | Value |
|---|---|
| API invocation identifier | seedance-2-5 |
| 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.
Required nonblank generation prompt.
Length: minimum 1.
Required for First and Last Frames, First Frame.
Additional requirements depend on other values. See model rules.
Optional first-frame image URL. Requires a prompt and Generate Audio turned off. Use separately from reference images, video, or audio.
Length: minimum 1.
Media types: image/*.
Required for First and Last Frames.
Additional requirements depend on other values. See model rules.
Optional last-frame image URL. Requires a first-frame image, a prompt, and Generate Audio turned off. Use separately from reference images, video, or audio.
Length: minimum 1.
Media types: image/*.
Required for Image to Video.
Reference image URLs or asset:// references, up to 30 images.
Item count: maximum 30.
Required for Video to Video.
Additional requirements depend on other values. See model rules.
Reference video URLs or asset:// references, up to 10 clips with a combined duration of at most 30 seconds.
Item count: maximum 10.
Required for Audio References.
Additional requirements depend on other values. See model rules.
Reference audio URLs or asset:// references, up to 10 clips with a combined duration of at most 30 seconds. Audio-only reference input is supported.
Item count: maximum 10.
Select the task type for omni-reference generation. Use the documented value for the selected reference inputs.
Allowed values: "reference", "edit".
Studio preset: "reference".
Sets resolution for this item.
Allowed values: "480p", "720p", "1080p".
Studio preset: "720p".
Output video duration in seconds. Supports 4-30 seconds or -1 for automatic duration; omitted defaults to 5 seconds.
Allowed values (28)
Allowed values: -1, 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: maximum 30.
Studio preset: 5.
Whether to generate audio in the output video.
Studio preset: true.
Output aspect ratio. Supports 16:9, 4:3, 1:1, 3:4, 9:16, 21:9, or adaptive. Video edit and first/last-frame tasks require adaptive.
Allowed values: "16:9", "4:3", "1:1", "3:4", "9:16", "21:9", "adaptive".
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.
Whether to return the generated video tail frame. Defaults to false.
Studio preset: false.
Sets nsfw check for this item.
Studio preset: false.
Whether to add the AI-generated watermark. Defaults to false.
Studio preset: false.
Random seed for generation.
Value: minimum 0; maximum 2147483647.
Optional generation tools.
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 | prompt |
| Image to Video | prompt, image_urls |
| Video to Video | prompt, video_urls |
| Audio References | prompt, audio_urls |
| First and Last Frames | prompt, first_frame_image, last_frame_image |
| First Frame | prompt, first_frame_image |
- When
omni_reference_task_typeis "edit", providevideo_urls; use-1forduration; useadaptiveforaspect_ratio; keepvideo_urls, when supplied, at least 1 items. - When the input mode is Text to Video, omit
audio_urls; omitimage_urls; omitvideo_urls. - When the input mode is Image to Video, omit
audio_urls; omitvideo_urls. - When the input mode is Audio References, provide
audio_urls; omitvideo_urls. - When the input mode is Image to Video, keep
image_urls, when supplied, at least 1 items. - When the input mode is Video to Video, keep
video_urls, when supplied, at least 1 items. - When the input mode is Audio References, keep
audio_urls, when supplied, at least 1 items. - When
first_frame_imageis omitted, omitfirst_frame_image. - When
last_frame_imageis omitted, omitlast_frame_image. - When
first_frame_imageis provided, provideprompt; omitaudio_urls; omitimage_urls; omitvideo_urls. - When
last_frame_imageis provided, provideprompt,first_frame_image; omitaudio_urls; omitimage_urls; omitvideo_urls. - When the input mode is First and Last Frames, provide
prompt,first_frame_image; omitaudio_urls; omitimage_urls; omitvideo_urls. - When
first_frame_imageis provided, useadaptiveforaspect_ratio. - When
last_frame_imageis provided, useadaptiveforaspect_ratio. - When
first_frame_imageis provided orlast_frame_imageis provided, usefalseforgenerate_audio. - When the input mode is First and Last Frames, provide
prompt,first_frame_image,last_frame_image; omitaudio_urls; omitimage_urls; omitvideo_urls. - When the input mode is First Frame, provide
prompt,first_frame_image; omitaudio_urls; omitimage_urls; omitvideo_urls; omitlast_frame_image. - When the input mode is Text to Video, omit
last_frame_image; omitfirst_frame_image. - When the input mode is Image to Video, omit
last_frame_image; omitfirst_frame_image. - When the input mode is Video to Video, omit
last_frame_image; omitfirst_frame_image. - When the input mode is Audio References, omit
last_frame_image; omitfirst_frame_image.
Parameter meaning
- The adaptive-duration sentinel has a different meaning from an omitted duration. Use the declared value and check the resulting duration in the output.
Unsupported parameters
draft, draft_task_id are unavailable for this item. Adding these fields to a request does not enable the corresponding features.
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": "seedance-2-5",
"parameters": {
"duration": 5,
"watermark": false,
"batch_size": 1,
"nsfw_check": false,
"resolution": "720p",
"aspect_ratio": "adaptive",
"generate_audio": true,
"return_last_frame": false,
"omni_reference_task_type": "reference",
"prompt": "A paper city under soft morning light"
}
}'Parameters used: duration · watermark · batch_size · nsfw_check · resolution · aspect_ratio · generate_audio · return_last_frame · omni_reference_task_type · 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": "seedance-2-5",
"parameters": {
"duration": 5,
"watermark": false,
"batch_size": 1,
"nsfw_check": false,
"resolution": "720p",
"aspect_ratio": "adaptive",
"generate_audio": true,
"return_last_frame": false,
"omni_reference_task_type": "reference",
"prompt": "A paper city under soft morning light",
"image_urls": [
"https://example.com/input-1.png"
]
}
}'Parameters used: duration · watermark · batch_size · nsfw_check · resolution · aspect_ratio · generate_audio · return_last_frame · omni_reference_task_type · prompt · image_urls.
Audio References
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": "seedance-2-5",
"parameters": {
"duration": 5,
"watermark": false,
"batch_size": 1,
"nsfw_check": false,
"resolution": "720p",
"aspect_ratio": "adaptive",
"generate_audio": true,
"return_last_frame": false,
"omni_reference_task_type": "reference",
"prompt": "A paper city under soft morning light",
"audio_urls": [
"https://example.com/input-1.mp3"
]
}
}'Parameters used: duration · watermark · batch_size · nsfw_check · resolution · aspect_ratio · generate_audio · return_last_frame · omni_reference_task_type · prompt · audio_urls.
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": "seedance-2-5",
"parameters": {
"duration": 5,
"watermark": false,
"batch_size": 1,
"nsfw_check": false,
"resolution": "720p",
"aspect_ratio": "adaptive",
"generate_audio": false,
"return_last_frame": false,
"omni_reference_task_type": "reference",
"prompt": "A paper city under soft morning light",
"first_frame_image": "YOUR_FIRST_FRAME_IMAGE",
"last_frame_image": "YOUR_LAST_FRAME_IMAGE"
}
}'Parameters used: duration · watermark · batch_size · nsfw_check · resolution · aspect_ratio · generate_audio · return_last_frame · omni_reference_task_type · prompt · first_frame_image · last_frame_image.
First Frame
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": "seedance-2-5",
"parameters": {
"duration": 5,
"watermark": false,
"batch_size": 1,
"nsfw_check": false,
"resolution": "720p",
"aspect_ratio": "adaptive",
"generate_audio": false,
"return_last_frame": false,
"omni_reference_task_type": "reference",
"prompt": "A paper city under soft morning light",
"first_frame_image": "YOUR_FIRST_FRAME_IMAGE"
}
}'Parameters used: duration · watermark · batch_size · nsfw_check · resolution · aspect_ratio · generate_audio · return_last_frame · omni_reference_task_type · prompt · first_frame_image.
Edit a source 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": "seedance-2-5",
"parameters": {
"duration": -1,
"watermark": false,
"batch_size": 1,
"nsfw_check": false,
"resolution": "720p",
"aspect_ratio": "adaptive",
"generate_audio": true,
"return_last_frame": false,
"omni_reference_task_type": "edit",
"prompt": "Change the city buildings to folded paper. Keep the camera movement and all other details the same.",
"video_urls": [
"https://example.com/source-video.mp4"
]
}
}'Parameters used: duration · watermark · batch_size · nsfw_check · resolution · aspect_ratio · generate_audio · return_last_frame · omni_reference_task_type · prompt · video_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.