# Seedance Volcengine Native Video Generation

Call Seedance 2.0, Seedance 2.0 Fast, Seedance 2.0 Mini, Seedance 2.5, and Seedance 2.5 Flash using the official Volcengine Ark request schema. The request body, `content` asset structure, and task polling response match the Volcengine Ark "Create Video Generation Task" API—existing Volcengine integrations only need to replace the base URL and API key.

Video generation runs asynchronously:

1. Create a video task and obtain its `id`.
2. Poll the generation status using that `id`.
3. Once `status` reaches `succeeded`, read the video URL from `content.video_url`.

## Endpoints & Authentication

```http
POST https://vip.brioi.com/api/v3/contents/generations/tasks
GET  https://vip.brioi.com/api/v3/contents/generations/tasks/{task_id}
```

Use the unprefixed paths above for all new integrations. The `SD｜火山` token group also maintains backward compatibility with the legacy `/doubao/api/v3/contents/generations/tasks` prefix.

Authenticate all requests with a Bearer API key:

```http
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
```

Models on this page are available to API keys in the `SD｜火山` or `auto` token groups. Check `GET /v1/models` for the exact models enabled on your account.

## Supported Models

Set `model` to the full Volcengine Ark model ID:

| Model | Output Resolution | Duration | Reference Asset Limits | Draft Mode |
|---|---|---|---|---|
| `doubao-seedance-2-0-260128` | `480p`, `720p`, `1080p`, `4k` | `4–15` s, or `-1` | 9 images, 3 videos, 3 audio clips | Unsupported |
| `doubao-seedance-2-0-fast-260128` | `480p`, `720p` | `4–15` s, or `-1` | 9 images, 3 videos, 3 audio clips | Unsupported |
| `doubao-seedance-2-0-mini-260615` | `480p`, `720p` | `4–15` s, or `-1` | 9 images, 3 videos, 3 audio clips | Unsupported |
| `doubao-seedance-2-5-260628` | `480p`, `720p`, `1080p`, `4k` | `4–30` s, or `-1` | 30 images, 10 videos, 10 audio clips | Supported |
| `doubao-seedance-2-5-flash-261115` | `480p`, `720p` | `4–30` s, or `-1` | 10 images, 5 videos, 5 audio clips | Unsupported |

- Pass 4K resolution in lowercase as `4k`.
- Requests specifying a resolution unsupported by the selected model fail immediately without creating a task.
- When `duration` is `-1`, the model automatically chooses a duration within its valid range.

## Request Parameters

| Field | Type | Required | Description |
|---|---|---:|---|
| `model` | string | Yes | Model ID from the table above. |
| `content` | object[] | Yes | Ordered array of text prompts and media assets; see structure below. |
| `resolution` | string | No | Output resolution; see supported values per model above. |
| `ratio` | string | No | `21:9`, `16:9`, `4:3`, `1:1`, `3:4`, `9:16`, or `adaptive`. |
| `duration` | integer | No | Output duration in seconds. |
| `generate_audio` | boolean | No | Whether to generate video with audio. |
| `seed` | integer | No | Random seed. |
| `watermark` | boolean | No | Whether to apply a watermark. |
| `return_last_frame` | boolean | No | Whether to return the final frame image. |
| `draft` | boolean | No | Seedance 2.5 only: set to `true` to generate a `480p` draft preview. |

This page lists commonly used fields. Request bodies are forwarded as-is without injecting extra defaults: omitted fields fall back to Volcengine Ark's official defaults, and other official Volcengine Ark fields (such as `omni_reference_task_type` and `tools`) are also passed through as-is, subject to model support returned by the API. `callback_url` is not supported and immediately returns a parameter error—poll the task status endpoint instead. For upstream field definitions, see [Volcengine Ark — Create Video Generation Task](https://docs.volcengine.com/docs/ark/create-video-generation-task-api?lang=zh).

### `content` Items

| Type | Structure | `role` |
|---|---|---|
| Text | `{"type":"text","text":"..."}` | Omit |
| Image | `{"type":"image_url","image_url":{"url":"..."},"role":"..."}` | `reference_image`, `first_frame`, or `last_frame` |
| Video | `{"type":"video_url","video_url":{"url":"..."},"role":"reference_video"}` | `reference_video` |
| Audio | `{"type":"audio_url","audio_url":{"url":"..."},"role":"reference_audio"}` | `reference_audio` |
| Draft | `{"type":"draft_task","draft_task":{"id":"<draft_task_id>"}}` | Omit |

