Theme
Doubao video generation
Submit async video tasks with Doubao models.
http
POST /v1/videosAvailable models
| Model | Description |
|---|---|
| Seedance 1.0 Pro, 480p | |
| Seedance 1.0 Pro, 720p | |
| Seedance 1.0 Pro, 1080p | |
| Seedance 1.5 Pro, 480p | |
| Seedance 1.5 Pro, 720p | |
| Seedance 1.5 Pro, 1080p |
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | Request authentication. Use a Bearer Token, for example: . |
Request body
| Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | Model name. See Available models above. | |
| string | Yes | Prompt. Text description for the video. Supports Chinese and English. | |
| file | No | First-frame image. Upload a single image file for first-frame-to-video. Supports png, jpeg, jpg, webp. | |
| file | No | Last-frame image. Upload a single image file for first-and-last-frame-to-video. Supports png, jpeg, jpg, webp. | |
| string | No | Video aspect ratio. Options: , , , , , , (match uploaded image aspect ratio), (auto-select the best aspect ratio from the uploaded image). | |
| integer | No | Video duration in seconds. Range and . |
Request example
bash
curl -X POST https://octopusx.ai/v1/videos \
-H "Authorization: Bearer <token>" \
-F "model=doubao-seedance-1-5-pro_720p" \
-F "prompt=A cat nodding to music in heavy rain" \
-F "size=4:3" \
-F "seconds=4"bash
curl -X POST https://octopusx.ai/v1/videos \
-H "Authorization: Bearer <token>" \
-F "model=doubao-seedance-1-5-pro_720p" \
-F "prompt=Make the person walk forward and smile" \
-F "size=16:9" \
-F "seconds=5" \
-F "first_frame_image=@/path/to/first-frame.png"bash
curl -X POST https://octopusx.ai/v1/videos \
-H "Authorization: Bearer <token>" \
-F "model=doubao-seedance-1-5-pro_720p" \
-F "prompt=Smooth transition" \
-F "size=9:16" \
-F "seconds=5" \
-F "first_frame_image=@/path/to/first-frame.png" \
-F "last_frame_image=@/path/to/last-frame.png"Response example
json
{
"id": "video_bbfbc1d2-ab22-44ca-b9dd-bc16983acac2",
"object": "video",
"model": "doubao-seedance-1-5-pro_720p",
"status": "queued",
"progress": 0,
"created_at": 1761635478,
"size": "720x720"
}Response fields
| Name | Type | Description |
|---|---|---|
| string | Task ID. | |
| string | Always . | |
| string | Model name. | |
| string | Task status. Options: (queued), (processing), (completed), (failed), (cancelled). | |
| integer | Progress percentage (0-100). | |
| integer | Creation time (Unix timestamp). | |
| string | Video size, for example . |