MuseSpark
MuseSpark
Models & toolsVideo models

Seedance 2.0 API guide

Seedance 2.0 API: Generate video from text, frame images, or multimodal references with Seedance 2.0. Keep first/last frames and image, video, and audio references in their respective fields, and use the matching input mode.

Model overview

Generate video from text, frame images, or multimodal references with Seedance 2.0. Keep first/last frames and image, video, and audio references in their respective fields, and use the matching input mode.

API integration

DocumentationValue
API invocation identifierseedance-2.0
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 desired video generation.

Length: minimum 1; maximum 4000.

first_frame_imagestringNon-nullConditional

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/*.

last_frame_imagestringNon-nullConditional

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/*.

image_urlsarray<string>Non-nullConditional

Required for Image References.

Additional requirements depend on other values. See model rules.

Up to 9 reference image URLs. Accepts public URLs and approved asset:// URLs.

Item count: maximum 9.

video_urlsarray<string>Non-nullConditional

Additional requirements depend on other values. See model rules.

Up to 3 reference video URLs or approved asset:// URLs. Combined duration must be greater than 1.8 and less than 15.2 seconds; reference resolution must be 480p to 720p. Cannot be combined with first/last-frame controls.

Item count: maximum 3.

audio_urlsarray<string>Non-nullOptional

Up to 3 reference audio URLs or approved asset:// URLs, with combined duration at most 15 seconds. Requires reference images or videos; cannot be combined with first/last-frame controls.

Item count: maximum 3.

resolutionstringNon-nullOptional

Output video resolution.

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

Studio preset: "720p".

durationintegerNon-nullOptional

Video duration in seconds. Supported range is 4 to 15.

Value: minimum 4; maximum 15.

Studio preset: 5.

generate_audiobooleanNon-nullOptional

Enable or disable audio generation for the output video.

Studio preset: true.

aspect_ratiostringNon-nullOptional

Output video aspect ratio. Adaptive lets the model choose a suitable ratio.

Allowed values: "16:9", "9:16", "1:1", "4:3", "3:4", "21:9", "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.

return_last_framebooleanNon-nullOptional

Return the last frame of the generated video.

Studio preset: false.

nsfw_checkbooleanNon-nullOptional

Safety-check preference. Availability, scope, and timing depend on the selected provider.

seedintegerNon-nullOptional

Random seed for reproducible generation.

Value: minimum 0; maximum 2147483647.

toolsarray<object>Non-nullOptional

Tool objects to apply during generation.

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 Videoprompt
Image Referencesprompt, image_urls
Video and Audio Referencesprompt
First and Last Framesprompt, first_frame_image, last_frame_image
First Frameprompt, first_frame_image
  • When the input mode is Text to Video, provide prompt.
  • 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 the input mode is Text to Video, provide prompt; omit audio_urls; omit image_urls; omit video_urls.
  • When the input mode is Image References, provide image_urls; omit audio_urls; keep image_urls, when supplied, at least 1 items; omit video_urls.
  • When the input mode is Video and Audio References and video_urls is omitted and audio_urls is omitted, provide video_urls; keep video_urls, when supplied, at least 1 items.
  • When image_urls is omitted and video_urls is omitted and audio_urls is omitted, provide prompt; keep prompt, when supplied, at least 1.
  • When first_frame_image is omitted, omit first_frame_image.
  • When last_frame_image is omitted, omit last_frame_image.
  • When first_frame_image is provided, provide prompt; omit audio_urls; omit image_urls; omit video_urls.
  • When last_frame_image is provided, provide prompt, first_frame_image; omit audio_urls; omit image_urls; omit video_urls.
  • When the input mode is First and Last Frames, provide prompt, first_frame_image; omit audio_urls; omit image_urls; omit video_urls.
  • When first_frame_image is provided or last_frame_image is provided, use false for generate_audio.
  • When the input mode is First and Last Frames, provide prompt, first_frame_image, last_frame_image; omit audio_urls; omit image_urls; omit video_urls.
  • When the input mode is First Frame, provide prompt, first_frame_image; omit audio_urls; omit image_urls; omit video_urls; omit last_frame_image.
  • When the input mode is Text to Video, omit last_frame_image; omit first_frame_image.
  • When the input mode is Image References, omit last_frame_image; omit first_frame_image.
  • When the input mode is Video and Audio References, omit last_frame_image; omit first_frame_image.

Parameter meaning

  • Resolution support differs between standard, Fast, and Mini variants. Use the enum for the exact item being called.
  • Reference order distinguishes first and last frames. More general media-reference generation is a separate mode with different inputs.
  • For motion generation, specify action, camera movement, and style concisely. Excessively long prompts can weaken attention to individual details.

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.0",
  "parameters": {
    "duration": 5,
    "batch_size": 1,
    "resolution": "720p",
    "generate_audio": true,
    "return_last_frame": false,
    "prompt": "A paper city under soft morning light"
  }
}'

Parameters used: duration · batch_size · resolution · generate_audio · return_last_frame · prompt.

Image 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.0",
  "parameters": {
    "duration": 5,
    "batch_size": 1,
    "resolution": "720p",
    "generate_audio": true,
    "return_last_frame": false,
    "prompt": "A paper city under soft morning light",
    "image_urls": [
      "https://example.com/input-1.png"
    ]
  }
}'

Parameters used: duration · batch_size · resolution · generate_audio · return_last_frame · prompt · image_urls.

Video and 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.0",
  "parameters": {
    "duration": 5,
    "batch_size": 1,
    "resolution": "720p",
    "generate_audio": true,
    "return_last_frame": false,
    "prompt": "A paper city under soft morning light",
    "video_urls": [
      "https://example.com/input-1.mp4"
    ]
  }
}'

Parameters used: duration · batch_size · resolution · generate_audio · return_last_frame · prompt · video_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.0",
  "parameters": {
    "duration": 5,
    "batch_size": 1,
    "resolution": "720p",
    "generate_audio": false,
    "return_last_frame": false,
    "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 · batch_size · resolution · generate_audio · return_last_frame · 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.0",
  "parameters": {
    "duration": 5,
    "batch_size": 1,
    "resolution": "720p",
    "generate_audio": false,
    "return_last_frame": false,
    "prompt": "A paper city under soft morning light",
    "first_frame_image": "YOUR_FIRST_FRAME_IMAGE"
  }
}'

Parameters used: duration · batch_size · resolution · generate_audio · return_last_frame · prompt · first_frame_image.

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.