Seedance 2.0 Video Generation API
Generate videos with Seedance 2.0 through APIMaster.
Seedance 2.0 video generation
Seedance 2.0 supports text-to-video, image-to-video, and reference-media generation through asynchronous tasks.
Base URL:
https://apimaster.ai/v1ishttps://apimaster.ai/v1. Do not add another/v1to paths.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
model |
string | yes | doubao-seedance-2.0 |
prompt |
string | yes | Video description |
duration |
integer | no | Duration in seconds, default 5 |
resolution |
string | no | 480p, 720p, 1080p, or 4K |
aspect_ratio |
string | no | 16:9, 4:3, 1:1, 3:4, 9:16, 21:9, or adaptive |
image_urls |
string[] | no | Public reference image URLs |
video_urls |
string[] | no | Public reference video URLs |
audio_urls |
string[] | no | Public reference audio URLs |
generate_audio |
boolean | no | Generate audio |
watermark |
boolean | no | Add a watermark |
seed |
integer | no | Reproducibility seed |
output_format |
string | no | mp4 or mov |
Submit a task
curl -s "https://apimaster.ai/v1/videos/generations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedance-2.0",
"prompt": "Sunlight through a forest, smooth forward camera movement",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": false
}'
The response contains a task_id:
{"code":200,"data":[{"status":"submitted","task_id":"task_xxxxxxxx"}]}
Poll and download
curl -s "https://apimaster.ai/v1/videos/task_xxxxxxxx" -H "Authorization: Bearer YOUR_API_KEY"
curl -L "https://apimaster.ai/v1/videos/task_xxxxxxxx/content" -H "Authorization: Bearer YOUR_API_KEY" -o output.mp4
Statuses include submitted, in_progress, completed, and failed. Download promptly after completion.
Billing
Billing is based on generated duration and output resolution. Reference images, videos, or audio may incur additional media charges. Check the current Video/media pricing in the dashboard before submitting. Failed tasks are not charged for generation.
Errors
400 invalid parameters, 401 invalid API key, 402 insufficient balance, 429 rate limited, and 500/502 temporary service errors.
See also: Video generation overview and Seedance 2.5.