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

# Doubao Seedance 2.0

> Doubao Seedance 2.0: 通过 Doubao 路由生成视频。下方示例提交纯文生视频任务，生成完成后可通过任务查询接口获取结果。

通过 Doubao 路由生成视频。下方示例提交纯文生视频任务，生成完成后可通过任务查询接口获取结果。

`POST /v1/video/generations`

## 快速示例

运行前请设置 `MIXROUTE_API_KEY`。

```bash theme={null}
curl --request POST 'https://api.mixroute.ai/v1/video/generations' \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "doubao-seedance-2-0-260128",
  "prompt": "A paper pinwheel turns slowly on a white table.",
  "asset": false,
  "metadata": {
    "content": [
      {
        "type": "text",
        "text": "A paper pinwheel turns slowly on a white table."
      }
    ],
    "duration": 4,
    "ratio": "16:9",
    "resolution": "480p",
    "generate_audio": false
  }
}'
```

使用返回的任务 ID 查询结果。

## 参数和限制

`model`、`prompt` 和 `asset` 放在顶层；Seedance 的输入和生成参数放入 `metadata`。

| 字段 | 说明 |
| - | - |
| `model` | `doubao-seedance-2-0-260128`. 填写示例中的完整模型 ID。 |
| `asset` | 纯文本请求将 `asset` 设为 `false`。如需传入媒体，请查看 API 参考中的输入要求。 |
| `metadata.duration` | 可用 4–15 秒，或用 `-1` 自动选择时长。 |
| `metadata.resolution` | 该型号可用 `480p`、`720p`、`1080p`、`4k`。 |

## API 参考

* [Doubao API](https://mixroute.ai/docs/zh-Hans/api-reference/endpoint/doubao.md)
* [查询视频任务](https://mixroute.ai/docs/zh-Hans/api-reference/endpoint/query-video-task.md)


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