POST /v1/video/generations, provided for clients that follow theAuthorization: ********************{
"model": "doubao-seedance-2-5-260628",
"prompt": "An astronaut walks slowly across the lunar surface",
"image": "https://example.com/reference-image.jpg",
"seconds": "-1",
"metadata": {
"ratio": "16:9",
"resolution": "480p",
"seed": 42,
"watermark": false,
"camera_fixed": false,
"content": [
{
"type": "text",
"text": "The astronaut stands up and looks back at Earth",
"image_url": {
"url": "https://example.com/reference-photo.jpg"
},
"video_url": {
"url": "https://example.com/input-video-clip.mp4"
},
"audio_url": {
"url": "https://example.com/background-music.mp3"
},
"role": "first_frame"
}
],
"return_last_frame": false,
"generate_audio": false,
"draft": false,
"omni_reference_task_type": "reference",
"output_format": "mp4",
"service_tier": "default",
"callback_url": "https://your-server.com/webhook/video-callback"
}
}curl --location '/v1/videos' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "doubao-seedance-2-5-260628",
"prompt": "An astronaut walks slowly across the lunar surface",
"image": "https://example.com/reference-image.jpg",
"seconds": "-1",
"metadata": {
"ratio": "16:9",
"resolution": "480p",
"seed": 42,
"watermark": false,
"camera_fixed": false,
"content": [
{
"type": "text",
"text": "The astronaut stands up and looks back at Earth",
"image_url": {
"url": "https://example.com/reference-photo.jpg"
},
"video_url": {
"url": "https://example.com/input-video-clip.mp4"
},
"audio_url": {
"url": "https://example.com/background-music.mp3"
},
"role": "first_frame"
}
],
"return_last_frame": false,
"generate_audio": false,
"draft": false,
"omni_reference_task_type": "reference",
"output_format": "mp4",
"service_tier": "default",
"callback_url": "https://your-server.com/webhook/video-callback"
}
}'{
"id": "task_abc123def456",
"task_id": "task_abc123def456",
"object": "video",
"model": "doubao-seedance-2-0-260128",
"status": "queued",
"progress": 100,
"created_at": 1712345678,
"completed_at": 1712345900,
"expires_at": 1712432300,
"metadata": {
"url": "https://cdn.volcengineapi.com/videos/output-abc123.mp4"
},
"error": {
"code": "content_policy_violation",
"message": "The request violated the content safety policy."
},
"remixed_from_video_id": "task_origin789ghi012"
}