Skip to content

Doubao Seedance Video Model

Doubao Seedance API

1. Create Task

post https://api.openai-hk.com/doubao/api/v3/contents/generations/tasks

shell
curl --request POST \
  --url https://api.openai-hk.com/doubao/api/v3/contents/generations/tasks \
  --header 'Authorization: Bearer hk-your-key' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "doubao-seedance-2-0-mini-260615",
    "content": [
        {
            "type": "text",
            "text": "Bright and colorful advertising style, with fruit cookies as the protagonist, including four flavors: strawberry, apple, grape, and orange. The strawberry flavor references @Image1. Cookies and corresponding fruits are arranged in a geometric array with strong sense of order. The overall picture is clean, premium, and rhythmic. The opening features fruits quickly establishing visual focus, referencing the composition of @Video1, with music beats cutting in. Then different flavored cookies are neatly arranged, cutting to close-ups, referencing the dynamics and camera movement of @Video2. Then quickly return to fast-paced editing. The ending features English text 'One bite of crispness, a heart full of delight' with rapid word segmentation switching, accompanied by strong rhythmic text movement and product freeze frame."
        },
        {
            "type": "image_url",
            "image_url": {
                "url": "https://arkdocs.tos-cn-beijing.volces.com/images/video-generation/seedance2.5_reference1.png"
            },
            "role": "reference_image"
        },
        {
            "type": "video_url",
            "video_url": {
                "url": "https://arkdocs.tos-cn-beijing.volces.com/videos/video-generation/seedance2.5_reference2.mp4"
            },
            "role": "reference_video"
        },
        {
            "type": "video_url",
            "video_url": {
                "url": "https://arkdocs.tos-cn-beijing.volces.com/videos/video-generation/seedance2.5_reference3.mp4"
            },
            "role": "reference_video"
        }
    ],
    "generate_audio": true,
    "ratio": "16:9",
    "duration": 15,
    "resolution": "480p",
    "omni_reference_task_type": "reference"
}
'
curl --request POST \
  --url https://api.openai-hk.com/doubao/api/v3/contents/generations/tasks \
  --header 'Authorization: Bearer hk-your-key' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "doubao-seedance-2-0-mini-260615",
    "content": [
        {
            "type": "text",
            "text": "Bright and colorful advertising style, with fruit cookies as the protagonist, including four flavors: strawberry, apple, grape, and orange. The strawberry flavor references @Image1. Cookies and corresponding fruits are arranged in a geometric array with strong sense of order. The overall picture is clean, premium, and rhythmic. The opening features fruits quickly establishing visual focus, referencing the composition of @Video1, with music beats cutting in. Then different flavored cookies are neatly arranged, cutting to close-ups, referencing the dynamics and camera movement of @Video2. Then quickly return to fast-paced editing. The ending features English text 'One bite of crispness, a heart full of delight' with rapid word segmentation switching, accompanied by strong rhythmic text movement and product freeze frame."
        },
        {
            "type": "image_url",
            "image_url": {
                "url": "https://arkdocs.tos-cn-beijing.volces.com/images/video-generation/seedance2.5_reference1.png"
            },
            "role": "reference_image"
        },
        {
            "type": "video_url",
            "video_url": {
                "url": "https://arkdocs.tos-cn-beijing.volces.com/videos/video-generation/seedance2.5_reference2.mp4"
            },
            "role": "reference_video"
        },
        {
            "type": "video_url",
            "video_url": {
                "url": "https://arkdocs.tos-cn-beijing.volces.com/videos/video-generation/seedance2.5_reference3.mp4"
            },
            "role": "reference_video"
        }
    ],
    "generate_audio": true,
    "ratio": "16:9",
    "duration": 15,
    "resolution": "480p",
    "omni_reference_task_type": "reference"
}
'
  • Returns the task_id
json
{
  "id": "task_6esMYNTJqw6h763PeafCp8N92fVY9Jic"
}
{
  "id": "task_6esMYNTJqw6h763PeafCp8N92fVY9Jic"
}

2. Main Request Parameters

FieldRequiredDescription
modelYesModel name from table above
contentYesPrompt + reference materials array, see below
durationNoDuration (seconds)
resolutionNoResolution, e.g., 480p / 720p
ratioNoAspect ratio, e.g., 16:9 (alias aspect_ratio)
generate_audioNoWhether to generate audio

content array elements:

typeMaterial FieldroleDescription
texttextPrompt. Takes the first non-empty text
image_urlimage_url.urlreference_image (default)Reference image, corresponds to @Image1, @Image2
image_urlimage_url.urlfirst_frame / last_frameFirst/last frame image, doesn't count in @ImageN numbering
video_urlvideo_url.urlreference_videoReference video, corresponds to @Video1, @Video2
audio_urlaudio_url.urlreference_audioReference audio

Numbering rule: order is semantic. @Image1 is always the first reference image in the array, @Video1 is the first reference video—numbered separately by role starting from 1. Wrong order won't error, it will just render a video different from your description and still charge you.

3. Query Task

get https://api.openai-hk.com/doubao/api/v3/contents/generations/tasks/{taskId}

shell
curl --request GET \
  --url https://api.openai-hk.com/doubao/api/v3/contents/generations/tasks/task_6esMYNTJqw6h763PeafCp8N92fVY9Jic \
  --header 'Authorization: Bearer hk-your-key' \
  --header 'Content-Type: application/json'
