Seedance Video Generation

OpenAI compatible: POST /v1/video/generations. Native path: /api/v3/contents/generations/tasks. Video Generation API

Capability Overview

CapabilitySub-itemSeedance 2.5Seedance 2.0Seedance 2.0 fastSeedance 2.0 mini
Model ID—doubao-seedance-2-5-260628doubao-seedance-2-0-260128doubao-seedance-2-0-fast-260128doubao-seedance-2-0-mini-260615
Text-to-Video—✓✓✓✓
First-Frame-to-Video—✓✓✓✓
Start-End-Frame-to-Video—✓✓✓✓
All-Modal ReferenceImage reference✓✓✓✓
All-Modal ReferenceVideo reference✓✓✓✓
All-Modal ReferenceAudio reference✓✗ (must pair with image/video)✗ (must pair with image/video)✗ (must pair with image/video)
All-Modal ReferenceCombined 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 SpecsOutput resolution480p (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 SpecsOutput aspect ratio21:9, 16:9, 4:3, 1:1, 3:4, 9:16, adaptive21:9, 16:9, 4:3, 1:1, 3:4, 9:16, adaptive21:9, 16:9, 4:3, 1:1, 3:4, 9:16, adaptive21:9, 16:9, 4:3, 1:1, 3:4, 9:16, adaptive
Output Video SpecsOutput duration4~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 SpecsOutput video formatmp4, movmp4mp4mp4
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).

ScenarioBody2.5 Constraints
Text-to-Videoprompt onlyNone
First Frame / Start-End Framesimages: first_frame / last_frameratio=adaptive
Reference-to-Videoreference_* + omni_reference_task_type=autoReference videos recommended 4–30s
Editreference_video + omni_reference_task_type=editratio=adaptive, duration=-1
Extendreference_video + omni_reference_task_type=extendratio=adaptive; duration 4–30 or -1
Draft Preview (Draft)draft=trueOnly supports 480p (auto fallback if omitted), billed at standard 480p rate, valid for 7 days
Draft to Finaldraft_task_id + resolutionAuto-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 at 480p by 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 target resolution (such as 720p / 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

ParamTypeRequiredDescription
modelstringYesRecommended: doubao-seedance-2-5
promptstringYesScene / edit / extension intent
images / image_urlsarrayNoURL or {url, role}: first_frame / last_frame / reference_image
videosarrayNo{url, role: "reference_video"}
audiosarrayNo{url, role: "reference_audio"}; 2.5 supports audio-only
resolutionstringNo2.5: 480p / 720p / 1080p
ratiostringNo21:9 16:9 4:3 1:1 3:4 9:16 adaptive
durationintegerNo2.5: 4–30 or -1 (model auto-select)
omni_reference_task_typestringNoMultimodal task type: auto / edit / extend. edit/extend validated at submit; auto fails asynchronously if limits are violated
output_formatstringNomp4 (default) / mov (recommended for edit & extend)
generate_audiobooleanNoWhether to generate audio track
watermarkbooleanNoWatermark
return_last_framebooleanNoReturn the last frame image in the result
web_searchbooleanNoWeb search
seedintegerNoRandom seed
camera_fixedbooleanNoLock camera
contentarrayNoOfficial multimodal array; passed through directly if provided
draftbooleanNoDraft mode toggle; generates a 480p draft preview when enabled
draft_task_idstringNoDraft 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:

CodeMeaning
400Invalid parameters / content moderation or copyright block
402Insufficient account balance (not 429)
429RPS/RPM limits or in-flight task cap (low balance)
403Token / IP / model permission (balance → 402; content filter → 400)
200 + status: failedAsync video/long-task business failure on poll

HTTP status matches call log status_code for traceability by log_id.

Maintenance: update the error-codes article only; this appendix links to it.

Raw Markdown (.md) · llms.txt