##All APIs require Bearer Token authentication##
Get API Key:
Visit API Key Management Page to get your API Key
Add to request header:
Authorization: Bearer YOUR_API_KEYVideo generation model name
"doubao-seedance-1.0-pro-fast"
Prompt describing the video you want to generate, limited to 2000 tokens
2000"A cat playing piano"
Specifies the duration of the generated video (in seconds), defaults to 5 seconds
Note:
2 and 12 secondsduration value; longer durations result in higher costs2 <= x <= 12Video resolution, defaults to 1080p
Note:
480p: Lower resolution, lower pricing720p: Standard definition, standard pricing1080p: High definition, higher pricing, this is the default value480p, 720p, 1080p "1080p"
Video aspect ratio
Text-to-video mode:
16:916:9 (landscape), 9:16 (portrait), 1:1 (square), 4:3, 3:4, 21:9 (ultra-wide)Image-to-video mode (when using image_urls):
adaptivekeep_ratio (keep original aspect ratio) and adaptive (adaptive)"16:9"
Reference image URL list for image-to-video functionality
Note:
1 image10MB.jpg, .jpeg, .png, .webp.png, .jpg)1["https://example.com/image.jpg"]HTTPS callback URL after task completion
Callback timing:
Security restrictions:
2048 charactersCallback mechanism:
10 seconds3 retries after failure (retries occur after 1/2/4 seconds following failure)"https://your-domain.com/webhooks/video-task-completed"
Video generation task created successfully
Task creation timestamp
1761313744
Task ID
"task-unified-1761313744-vux2jw0k"
Actual model name used
"doubao-seedance-1.0-pro-fast"
Specific type of the task
video.generation.task Task progress percentage (0-100)
0 <= x <= 1000
Task status
pending, processing, completed, failed "pending"
Video task detailed information
Output type of the task
text, image, audio, video "video"
Usage and billing information