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

# Veo 3.1 Preview

> Veo 3.1 Preview：送出非同步影片生成任務，模型原生生成音訊。

送出非同步影片生成任務，模型原生生成音訊。

`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": "veo-3.1-generate-preview",
  "prompt": "A blue paper pinwheel turns slowly on a white table.",
  "metadata": {
    "durationSeconds": 4,
    "aspectRatio": "16:9",
    "resolution": "720p",
    "sampleCount": 1
  }
}'
```

保留傳回的任務 ID，查詢任務以取得生成影片。

## 參數與限制

| 欄位 | 說明 |
| - | - |
| `model` | `veo-3.1-generate-preview`. 請填寫範例中的完整模型 ID。 |
| `prompt` | 描述場景與動作。 |
| `metadata.durationSeconds` | 可用 4、6 或 8 秒；1080p、4K、參考圖與影片延長需要 8 秒。 |
| `metadata.aspectRatio` | 可用 `16:9` 或 `9:16`。 |
| `metadata.resolution` | 可用 `720p`、`1080p` 或 `4k`，視情境限制而定。 |

## API 參考

* [Veo API](https://mixroute.ai/docs/zh-Hant/api-reference/endpoint/veo.md)
* [查詢影片任務](https://mixroute.ai/docs/zh-Hant/api-reference/endpoint/query-video-task.md)


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