Seedance 2.0¶
Create Video Generation Task¶
Submit a video generation task. Supports text-to-video and image-to-video.
curl -X POST "https://www.vastnum.com/v1/video/generations" \
-H "Authorization: Bearer $WS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedance-2-0-260128",
"prompt": "First-person POV throughout, using the composition of video 1 and audio 1 as background music. A first-person fruit-tea promo for AVG \"WSAI\" Apple Fruit Tea limited edition; first frame is image 1, your hand picks a dew-covered Aksu red apple with a crisp snap; 2-4s: quick cut, your hand drops apple chunks into a shaker with ice and tea base, shakes vigorously, ice and shaking sounds sync to upbeat drums, voiceover: \"Freshly cut, freshly shaken\"; 4-6s: first-person close-up of the finished product, layered fruit tea poured into a clear cup, your hand spreads cream cap on top, applies a pink label, camera moves in on the layered texture; 6-8s: first-person hold-up, you raise the fruit tea from image 2 to the camera (as if handing it to the viewer), label clearly visible, voiceover: \"Take a fresh sip\", final frame freezes on image 2. All background voice unified as female timbre.",
"images": [
"https://ark-project.tos-cn-beijing.volces.com/doc_image/r2v_tea_pic1.jpg",
"https://ark-project.tos-cn-beijing.volces.com/doc_image/r2v_tea_pic2.jpg"
],
"videos" :["https://ark-project.tos-cn-beijing.volces.com/doc_video/r2v_tea_video1.mp4"],
"audios": [
"https://ark-project.tos-cn-beijing.volces.com/doc_audio/r2v_tea_audio1.mp3"
],
"metadata": {
"generate_audio": true,
"resolution" : "480p",
"ratio": "4:3",
"duration": 5,
"watermark": false
}
}'
Returns a task ID. Use the GET endpoint to query task status.
Get Video Generation Task Status¶
Query the status and result of a video generation task.
Task status:
{
"code": "success",
"message": "",
"data": {
"task_id": "task_id",
"action": "generate",
"status": "SUCCESS",
"fail_reason": "",
"submit_time": 1775188030,
"start_time": 1775188043,
"finish_time": 1775188329,
"progress": "100%",
"data": {
"id": "task_id",
"draft": false,
"model": "volcengine/doubao-seedance-2-0-260128",
"ratio": "4:3",
"frames": 0,
"result": {
"id": "cgt-20260403114650-qgcb2",
"seed": 40141,
"draft": false,
"model": "doubao-seedance-2-0-260128",
"ratio": "4:3",
"usage": {
"total_tokens": 99111,
"completion_tokens": 99111
},
"status": "succeeded",
"content": {
"video_url": "video download URL"
},
"duration": 5,
"created_at": 1775188030,
"resolution": "480p",
"updated_at": 1775188324,
"service_tier": "default",
"generate_audio": true,
"framespersecond": 24,
"execution_expires_after": 172800
},
"status": "succeed",
"duration": 5,
"created_at": "2026-04-03T03:47:10Z",
"resolution": "480p",
"updated_at": "2026-04-03T03:52:04Z"
}
}
}
queued: queuedin_progress: in progresscompleted: completedfailed: failed