> ## 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`。

## 参数

<ParamField body="prompt" type="string" required>
  描述视频内容的文本提示词。需要多镜头输出时，按顺序描述每个镜头。最多 5000 个字符。
</ParamField>

<ParamField body="resolution" type="&#x22;480p&#x22; | &#x22;720p&#x22; | &#x22;1080p&#x22;" default="&#x22;720p&#x22;">
  480p 仅文生视频提供；[图生视频](/bytedance-seedance-2-5-api/image-to-video)最低 720p。
  输出分辨率。每档各有独立的每秒费率。1080p 输出为 10-bit H.265（HEVC）编码，
  少数老旧播放器无法打开。
</ParamField>

<ParamField body="ratio" type="&#x22;16:9&#x22; | &#x22;9:16&#x22; | &#x22;1:1&#x22; | &#x22;4:3&#x22; | &#x22;3:4&#x22; | &#x22;21:9&#x22;" default="&#x22;16:9&#x22;">
  生成视频的宽高比。
</ParamField>

<ParamField body="duration" type="integer" default="5">
  生成片段的时长（秒），范围 `[4, 30]`。费用随时长变化。
</ParamField>

<ParamField body="generate_audio" type="boolean" default="true">
  生成与画面同步的原生音轨。设为 `false` 可得到无声片段。
</ParamField>

<ParamField body="watermark" type="boolean" default="false">
  在右下角打上 AI 生成水印。
</ParamField>

<ParamField body="output_format" type="&#x22;mp4&#x22; | &#x22;mov&#x22;" default="&#x22;mp4&#x22;">
  封装格式。`mov` 是面向后期制作的高色彩保真格式（H.264 + yuv444p + PCM），
  部分播放器无法打开。
</ParamField>

没有 `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" }]
}
```