curl --request GET \
  --url https://api.openai-hk.com/doubao/api/v3/contents/generations/tasks/task_6esMYNTJqw6h763PeafCp8N92fVY9Jic \
  --header 'Authorization: Bearer hk-your-key' \
  --header 'Content-Type: application/json'
  • Success response
json
{
  "content": {
    "video_url": "https://ark-acg-cn-beijing.tos-cn-beijing.volces.com/doubao-seedance-2-0-mini/02178996062422000000000000000000000ffffac1446bb35c08d.mp4?X-Tos-Algorithm=TOS4-HMAC-SHA256&X-Tos-Credential=AKLTYWJkZTExNjA1ZDUyNDc3YzhjNTM5OGIyNjBhNDcyOTQ%2F20260921%2Fcn-beijing%2Ftos%2Frequest&X-Tos-Date=20260921T031836Z&X-Tos-Expires=86400&X-Tos-Signature=601f68beb9da380599efea3817ce91612be94beabb085848281fa1ba9047b66c&X-Tos-SignedHeaders=host"
  },
  "created_at": 1789960624,
  "draft": false,
  "duration": 4,
  "execution_expires_after": 172800,
  "framespersecond": 24,
  "generate_audio": true,
  "id": "task_6esMYNTJqw6h763PeafCp8N92fVY9Jic",
  "model": "doubao-seedance-2-0-mini-260615-max",
  "origin_id": "cgt-20260921111703-hsk6d",
  "output_format": "mp4",
  "priority": 0,
  "ratio": "16:9",
  "resolution": "480p",
  "seed": 47550,
  "service_tier": "default",
  "status": "succeeded",
  "updated_at": 1789960725,
  "usage": {
    "completion_tokens": 40594,
    "total_tokens": 40594
  }
}
{
  "content": {
    "video_url": "https://ark-acg-cn-beijing.tos-cn-beijing.volces.com/doubao-seedance-2-0-mini/02178996062422000000000000000000000ffffac1446bb35c08d.mp4?X-Tos-Algorithm=TOS4-HMAC-SHA256&X-Tos-Credential=AKLTYWJkZTExNjA1ZDUyNDc3YzhjNTM5OGIyNjBhNDcyOTQ%2F20260921%2Fcn-beijing%2Ftos%2Frequest&X-Tos-Date=20260921T031836Z&X-Tos-Expires=86400&X-Tos-Signature=601f68beb9da380599efea3817ce91612be94beabb085848281fa1ba9047b66c&X-Tos-SignedHeaders=host"
  },
  "created_at": 1789960624,
  "draft": false,
  "duration": 4,
  "execution_expires_after": 172800,
  "framespersecond": 24,
  "generate_audio": true,
  "id": "task_6esMYNTJqw6h763PeafCp8N92fVY9Jic",
  "model": "doubao-seedance-2-0-mini-260615-max",
  "origin_id": "cgt-20260921111703-hsk6d",
  "output_format": "mp4",
  "priority": 0,
  "ratio": "16:9",
  "resolution": "480p",
  "seed": 47550,
  "service_tier": "default",
  "status": "succeeded",
  "updated_at": 1789960725,
  "usage": {
    "completion_tokens": 40594,
    "total_tokens": 40594
  }
}
  • Error response
json
{
  "error": {
    "code": "invalid_request",
    "message": "Upstream submit failed (400): {\"code\":\"fail_to_fetch_task\",\"message\":\"{\\\"error\\\":{\\\"code\\\":\\\"InvalidParameter\\\",\\\"message\\\":\\\"The parameter `output_format` specified in the request is not valid: the specified model does not support this output_format"
  },
  "id": "task_6CyBKW7HUIRQGEB45CQ8r1a0gQwugHDF",
  "model": "doubao-seedance-2-0-mini-260615-max",
  "status": "failed"
}
{
  "error": {
    "code": "invalid_request",
    "message": "Upstream submit failed (400): {\"code\":\"fail_to_fetch_task\",\"message\":\"{\\\"error\\\":{\\\"code\\\":\\\"InvalidParameter\\\",\\\"message\\\":\\\"The parameter `output_format` specified in the request is not valid: the specified model does not support this output_format"
  },
  "id": "task_6CyBKW7HUIRQGEB45CQ8r1a0gQwugHDF",
  "model": "doubao-seedance-2-0-mini-260615-max",
  "status": "failed"
}

4. Response Parameters

FieldTypeDescription
idstringtask_id
modelstringModel name
content.video_urlstringVideo URL result
usageobjectUsage information for billing
statusstringStatus: queued running succeeded failed
errorstringError message

Billing

  • Billed based on usage.total_tokens
  • Price depends on whether reference video is included, resolution, model
  • Price unit: CNY per million tokens
  • Price calculation formula: usage.total_tokens × price
  • With video unit price < without video, but with video has higher usage.total_tokens, so total price with video is higher
ModelWith VideoWithout Video
doubao-seedance-2-0-mini-260615 all resolutions1423
doubao-seedance-2-0-fast-260128 all resolutions2237
doubao-seedance-2-0-260128 480P/720P2846
doubao-seedance-2-0-260128 1080P3151
doubao-seedance-2-0-260128 4K1626
doubao-seedance-2-5-260628 480P/720P4270
doubao-seedance-2-5-260628 1080P4677