# Seedance 2.0 Video Generation API Documentation

Call the **BeeRoute video generation API** to generate video content. This document is dedicated to the **Volcengine Ark Seedance 2.0** series of video generation models, supporting **text-to-video, image-to-video (first frame), image-to-video (first and last frames), and multimodal reference-to-video** (with free combinations of reference images, reference videos, and reference audio).

**BeeRoute is fully compatible with the official Seedance 2.0/2.5 request paths and input/output parameters.**

### Submit a task:
- Official path: `https://ark.cn-beijing.volces.com/api/v3/contents/generations/tasks`
- BeeRoute path: `https://beeroute.ai/api/v3/contents/generations/tasks`

### Query a task:
- Official path: `https://ark.cn-beijing.volces.com/api/v3/contents/generations/tasks/{id}`
- BeeRoute path: `https://beeroute.ai/api/v3/contents/generations/tasks/{id}`

[View the official API documentation](https://docs.volcengine.com/docs/82379/1521309?lang=zh)

[View the official usage tutorial](https://docs.volcengine.com/docs/82379/2607688?lang=zh)

#### [Download the MD file of this document](https://beeroute.ai/doc/coding/seedance2.0-video.md)

---

## 1. Supported Models

### Model List

| Model Name | Description | Applicable Scenarios |
| :--- | :--- | :--- |
| `doubao-seedance-2-0-260128` | Seedance 2.0 standard edition, supports 480p/720p/1080p | Text-to-video, image-to-video, multimodal reference-to-video |
| `doubao-seedance-2-0-fast-260128` | Seedance 2.0 fast edition, supports 480p/720p | Text-to-video, image-to-video, multimodal reference-to-video (faster, no 1080p support) |
| `doubao-seedance-2-5-260628` | Seedance 2.5, supports 480p/720p/1080p | Next-generation multimodal video creation model, now at an industrial-grade stage of "long-form narrative, strong reference, precise editing, multilingual". |

---

#### Seedance Video Generation Pricing

The system bills by **seconds × resolution**, with an automatic discount when video material input is included.

**Base price per second (without video input):**

| Model | 480P (USD/sec) | 720P (USD/sec) | 1080P (USD/sec) |
| :--- | :--- | :--- | :--- |
| **doubao-seedance-2-0-260128** | $0.0684 | $0.1471 | $0.3666 |
| **doubao-seedance-2-0-fast-260128** | $0.0547 | $0.1176 | Not supported |
| **doubao-seedance-2-5-260628** | $0.0986 | $0.2221 | $0.5536 |

**Automatic discount when video material input is included:**

| Model | Discount factor | 720P discounted (USD/sec) |
| :--- | :--- | :--- |
| **doubao-seedance-2-0-260128** | × 0.609 | $0.0896 |
| **doubao-seedance-2-0-fast-260128** | × 0.595 | $0.07 |
| **doubao-seedance-2-5-260628** | × 0.6 | $0.1332 |

**Cost calculation examples (16:9 aspect ratio):**

| Scenario | Model | Resolution | Duration | Unit price | Cost |
| :--- | :--- | :--- | :--- | :--- | :--- |
| Text-to-video | 2.0 | 720P | 5 sec | $0.1471/s | **$0.7353** |
| Text-to-video | 2.0-fast | 720P | 5 sec | $0.1176/s | **$0.5882** |
| Image-to-video | 2.0 | 480P | 10 sec | $0.0684/s | **$0.6838** |
| Reference-to-video (with video) | 2.0 | 720P | 5 sec | $0.1471 × 0.609/s | **$0.4478** |
| Text-to-video | 2.0 | 1080P | 5 sec | $0.3666/s | **$1.8331** |

> **Billing notes**:
> - Billed by the **actual generated video duration (seconds) × resolution multiplier**; the `duration` and `resolution` parameters directly affect the cost.
> - When **video material input is included** (the request `content` contains a `video_url` type), the system automatically multiplies by the discount factor.
> - Setting `duration: -1` lets the model choose the duration automatically; if not specified, billing defaults to 5 seconds, so set it carefully.
> - Actual billing is subject to the group configuration in the admin console.

---

## 2. Generating Videos

Because video generation tasks take a relatively long time (typically 1–5 minutes), the API uses asynchronous calls. The whole flow consists of two core steps: **"create task → poll for result"**.

### API Endpoint

```
POST /v1/videos
```

### Request Headers

| Parameter | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| Authorization | string | Yes | User authentication token (`Bearer sk-xxxx`) |
| Content-Type | string | Yes | **application/json** |

### Request Parameters (JSON Body)

| Parameter | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **model** | string | Yes | Model name. Valid values:<br>`doubao-seedance-2-5-260628` (latest)<br>`doubao-seedance-2-0-260128`<br>`doubao-seedance-2-0-fast-260128` |
| **content** | array | Yes | Array of multimodal information fed into the model. See [content parameter descriptions](#content-parameter-descriptions) below. |
| **resolution** | string | No | Video resolution, default `720p`. Options: `480p` / `720p` / `1080p` (the fast model does not support 1080p). |
| **ratio** | string | No | Video aspect ratio, default `adaptive` (auto-adapt). Options: `16:9` / `4:3` / `1:1` / `3:4` / `9:16` / `21:9` / `adaptive`. |
| **duration** | integer | No | Video duration (seconds), default `5`. Range `[4, 15]`, or set to `-1` to let the model choose automatically.<br>⚠️ **Directly affects the cost; billed per second.** |
| **generate_audio** | boolean | No | Whether to generate a video with audio (automatically generating voice, sound effects, and background music), default `true`. |
| **seed** | integer | No | Random seed, value `[-1, 2^32-1]`, default `-1` (random). The same seed can reproduce similar results. |
| **watermark** | boolean | No | Whether to add a watermark, default `false`. |
| **return_last_frame** | boolean | No | Whether to return the last-frame image of the video, default `false`. Can be used to chain continuous video generation. |

#### content parameter descriptions

`content` is an array; each element is distinguished by its `type` field. The following types can be freely combined:

**Supported combinations:**
- Text
- Text (optional) + image
- Text (optional) + video
- Text (optional) + image + audio
- Text (optional) + image + video
- Text (optional) + video + audio
- Text (optional) + image + video + audio

---

##### Text information

| Parameter | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | string | Yes | Fixed as `text` |
| **text** | string | Yes | Text prompt describing the video you expect. Supports Chinese / English / Japanese / Spanish / Portuguese / Indonesian.<br>Recommended: no more than 500 characters in Chinese, no more than 1000 words in English. |

```json
{
  "type": "text",
  "text": "A kitten running under the moonlight"
}
```

##### Image information

| Parameter | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | string | Yes | Fixed as `image_url` |
| **image_url.url** | string | Yes | Image URL or Base64 encoding (format: `data:image/png;base64,{base64}`) |
| **role** | string | Conditional | Image usage:<br>`first_frame`: first-frame image<br>`last_frame`: last-frame image (required in the first-and-last-frame scenario)<br>`reference_image`: reference image (required in the multimodal reference scenario)<br>Can be omitted in the first-frame scenario, defaulting to the first frame. |

```json
{
  "type": "image_url",
  "image_url": { "url": "https://example.com/image.jpg" },
  "role": "first_frame"
}
```

**Image limits:**
- Format: jpeg / png / webp / bmp / tiff / gif
- Aspect ratio (width/height): (0.4, 2.5)
- Width and height (px): (300, 6000)
- Single image size: ≤ 30 MB, request body ≤ 64 MB
- Count: 1 for first frame, 2 for first-and-last frames, 1–9 for reference images

##### Video information

| Parameter | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | string | Yes | Fixed as `video_url` |
| **video_url.url** | string | Yes | The public URL of the video |
| **role** | string | Conditional | Fixed as `reference_video`: reference video |

```json
{
  "type": "video_url",
  "video_url": { "url": "https://example.com/video.mp4" },
  "role": "reference_video"
}
```

**Video limits:**
- Format: mp4 / mov
- Resolution: 480p / 720p / 1080p
- Single duration: [2, 15] seconds, up to 3, total duration ≤ 15s
- Single size: ≤ 50 MB
- Frame rate: [24, 60] FPS

##### Audio information

| Parameter | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | string | Yes | Fixed as `audio_url` |
| **audio_url.url** | string | Yes | Audio URL or Base64 encoding (format: `data:audio/wav;base64,{base64}`) |
| **role** | string | Conditional | Fixed as `reference_audio`: reference audio |

```json
{
  "type": "audio_url",
  "audio_url": { "url": "https://example.com/audio.mp3" },
  "role": "reference_audio"
}
```

**Audio limits:**
- Format: wav / mp3
- Single duration: [2, 15] seconds, up to 3 segments, total duration ≤ 15s
- Single size: ≤ 15 MB
- Note: audio cannot be input alone; it must include at least 1 reference video or image

---

### Request Examples

#### 1. Text-to-video

```bash
curl --location --request POST 'https://beeroute.ai/v1/videos' \
--header 'Authorization: Bearer sk-xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "doubao-seedance-2-0-260128",
    "content": [
        {
            "type": "text",
            "text": "A kitten running under the moonlight, its fur blowing in the wind, moonlight spilling over the grass"
        }
    ],
    "resolution": "720p",
    "ratio": "16:9",
    "duration": 5,
    "generate_audio": true
}'
```

#### 2. Image-to-video (first frame)

```bash
curl --location --request POST 'https://beeroute.ai/v1/videos' \
--header 'Authorization: Bearer sk-xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "doubao-seedance-2-0-260128",
    "content": [
        {
            "type": "text",
            "text": "Bring the person in the image to life, with their hair blowing in the breeze"
        },
        {
            "type": "image_url",
            "image_url": {
                "url": "https://example.com/first_frame.jpg"
            },
            "role": "first_frame"
        }
    ],
    "resolution": "720p",
    "duration": 5,
    "generate_audio": false
}'
```

#### 3. Image-to-video (first and last frames)

```bash
curl --location --request POST 'https://beeroute.ai/v1/videos' \
--header 'Authorization: Bearer sk-xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "doubao-seedance-2-0-260128",
    "content": [
        {
            "type": "text",
            "text": "The camera rises gradually from eye level, with a soft lighting transition"
        },
        {
            "type": "image_url",
            "image_url": {
                "url": "https://example.com/first_frame.png"
            },
            "role": "first_frame"
        },
        {
            "type": "image_url",
            "image_url": {
                "url": "https://example.com/last_frame.png"
            },
            "role": "last_frame"
        }
    ],
    "resolution": "720p",
    "duration": 5,
    "generate_audio": false
}'
```

#### 4. Multimodal reference-to-video (reference images)

```bash
curl --location --request POST 'https://beeroute.ai/v1/videos' \
--header 'Authorization: Bearer sk-xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "doubao-seedance-2-0-260128",
    "content": [
        {
            "type": "text",
            "text": "The boy wearing glasses and a blue T-shirt in [Image 1] and the corgi puppy in [Image 2] sit on the lawn in [Image 3], 3D cartoon style"
        },
        {
            "type": "image_url",
            "image_url": {
                "url": "https://example.com/person.jpg"
            },
            "role": "reference_image"
        },
        {
            "type": "image_url",
            "image_url": {
                "url": "https://example.com/dog.jpg"
            },
            "role": "reference_image"
        },
        {
            "type": "image_url",
            "image_url": {
                "url": "https://example.com/lawn.jpg"
            },
            "role": "reference_image"
        }
    ],
    "resolution": "720p",
    "ratio": "16:9",
    "duration": 8,
    "generate_audio": true
}'
```

> **Tip**: Reference images can be combined using natural language descriptions. Using the `[Image 1]xxx, [Image 2]xxx` format to precisely specify the purpose of each image is recommended for better results.

#### 5. Multimodal reference-to-video (reference video + reference image + reference audio)

```bash
curl --location --request POST 'https://beeroute.ai/v1/videos' \
--header 'Authorization: Bearer sk-xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "doubao-seedance-2-0-260128",
    "content": [
        {
            "type": "text",
            "text": "Following the camera movement of the reference video, make the character in the reference image dance to the rhythm of the reference audio"
        },
        {
            "type": "image_url",
            "image_url": {
                "url": "https://example.com/character.jpg"
            },
            "role": "reference_image"
        },
        {
            "type": "video_url",
            "video_url": {
                "url": "https://example.com/reference_dance.mp4"
            },
            "role": "reference_video"
        },
        {
            "type": "audio_url",
            "audio_url": {
                "url": "https://example.com/music.mp3"
            },
            "role": "reference_audio"
        }
    ],
    "resolution": "720p",
    "duration": 10,
    "generate_audio": true
}'
```

#### 6. Fast edition model (fast)

```bash
curl --location --request POST 'https://beeroute.ai/v1/videos' \
--header 'Authorization: Bearer sk-xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "doubao-seedance-2-0-fast-260128",
    "content": [
        {
            "type": "text",
            "text": "City at night, neon lights flickering, rainwater reflecting the lights"
        }
    ],
    "resolution": "720p",
    "ratio": "21:9",
    "duration": 5,
    "generate_audio": true
}'
```

> **Note**: `doubao-seedance-2-0-fast-260128` does not support `1080p` resolution; it supports only `480p` / `720p`.

---

### Response Format

#### 200 - Submission succeeded

```json
{
    "id": "task-xxxxxxxxxxxx"
}
```

> **Note**: The task ID is valid for **7 days**; after it expires, the result can no longer be queried. Do not create duplicate tasks; simply use the returned ID to poll for the result.

#### Error response

```json
{
    "code": "InvalidApiKey",
    "message": "No API-key provided.",
    "request_id": "7438d53d-6eb8-4596-8835-xxxxxx"
}
```

---

## 3. Querying Task Status

Video generation usually takes 1–5 minutes. Poll the status using the task ID, with a recommended interval of **15 seconds**.

### API Endpoint

```
GET /v1/videos/{video_id}
```

### Path Parameters

| Parameter | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| video_id | string | Yes | The `id` returned by the generation API |

---

### Request Example

```bash
curl --location --request GET 'https://beeroute.ai/v1/videos/task-xxxxxxxxxxxx' \
--header 'Authorization: Bearer sk-xxx'
```

---

### Response Format

#### 200 - Completed successfully (Completed)

```json
{
    "id": "task-xxxxxxxxxxxx",
    "object": "video.generation",
    "model": "doubao-seedance-2-0-260128",
    "status": "completed",
    "progress": "100%",
    "created_at": 1769263230,
    "started_at": 1769263245,
    "completed_at": 1769263322,
    "video_url": "https://xxx/xxx.mp4"
}
```

#### 200 - Processing (Processing)

```json
{
    "id": "task-xxxxxxxxxxxx",
    "object": "video.generation",
    "model": "doubao-seedance-2-0-260128",
    "status": "processing",
    "progress": "50%",
    "created_at": 1769263230,
    "started_at": 1769263245
}
```

#### 200 - Queued (Queued)

```json
{
    "id": "task-xxxxxxxxxxxx",
    "object": "video.generation",
    "model": "doubao-seedance-2-0-260128",
    "status": "queued",
    "progress": "0%",
    "created_at": 1769263230
}
```

#### 200 - Task failed (Failed)

```json
{
    "id": "task-xxxxxxxxxxxx",
    "object": "video.generation",
    "model": "doubao-seedance-2-0-260128",
    "status": "failed",
    "created_at": 1769263230,
    "started_at": 1769263245,
    "completed_at": 1769263322,
    "code": "InvalidParameter",
    "message": "The parameter is invalid xxxxxx"
}
```

---

### Key Field Descriptions

| Field | Type | Description |
| :--- | :--- | :--- |
| **id** | string | Task ID. |
| **object** | string | Fixed as `video.generation`. |
| **model** | string | The model name used. |
| **status** | string | Task status:<br>`queued`: queued<br>`processing`: processing<br>`completed`: completed<br>`failed`: failed |
| **progress** | string | Generation progress percentage (e.g. `"50%"`, `"100%"`). |
| **created_at** | integer | Task creation time (Unix timestamp). |
| **started_at** | integer | Task processing start time (Unix timestamp). |
| **completed_at** | integer | Task completion time (Unix timestamp). |
| **video_url** | string | Video download link (returned only when `completed`). MP4 format, **link valid for 24 hours**; please download promptly. |
| **code** | string | Error code (returned only when `failed`). |
| **message** | string | Error details (returned only when `failed`). |

---

## 4. Task Status Transitions

```
queued → processing → completed / failed
```

- The initial status query is usually `queued` or `processing`.
- When the status changes to `completed`, the response contains `video_url`.
- If the status is `failed`, check the `code` and `message` error information and retry.
- The task ID is valid for **7 days**; after it expires, the result can no longer be queried.
- The generated video URL is **valid for 24 hours**; please download and store it promptly.

---

## 5. Quick Reference: Applicable Models per Scenario

| Scenario | `doubao-seedance-2-0-260128` | `doubao-seedance-2-0-fast-260128` |
| :--- | :---: | :---: |
| Text-to-video | ✅ | ✅ |
| Image-to-video - first frame | ✅ | ✅ |
| Image-to-video - first and last frames | ✅ | ✅ |
| Multimodal reference-to-video (1–9 reference images) | ✅ | ✅ |
| Multimodal reference-to-video (1–3 reference videos) | ✅ | ✅ |
| Multimodal reference-to-video (1–3 reference audio) | ✅ | ✅ |
| 480p resolution | ✅ | ✅ |
| 720p resolution | ✅ | ✅ |
| 1080p resolution | ✅ | ❌ |

---

## 6. Parameter Limits Overview (Quick Reference)

| Dimension | Limit |
| :--- | :--- |
| `content[text]` max length | Chinese ≤ 500 characters, English ≤ 1000 words |
| `duration` range | [4, 15] seconds, or `-1` (model auto-selects), default `5` |
| `resolution` options | `480p` / `720p` / `1080p` (fast does not support 1080p) |
| `ratio` options | `16:9` / `4:3` / `1:1` / `3:4` / `9:16` / `21:9` / `adaptive` |
| Single image size | ≤ 30 MB |
| Single image pixels | Width and height (300, 6000) px, aspect ratio (0.4, 2.5) |
| Image format | jpeg / png / webp / bmp / tiff / gif |
| Request body size | ≤ 64 MB (do not use Base64 for large files) |
| First-frame `image_url` count | 1 |
| First-and-last-frame `image_url` count | 2 (first frame + last frame) |
| Reference image `image_url` count | 1–9 |
| Reference video count | Up to 3 segments, total duration ≤ 15s |
| Single video duration | [2, 15] seconds |
| Single video size | ≤ 50 MB |
| Video format | mp4 / mov |
| Reference audio count | Up to 3 segments, total duration ≤ 15s |
| Single audio size | ≤ 15 MB |
| Audio format | wav / mp3 |
| Task ID validity | 7 days |
| Video URL validity | 24 hours |

---

## 7. Important Notes

1. **The three image scenarios are mutually exclusive**: image-to-video (first frame), image-to-video (first and last frames), and multimodal reference-to-video are 3 mutually exclusive scenarios and cannot be mixed.
2. **Audio cannot be input alone**: reference audio must be accompanied by at least 1 reference video or reference image.
3. **Video with audio is enabled by default**: `generate_audio` defaults to `true`; to produce a silent video, explicitly set it to `false`.
4. **Video URL is short-lived**: the generated video link is **valid for only 24 hours**; please download and store it promptly.
5. **Last-frame chaining**: setting `return_last_frame: true` returns the last-frame image of the video, which can be used to chain continuous video generation.
