API Notes
Spark Dance 2.0 Mini accepts multimodal reference inputs through the content array. You can combine text prompts with reference images, a reference video, and reference audio in one request.
When using audio_url, include at least one reference image or reference video. Set generate_audio to true when you want the output video to include generated or synchronized audio.
Authentication
authorization string required
All APIs require authentication via Bearer Token.
Get API Key:
Visit API Key Management Page to get your API Key.
Usage:
Add to request header:
Authorization: Bearer YOUR_API_KEY
Parameters
model string required
Model ID to use for the request.
Value: spark_dance_v2_0_mini
content object[] required
Input content for video generation. Seedance 2.0 series multimodal reference generation supports 0-9 reference images, 0-3 reference videos, 0-3 reference audio inputs, and optional text. Supported combinations include:
Text only
Text (optional) + image
Text (optional) + video
Text (optional) + image + audio
Text (optional) + image + video
Text (optional) + video + audio
Text (optional) + image + video + audio
Audio cannot be used as the only input. When using audio, include at least 1 reference image or reference video.
Direct uploads of reference images or videos containing real human faces are not supported.
Text Information
objectText information input to the model.
type
stringrequiredType of input content.
Value:
texttext
stringrequiredText prompt input to the model, describing the expected generated video. Text is optional for the overall
contentarray. Prompts can describe the camera, subject, scene, audio, sound effects, and final-frame intent.
Image Information
objectImage information input to the model.
type
stringrequiredType of input content.
Value:
image_urlimage_url
objectrequiredImage object input to the model.
url
stringrequiredPublic image URL, Base64 image string, or asset ID.
Image requirements:
- Single image size: less than
30 MB- Request body size: no more than
64 MB- Width and height:
300-6000px- Aspect ratio:
(0.4, 2.5)- Reference image count:
0-9role
stringPosition or purpose of the image.
Options:
reference_image
Video Information
objectVideo input to the model.
type
stringrequiredType of input content.
Value:
video_urlvideo_url
objectrequiredVideo object input to the model.
url
stringrequiredPublic video URL.
Video requirements:
- Formats:
mp4,mov- Single video duration:
2-15seconds- Reference video count:
0-3; total duration no more than15seconds- Single video size: no more than
200 MB- FPS:
24-60role
stringPosition or purpose of the video.
Options:
reference_video
Audio Information
objectAudio input to the model. Audio cannot be used as the only input. Include at least 1 reference image or reference video.
type
stringrequiredType of input content.
Value:
audio_urlaudio_url
objectrequiredAudio object input to the model.
url
stringrequiredPublic audio URL.
Audio requirements:
- Formats:
wav,mp3- Single audio duration:
2-15seconds- Reference audio count:
0-3; total duration no more than15seconds- Single audio size: no more than
15 MBrole
stringPosition or purpose of the audio.
Options:
reference_audio
generate_audio boolean
Controls whether the generated video includes audio.
true: The video output includes generated or synchronized audio based on the prompt and reference audio.
false: The video output is silent.
Default: true
resolution string
Video resolution.
Default: 720p
Options: 480p, 720p
Do not set 1080p or 4k for Mini. 1080p is not supported by Seedance 2.0 Fast/Mini, and 4k is only supported by Seedance 2.0.
ratio string
Aspect ratio of the generated video.
When ratio is set to adaptive, the model automatically selects the aspect ratio according to the generation scenario. For multimodal reference generation, it judges from the prompt intent. If the intent is first-frame generation, video editing, or video extension, it selects the closest aspect ratio from the corresponding image or video; otherwise, it selects the closest aspect ratio from the first uploaded media file, with priority video > image.
Default: adaptive
Options: 16:9, 4:3, 1:1, 3:4, 9:16, 21:9, adaptive
duration integer
Generated video duration in seconds.
Set to an integer in the valid range, or set to -1 to let the model intelligently select an integer duration in the valid range.
Default: 5
Range: [4, 15], or -1 for auto duration
watermark boolean
Whether the generated video contains a watermark.
true: Add watermark
false: Do not add watermark
Default: false
return_last_frame boolean
Whether task query responses can return the last frame of the generated video.
true: Return the generated video’s last frame as a PNG image with the same width and height as the video and no watermark.
false: Do not return the last frame.
Default: false
execution_expires_after integer
Task timeout threshold after submission, in seconds. When the threshold is reached, the task is marked as expired.
Default: 172800
Range: [3600, 259200]
safety_identifier string
Unique identifier for the end user, used to help the platform detect users who may violate usage policies. The value should be stable and unique for each user.
Maximum length: 64 characters
Recommendation: pass a username, user ID, or email hash, and avoid exposing private information.
callback_url string
Callback notification address for task results.
Polling
Since result generation takes time, you need to poll the task status after creating the task.
The initial response only returns information such as the task ID and initial status. The final result must be obtained by polling the task status endpoint using the task ID.
See the examples on the right for polling requests and responses.
Response Format
The task query response returns generated video resources under output[].content[] when status is completed. The usage object contains SeaCloud billing and usage information; upstream token usage is recorded by the system and may be included in the query response for reference.
error object
Error information, only present when status is failed
code
stringError code
message
stringDetailed error message
output array
Generation results, only present when status is completed
content
arrayList of generated resource content
type
stringResource type
Value:
image|videourl
stringProcessed resource URL
jobId
stringRemote task ID
usage object
Usage statistics, only present when status is completed
cost
stringTotal cost in USD
discount
numberDiscount amount
metadata object
Metadata information