> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vibetoken.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# Doubao-Seedance 2.5 — 文生视频

> 使用 Doubao-Seedance 2.5 根据文本提示词以 480p、720p 或 1080p 生成 4–30 秒、带原生音频的多镜头视频。

| | |
| - | - |
| **模型 ID** | `bytedance/seedance-2-5-t2v` |
| **系列** | `seedance-2-5` |
| **任务** | `text-to-video` |
| **模态** | 视频 |
| **上游** | ByteDance Doubao-Seedance 2.5 |

## Endpoint

```http theme={null}
POST https://vibetoken.cn/v1/videos/generations
```

异步调用：返回 `{id, status: "pending"}`；轮询
`GET /v1/videos/generations/{id}`，直到状态为 `success` 或 `failed`。

## 参数

**prompt** `string` *required*

描述视频内容的文本提示词。需要多镜头输出时，按顺序描述每个镜头。最多 5000 个字符。

**resolution** `"480p" | "720p" | "1080p"` (default: "720p")

480p 仅文生视频提供；[图生视频](https://docs.vibetoken.cn/zh/bytedance-seedance-2-5-api/image-to-video.md)最低 720p。
输出分辨率。每档各有独立的每秒费率。1080p 输出为 10-bit H.265（HEVC）编码，
少数老旧播放器无法打开。

**ratio** `"16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9"` (default: "16:9")

生成视频的宽高比。

> [!NOTE]
>
> 请在 API 请求中显式传入 `ratio`，不要使用 `aspect_ratio`。上方默认值是模型 schema 的表单默认值，不应假定省略此字段时 API 会自动补齐。例如传入 `"ratio": "16:9"`；也可选择上方列出的其他宽高比。

**duration** `integer` (default: 5)

生成片段的时长（秒），范围 `[4, 30]`。费用随时长变化。

**generate\_audio** `boolean` (default: true)

生成与画面同步的原生音轨。设为 `false` 可得到无声片段。

**watermark** `boolean` (default: false)

在右下角打上 AI 生成水印。

**output\_format** `"mp4" | "mov"` (default: "mp4")

封装格式。`mov` 是面向后期制作的高色彩保真格式（H.264 + yuv444p + PCM），
部分播放器无法打开。

没有 `seed` 参数：上游不支持，因此每次调用都会生成新的版本。请求中包含 `seed` 会被拒绝。

## 示例

```bash theme={null}
curl https://vibetoken.cn/v1/videos/generations \
  -H "Authorization: Bearer $VIBETOKEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "bytedance/seedance-2-5-t2v",
    "prompt": "a calm beach at sunrise, gentle waves, then a close-up of footprints in the sand",
    "ratio": "16:9",
    "resolution": "1080p",
    "duration": 5
  }'
```

```json theme={null}
{ "id": "task_abc123…", "status": "pending", "model": "bytedance/seedance-2-5-t2v" }
```

轮询直到结束：

```bash theme={null}
curl https://vibetoken.cn/v1/videos/generations/task_abc123… \
  -H "Authorization: Bearer $VIBETOKEN_API_KEY"
```

```json theme={null}
{
  "id": "task_abc123…",
  "status": "success",
  "data": [{ "url": "https://…mp4" }]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.