Create a video generation task
Endpoint: POST https://tkhub.lol/api/v3/contents/generations/tasks
Official docs: https://www.volcengine.com/docs/82379/1520757
Asynchronous: the response contains the task id; poll GET /api/v3/contents/generations/tasks/{task_id} for the result. The request body is forwarded in the official Volcengine Ark format; official parameters not listed here (such as seed, callback_url, return_last_frame, execution_expires_after) are passed through as well.
Models and resolutions
| Model | Resolution | Notes |
|---|---|---|
| doubao-seedance-2-0-260128 | 480p / 720p / 1080p / 4k | Standard |
| doubao-seedance-2-0-fast-260128 | 480p / 720p | Fast; 1080p and 4k not supported |
| doubao-seedance-2-0-mini-260615 | 480p / 720p | Use resolution + ratio only; width, height, fps not supported |
| doubao-seedance-2-5-260628 | 480p / 720p / 1080p / 4k | Draft (draft: true) is generated and billed at 480p; supports omni_reference_task_type and output_format |
| doubao-seedance-2-5-flash-261115 | 480p / 720p | 1080p, 4k and draft not supported; reference limits: 10 images, 5 videos, 5 audio clips (audio-only is allowed); supports output_format |
An unsupported resolution returns 400 and is not charged.
Seedance 2.0 vs 2.5 series
| Item | Seedance 2.0 series (2.0 / fast / mini) | Seedance 2.5 series (2.5 / flash) |
|---|---|---|
duration |
4–15 s (per the official Volcengine Ark docs) | 4–30 s, or -1 to let the model decide (default when omitted) |
omni_reference_task_type |
— | 2.5: auto / reference / edit / extend |
output_format |
— | mp4 (default) or mov |
First-frame / first-last-frame inputs cannot be combined with reference assets (reference_image / reference_video / reference_audio).
Billing
On submit, tokens are estimated as "(reference video seconds + output seconds) × width × height × 24 / 1024" and pre-charged; on completion the charge is adjusted to the upstream usage.total_tokens; failed tasks are fully refunded. Unit prices depend on model, resolution tier and whether a reference video is used; see the model marketplace for prices.
Request body (application/json)
content(array<object>, required): Multimodal input. Include at least one `type=text` prompt; images, videos and audio declare their purpose via `role`. First-frame / first-last-frame inputs cannot be combined with reference assetsmodel(string, required): Model name; the date suffix is required ["doubao-seedance-2-0-260128", "doubao-seedance-2-0-fast-260128", "doubao-seedance-2-0-mini-260615", "doubao-seedance-2-5-260628", "doubao-seedance-2-5-flash-261115"]draft(boolean): Draft mode (faster, slightly lower quality). Not supported by 2.5 flash; 2.5 drafts are generated and billed at 480pduration(integer): Output duration in seconds. Seedance 2.0 series 4–15 (per the official Volcengine Ark docs); Seedance 2.5 series 4–30, or -1 to let the model decide (default when omitted); video edit tasks must use -1. When omitted or -1, 5 seconds are pre-charged and the charge is settled by actual usage on completiongenerate_audio(boolean): Whether to generate a video with audio; must be true when reference_audio is used. Defaults to true for the 2.5 seriesomni_reference_task_type(string): Omni-reference task type (Seedance 2.5) - auto lets the model decide; reference for reference-to-video; edit for video editing; extend for video extension. edit / extend are validated on submit and rejected if parameters do not fit. Use reference when a reference video is given with a fixed ratio and duration; for video editing ratio must be adaptive and duration must be -1 ["auto", "reference", "edit", "extend"]output_format(string): Output format, Seedance 2.5 series only (including flash) ["mp4", "mov"]ratio(string): Aspect ratio. First-frame, first-last-frame, video edit and video extension only accept adaptive. Defaults to adaptive for the 2.5 series ["16:9", "4:3", "1:1", "3:4", "9:16", "21:9", "adaptive"]resolution(string): Resolution, default 720p. See the endpoint description for per-model support ["480p", "720p", "1080p", "4k"]watermark(boolean): Whether to add an "AI-generated" watermark at the bottom-right corner, default false
Request example
{
"content": [
{
"text": "从首帧开始自然地动起来",
"type": "text"
},
{
"image_url": {
"url": "https://example.com/first.jpg"
},
"role": "first_frame",
"type": "image_url"
}
],
"duration": 5,
"model": "doubao-seedance-2-0-fast-260128",
"ratio": "adaptive",
"resolution": "720p"
}