- Asset URLs must be publicly accessible and directly downloadable throughout task execution. Image inputs also accept `asset://` URIs obtained via [Seedance Asset Registration](https://docs.brioi.com/english/2552264m0.md).
- First-frame, first-and-last-frame, and multimodal reference (reference images, videos, and audio) are three mutually exclusive modes and cannot be mixed.
- Seedance 2.0, 2.0 Fast, and 2.0 Mini cannot take audio alone—at least one reference image or reference video must accompany audio. Seedance 2.5 and 2.5 Flash support audio-only references.
- Reference assets in your prompt by per-modality order using `@image1`, `@video1`, `@audio1`, etc.

## Request Examples

### Text-to-Video

```json
{
  "model": "doubao-seedance-2-5-flash-261115",
  "content": [
    {"type": "text", "text": "Early morning coastline as the camera slowly pushes forward"}
  ],
  "resolution": "720p",
  "ratio": "16:9",
  "duration": 5,
  "generate_audio": false
}
```

### First-Frame Image-to-Video

```json
{
  "model": "doubao-seedance-2-0-260128",
  "content": [
    {"type": "text", "text": "The character smiles and waves at the camera"},
    {"type": "image_url", "image_url": {"url": "https://example.com/first.png"}, "role": "first_frame"}
  ],
  "resolution": "1080p",
  "ratio": "adaptive",
  "duration": 5
}
```

### Combined Image, Video, and Audio Reference

```json
{
  "model": "doubao-seedance-2-5-260628",
  "content": [
    {"type": "text", "text": "Feature the character from @image1, follow the camera movement in @video1, and generate a vertical video synced to the beat of @audio1"},
    {"type": "image_url", "image_url": {"url": "https://example.com/character.png"}, "role": "reference_image"},
    {"type": "video_url", "video_url": {"url": "https://example.com/motion.mp4"}, "role": "reference_video"},
    {"type": "audio_url", "audio_url": {"url": "https://example.com/bgm.mp3"}, "role": "reference_audio"}
  ],
  "resolution": "720p",
  "ratio": "9:16",
  "duration": 12
}
```

## Draft & Final Render (Seedance 2.5 Only)

First, submit a request with `draft: true` and `resolution: "480p"` to generate a draft preview:

```json
{
  "model": "doubao-seedance-2-5-260628",
  "draft": true,
  "resolution": "480p",
  "content": [
    {"type": "text", "text": "Virtual character smiling and waving"},
    {"type": "image_url", "image_url": {"url": "https://example.com/portrait.png"}, "role": "reference_image"}
  ]
}
```

Once the draft reaches `status: "succeeded"`, submit a separate request referencing the draft task `id` to render the final video at `1080p` or `4k`:

```json
{
  "model": "doubao-seedance-2-5-260628",
  "content": [
    {"type": "draft_task", "draft_task": {"id": "task_YOUR_DRAFT_ID"}}
  ],
  "resolution": "4k"
}
```

The final render inherits the prompt, reference assets, duration, aspect ratio, and seed from the draft—do not pass them again. The draft and final render are two separate tasks and are billed independently.

## Responses

Creating a task returns its `id`:

```json
{"id": "task_EXAMPLE"}
```

Polling returns the Volcengine Ark task object, where `id` is the Brioi task ID:

```json
{
  "id": "task_EXAMPLE",
  "model": "doubao-seedance-2-5-260628",
  "status": "succeeded",
  "content": {"video_url": "https://.../result.mp4"},
  "resolution": "720p",
  "ratio": "9:16",
  "duration": 12,
  "usage": {"completion_tokens": 129600, "total_tokens": 129600}
}
```

Possible `status` values: `queued`, `running`, `succeeded`, `failed`, `cancelled`, `expired`. On failure, inspect `error.code` and `error.message`. Output video URLs have a short TTL—download and save the file promptly. Poll every 5–10 seconds and stop once the task reaches a terminal state.

## Billing

Tasks settle based on the actual `usage.completion_tokens` returned upon completion. Unit rates depend on the model, output resolution, and whether the input includes reference video, multiplied by your API key's token-group multiplier. An estimated charge is pre-authorized at submission and reconciled against actual usage upon completion; failed tasks receive a full refund of the pre-authorization.

Do not resubmit a creation request simply because polling is still in progress—every submission creates a new billable task.

## Error Handling

Creation and polling error responses follow the Volcengine Ark error schema:

```json
{"error": {"code": "InvalidParameter", "message": "Detailed error description"}}
```

| HTTP Status | `error.code` | Common Cause |
|---:|---|---|
| `400` | `InvalidParameter` | Invalid parameter—for example, unsupported resolution for the model, passing `callback_url`, or an empty `content` array |
| `401` | `AuthenticationError` | Missing or invalid API key |
| `403` | `AccessDenied` | Insufficient balance/quota, or no permission for the requested model |
| `404` | `NotFound` | Requested resource does not exist |
| `429` | `AccountRateLimitExceeded` | Rate limit exceeded |
| `500`, `502`, `503` | `InternalServiceError` | Transient service error or temporary unavailability |

When a task fails during execution, the polling response returns `status` as `failed` with details in `error.code` and `error.message`.

