OpenAI Format

Doubao Video Generation

Use `POST /v1/videos` to call the Doubao model and submit asynchronous video tasks.

POSThttps://zx1.deepwl.net/v1/videos
Request
curl -X POST https://zx1.deepwl.net/v1/videos \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "model=doubao-seedance-1-5-pro_720p" \
  -F "prompt=The cat listens to music and nods its head while rain pours down" \
  -F "size=4:3" \
  -F "seconds=4"
Response
{
  "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"
}

The Doubao channel uses POST /v1/videos to submit tasks, with 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_image field, and the last-frame image is uploaded via the last_frame_image field.
  • After successful submission, the task id and status are returned. Use Task Status Query to poll for the result.

Supported Models

  • 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
  • doubao-seedance-1-5-pro_1080p

Request Headers

Authorizationstring必填

Authentication header. Uses a Bearer token, e.g. Bearer YOUR_API_KEY.

Request Body

Submitted as a multipart/form-data form; file fields accept image files directly.

modelstring必填

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.

promptstring必填

Prompt. The text description for the generated video, supporting both Chinese and English.

first_frame_imagefile

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_imagefile

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.

sizestring

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).

secondsinteger

Video duration (seconds). Valid range: >= 4 and < 12.

Request Examples

Response Examples

Response Fields

idstring

Task ID.

objectstring

Fixed as video.

modelstring

Model name.

statusstring

Task status. Optional values include queued (in queue), processing (in progress), completed (completed), failed (failed), and cancelled (cancelled).

progressinteger

Progress percentage (0-100).

created_atinteger

Creation time (Unix timestamp).

sizestring

Video dimensions, for example 720x720.