> ## 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 Fast

> Doubao Seedance 2.0 Fast: 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-fast-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-fast-260128`. 例に記載されているモデル ID をそのまま指定します。 |
| `asset` | テキストのみの例では `asset` を `false` にします。メディアを渡す場合は API リファレンスの入力要件を参照してください。 |
| `metadata.duration` | 4～15 秒、または長さを自動で選ぶ `-1` を指定します。 |
| `metadata.resolution` | このモデルでは `480p`、`720p` を選べます。 |

## API リファレンス

* [Doubao API](https://mixroute.ai/docs/ja/api-reference/endpoint/doubao.md)
* [動画タスク照会](https://mixroute.ai/docs/ja/api-reference/endpoint/query-video-task.md)


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