Doubao Video Generation
OpenAI Format
Doubao Video Generation
Use POST /v1/videos to call the Doubao model and submit asynchronous video tasks.
POST
Doubao Video Generation
Doubao Video Generation
The Doubao channel usesPOST /v1/videos to submit tasks, with multipart/form-data.
- The route entry is
POST /v1/videos. - Currently submitted as
multipart/form-data. - Supports text-to-video, first-frame-to-video, and first-and-last-frame-to-video.
- The first-frame image is uploaded via the
first_frame_imagefield, and the last-frame image is uploaded via thelast_frame_imagefield. - After successful submission, the task
idandstatusare returned. Use Task Status Query to poll for the result.
Supported Models
doubao-seedance-1-0-pro_480pdoubao-seedance-1-0-pro_720pdoubao-seedance-1-0-pro_1080pdoubao-seedance-1-5-pro_480pdoubao-seedance-1-5-pro_720pdoubao-seedance-1-5-pro_1080p
Method and Path
Request Example
First-Frame Video Generation Example
First-and-Last-Frame Video Generation Example
Response Example
Authentication
Body
Model name. Supported values include
doubao-seedance-1-0-pro_480p, doubao-seedance-1-0-pro_720p, doubao-seedance-1-0-pro_1080p, doubao-seedance-1-5-pro_480p, doubao-seedance-1-5-pro_720p, and doubao-seedance-1-5-pro_1080p.Prompt. The text description for the generated video, supporting both Chinese and English.
First-frame image. Upload a single image file for first-frame-to-video scenarios. Supported image formats include png, jpeg, jpg, and webp.
Last-frame image. Upload a single image file for first-and-last-frame-to-video scenarios. Supported image formats include png, jpeg, jpg, and webp.
Video aspect ratio. Optional values include
16:9, 4:3, 1:1, 3:4, 9:16, 21:9, keep_ratio (keeps the same aspect ratio as the uploaded image), and adaptive (automatically selects the most suitable aspect ratio based on the uploaded image ratio).Video duration (seconds). Valid range:
>= 4 and < 12.Response
Task ID.
Fixed as
video.Model name.
Task status. Optional values include
queued (in queue), processing (in progress), completed (completed), failed (failed), and cancelled (cancelled).Progress percentage (0-100).
Creation time (Unix timestamp).
Video dimensions, for example
720x720.