Seedance Video Generation
OpenAI compatible: POST /v1/video/generations. Native path: /api/v3/contents/generations/tasks. Video Generation API
Capability Overview
| Capability | Sub-item | Seedance 2.5 | Seedance 2.0 | Seedance 2.0 fast | Seedance 2.0 mini |
|---|---|---|---|---|---|
| Model ID | — | doubao-seedance-2-5-260628 | doubao-seedance-2-0-260128 | doubao-seedance-2-0-fast-260128 | doubao-seedance-2-0-mini-260615 |
| Text-to-Video | — | ✓ | ✓ | ✓ | ✓ |
| First-Frame-to-Video | — | ✓ | ✓ | ✓ | ✓ |
| Start-End-Frame-to-Video | — | ✓ | ✓ | ✓ | ✓ |
| All-Modal Reference | Image reference | ✓ | ✓ | ✓ | ✓ |
| All-Modal Reference | Video reference | ✓ | ✓ | ✓ | ✓ |
| All-Modal Reference | Audio reference | ✓ | ✗ (must pair with image/video) | ✗ (must pair with image/video) | ✗ (must pair with image/video) |
| All-Modal Reference | Combined reference (image+audio / image+video / video+audio / image+video+audio) | ✓ | ✓ | ✓ | ✓ |
| Video Editing | — | ✓ | ✓ | ✓ | ✓ |
| Video Extension | — | ✓ | ✓ | ✓ | ✓ |
| Audio-Enabled Video Generation | — | ✓ | ✓ | ✓ | ✓ |
| Max Reference Assets | — | 50 (30 images + 10 videos + 10 audio tracks) | 15 (9 images + 3 videos + 3 audio tracks) | 15 (9 images + 3 videos + 3 audio tracks) | 15 (9 images + 3 videos + 3 audio tracks) |
| Web Search Tool | — | ✓ | ✓ | ✓ | ✓ |
| Draft Mode | — | ✓ | ✗ | ✗ | ✗ |
| Return Last Frame | — | ✓ | ✓ | ✓ | ✓ |
| Output Video Specs | Output resolution | 480p (8-bit), 720p (8-bit), 1080p (10-bit) | 480p (8-bit), 720p (8-bit), 1080p (8-bit), 4k (10-bit) | 480p (8-bit), 720p (8-bit) | 480p (8-bit), 720p (8-bit) |
| Output Video Specs | Output aspect ratio | 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, adaptive | 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, adaptive | 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, adaptive | 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, adaptive |
| Output Video Specs | Output duration | 4~30s; -1 (model auto-selects optimal duration within valid range) | 4~15s; -1 (model auto-selects optimal duration within valid range) | 4~15s; -1 (model auto-selects optimal duration within valid range) | 4~15s; -1 (model auto-selects optimal duration within valid range) |
| Output Video Specs | Output video format | mp4, mov | mp4 | mp4 | mp4 |
| Offline Inference | — | ✗ | ✗ | ✗ | ✗ |
Scenarios & Request Examples
Duration 4–30 or -1, resolution 480p/720p/1080p, up to 50 references (30 images + 10 videos + 10 audio tracks).
| Scenario | Body | 2.5 Constraints |
|---|---|---|
| Text-to-Video | prompt only | None |
| First Frame / Start-End Frames | images: first_frame / last_frame | ratio=adaptive |
| Reference-to-Video | reference_* + omni_reference_task_type=auto | Reference videos recommended 4–30s |
| Edit | reference_video + omni_reference_task_type=edit | ratio=adaptive, duration=-1 |
| Extend | reference_video + omni_reference_task_type=extend | ratio=adaptive; duration 4–30 or -1 |
| Draft Preview (Draft) | draft=true | Only supports 480p (auto fallback if omitted), billed at standard 480p rate, valid for 7 days |
| Draft to Final | draft_task_id + resolution | Auto-inherits draft prompt and assets; specify target resolution for final video |
POST https://www.tokenpad.ai/v1/video/generations
Authorization: Bearer sk-your_token
Content-Type: application/json
Text-to-Video
{
"model": "doubao-seedance-2-5",
"prompt": "A kitten in a red coat catching snowflakes in the snow, cinematic macro shot",
"resolution": "720p",
"ratio": "16:9",
"duration": 8,
"generate_audio": true
}
duration can be set to 30 or -1 (model auto-select).
Image-to-Video (First Frame / Start-End Frames)
{
"model": "doubao-seedance-2-5",
"prompt": "The scene transitions from sunrise to a thunderstorm as a girl says cheese to the camera, orbiting camera shot",
"images": [
{"url": "https://example.com/first.png", "role": "first_frame"},
{"url": "https://example.com/last.png", "role": "last_frame"}
],
"ratio": "adaptive",
"duration": 5,
"generate_audio": true
}
For first frame only, omit the last_frame item. Two plain URLs are also inferred as first/last frame.
Reference-to-Video
{
"model": "doubao-seedance-2-5",
"prompt": "Keep character consistent with the reference image, follow motion from the reference video, and match the rhythm of the reference audio",
"images": [{"url": "https://example.com/char.png", "role": "reference_image"}],
"videos": [{"url": "https://example.com/motion.mp4", "role": "reference_video"}],
"audios": [{"url": "https://example.com/bgm.mp3", "role": "reference_audio"}],
"ratio": "16:9",
"duration": 12,
"generate_audio": true,
"omni_reference_task_type": "auto"
}
You may pass only images, only videos, or only audio (2.5). role and type are equivalent.
Video Editing
{
"model": "doubao-seedance-2-5",
"prompt": "Change the coat to red while keeping composition and camera movement unchanged",
"videos": [{"url": "https://example.com/edit.mp4", "role": "reference_video"}],
"ratio": "adaptive",
"duration": -1,
"generate_audio": true,
"omni_reference_task_type": "edit",
"output_format": "mov"
}
Video Extension
{
"model": "doubao-seedance-2-5",
"prompt": "Continue the story as the character walks further down the street",
"videos": [{"url": "https://example.com/clip.mp4", "role": "reference_video"}],
"ratio": "adaptive",
"duration": 11,
"generate_audio": true,
"omni_reference_task_type": "extend",
"output_format": "mov"
}
Draft Preview & Final Rendering (Draft Mode)
Seedance 2.5 supports a two-stage draft mode: first generate a low-cost 480p preview draft, then render the HD final video once satisfied.
Stage 1: Generate 480p Preview Draft
{
"model": "doubao-seedance-2-5",
"prompt": "A kitten in a red coat catching snowflakes in the snow, cinematic macro shot",
"draft": true
}
Tip: With
"draft": true, no resolution is needed—the system submits at480pby default and bills at the standard 480p video rate. Once submitted, you receive a draft task ID valid for 7 days.
Stage 2: Render HD Final Video from Draft
{
"model": "doubao-seedance-2-5",
"draft_task_id": "cgt-xxxxxxxx",
"resolution": "1080p"
}
Tip: Pass
draft_task_id(a draft task ID from within the past 7 days) and your targetresolution(such as720p/1080p). The model automatically inherits the draft's prompt, reference assets, aspect ratio, and seed without re-sending parameters. The system automatically binds same-account channel affinity to ensure 100% success.
omni_reference_task_type: auto (inferred from prompt; fails asynchronously if constraints are violated) / edit / extend (validated upon submission). Prompts must match the type (edit: modify/replace/add/remove; extend: extend/continue/follow-up).
output_format: mp4 (default, wide compatibility) / mov (recommended for editing, extension, and post color grading).
Common optional parameters: web_search, watermark, return_last_frame, seed. If an official content array is provided, the entire payload is passed through—do not stack prompt/images on top.
Response (OpenAI Compatible)
POST /v1/video/generations immediately returns a task ID:
{
"id": "cgt-xxxxxxxx",
"object": "video.generation",
"status": "pending",
"created": 1719441600
}
GET /v1/video/generations/{id} when completed:
{
"id": "cgt-xxxxxxxx",
"object": "video.generation",
"status": "completed",
"created": 1719441600,
"data": [{ "url": "https://example.com/output/seedance.mp4" }],
"usage": {
"prompt_tokens": 128,
"completion_tokens": 256,
"total_tokens": 384
}
}
Retrieve the output video from data[0].url. usage reports OpenAI token usage, or 0 if not returned by upstream. On failure, status is failed with error.
Complete Parameter Dictionary
| Param | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Recommended: doubao-seedance-2-5 |
prompt | string | Yes | Scene / edit / extension intent |
images / image_urls | array | No | URL or {url, role}: first_frame / last_frame / reference_image |
videos | array | No | {url, role: "reference_video"} |
audios | array | No | {url, role: "reference_audio"}; 2.5 supports audio-only |
resolution | string | No | 2.5: 480p / 720p / 1080p |
ratio | string | No | 21:9 16:9 4:3 1:1 3:4 9:16 adaptive |
duration | integer | No | 2.5: 4–30 or -1 (model auto-select) |
omni_reference_task_type | string | No | Multimodal task type: auto / edit / extend. edit/extend validated at submit; auto fails asynchronously if limits are violated |
output_format | string | No | mp4 (default) / mov (recommended for edit & extend) |
generate_audio | boolean | No | Whether to generate audio track |
watermark | boolean | No | Watermark |
return_last_frame | boolean | No | Return the last frame image in the result |
web_search | boolean | No | Web search |
seed | integer | No | Random seed |
camera_fixed | boolean | No | Lock camera |
content | array | No | Official multimodal array; passed through directly if provided |
draft | boolean | No | Draft mode toggle; generates a 480p draft preview when enabled |
draft_task_id | string | No | Draft task ID referenced when converting a draft to a final video (valid for 7 days) |
role and type are equivalent.
2.0 and Earlier
doubao-seedance-2-0 (and fast/mini): replace model in the examples above with the corresponding ID. Duration is 4–15 or -1; resolution reaches 4k (except fast/mini); first-frame mode does not force adaptive; max 15 references (9 images + 3 videos + 3 audio tracks), audio-only not supported.
{
"model": "doubao-seedance-2-0",
"prompt": "A kitten in a red coat catching snowflakes in the snow, cinematic macro shot",
"resolution": "720p",
"ratio": "16:9",
"duration": 5,
"generate_audio": true
}
5. Common Error Codes & Troubleshooting
HTTP codes, error body format, and troubleshooting are maintained in one dedicated page (not duplicated under each example).
👉 Gateway Error Codes & Troubleshooting
Quick reference:
| Code | Meaning |
|---|---|
| 400 | Invalid parameters / content moderation or copyright block |
| 402 | Insufficient account balance (not 429) |
| 429 | RPS/RPM limits or in-flight task cap (low balance) |
| 403 | Token / IP / model permission (balance → 402; content filter → 400) |
200 + status: failed | Async video/long-task business failure on poll |
HTTP status matches call log status_code for traceability by log_id.
Maintenance: update the
error-codesarticle only; this appendix links to it.