> ## 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: Create an asynchronous video task with native audio.

Create an asynchronous video task with native audio.

`POST /v1/video/generations`

## Quick Example

Set `MIXROUTE_API_KEY` before running the request.

```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
  }
}'
```

Save the returned task ID and query the task to retrieve the completed video.

## Parameters and Limits

| Field | Description |
| - | - |
| `model` | `veo-3.1-generate-preview`. Set the model ID exactly as shown. |
| `prompt` | Describe the scene and motion. |
| `metadata.durationSeconds` | Use 4, 6, or 8 seconds; 1080p, 4K, reference images, and extension require 8 seconds. |
| `metadata.aspectRatio` | Use `16:9` or `9:16`. |
| `metadata.resolution` | Use `720p`, `1080p`, or `4k`, subject to scenario limits. |

## API Reference

* [Veo API](https://mixroute.ai/docs/api-reference/endpoint/veo.md)
* [Query Video Task](https://mixroute.ai/docs/api-reference/endpoint/query-video-task.md)


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