> ## 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-Hans/api-reference/endpoint/veo.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.