POST
/
doubao
/
video
curl -X POST https://api.example.com/doubao/video \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "doubao-video-1",
    "prompt": "A cat playing with a ball of yarn",
    "duration": 5,
    "resolution": "1080p"
  }'
{
  "id": "doubao_task_123456",
  "status": "submitted",
  "created_at": "2024-01-01T00:00:00Z"
}
Create a video generation task using the Doubao (ByteDance) model.

Request Parameters

model
string
required
Model ID. Options: doubao-seedance-1-0-lite, doubao-video-1.
prompt
string
required
Video description prompt.
image_url
string
Reference image URL for image-to-video generation.
duration
integer
Video duration in seconds. Default: 5.
resolution
string
Video resolution. Options: 720p, 1080p.
curl -X POST https://api.example.com/doubao/video \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "doubao-video-1",
    "prompt": "A cat playing with a ball of yarn",
    "duration": 5,
    "resolution": "1080p"
  }'
{
  "id": "doubao_task_123456",
  "status": "submitted",
  "created_at": "2024-01-01T00:00:00Z"
}