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

# Veo 3.1 Text to Video API

> Improved cinematic realism with cleaner audio and stronger motion control.

[← Veo](https://docs.creatify.ai/api-documentation/ai-generation/models/veo.md)

**Model name:** `veo3.1`\
**Generation type:** `text_to_video`\
**Endpoint:** [`POST /api/asset_generator/`](https://docs.creatify.ai/api-reference/ai-generation/post-ai-generation)

## Pricing

| Duration | Credits |
| - | - |
| 4s | **16.0** |
| 6s | **24.0** |
| 8s | **32.0** |

Prices are per output. When a request asks for several outputs, the charge is this price times the number of outputs.

## Quick start

```bash cURL theme={null}
curl --request POST \
  --url https://api.creatify.ai/api/asset_generator/ \
  --header 'Content-Type: application/json' \
  --header 'X-API-ID: your-api-id' \
  --header 'X-API-KEY: your-api-key' \
  --data '{
    "model_name": "veo3.1",
    "input_params": {
      "prompt": "A slow cinematic tracking shot along a sunlit coastal road."
    }
  }'
```

```python Python theme={null}
import requests

response = requests.post(
    "https://api.creatify.ai/api/asset_generator/",
    headers={"X-API-ID": "your-api-id", "X-API-KEY": "your-api-key"},
    json={
        "model_name": "veo3.1",
        "input_params": {
            "prompt": "A slow cinematic tracking shot along a sunlit coastal road."
        },
    },
)
print(response.json()["id"])
```

## Input parameters

Send these fields in `input_params`.

**prompt** `string` *required*

The text prompt describing the video you want to generate

Minimum characters: `1`.
Maximum characters: `2000`.

**seed** `integer`

The same seed and the same prompt given to the same version of the model will output the same image every time.

**duration** `string` (default: 8s)

The duration of the generated video in seconds

Allowed values: `"4s"`, `"6s"`, `"8s"`.

**resolution** `string` (default: 720p)

The resolution of the generated video

Allowed values: `"720p"`, `"1080p"`.

**aspect\_ratio** `string` (default: 16:9)

The aspect ratio of the generated video.

Allowed values: `"16:9"`, `"9:16"`.

**enhance\_prompt** `boolean` (default: true)

Whether to enhance the video generation

**generate\_audio** `boolean` (default: true)

Whether to generate audio for the video.

**negative\_prompt** `string`

A negative prompt to guide the video generation

> [accordion] Complete JSON schema
>
> ```json theme={null}
> {
>   "allOf": [
>     {
>       "if": {
>         "properties": {
>           "resolution": {
>             "const": "1080p"
>           }
>         },
>         "required": [
>           "resolution"
>         ]
>       },
>       "then": {
>         "properties": {
>           "aspect_ratio": {
>             "enum": [
>               "16:9",
>               "9:16"
>             ]
>           }
>         },
>         "errorMessage": {
>           "properties": {
>             "aspect_ratio": "1080p with 1:1 aspect ratio is not supported for Veo3. Please select a different aspect ratio or model to continue."
>           }
>         }
>       }
>     },
>     {
>       "if": {
>         "properties": {
>           "resolution": {
>             "const": "1080p"
>           }
>         },
>         "required": [
>           "resolution"
>         ]
>       },
>       "then": {
>         "properties": {
>           "duration": {
>             "const": "8s"
>           }
>         },
>         "errorMessage": {
>           "properties": {
>             "duration": "For 1080p resolution, only 8s duration is supported. Please change the duration or resolution."
>           }
>         }
>       }
>     }
>   ],
>   "$schema": "http://json-schema.org/draft-07/schema#",
>   "required": [
>     "prompt"
>   ],
>   "properties": {
>     "seed": {
>       "type": "integer",
>       "title": "Seed",
>       "description": "The same seed and the same prompt given to the same version of the model will output the same image every time.",
>       "x-advance-settings": true
>     },
>     "prompt": {
>       "type": "string",
>       "title": "Prompt",
>       "maxLength": 2000,
>       "minLength": 1,
>       "description": "The text prompt describing the video you want to generate"
>     },
>     "duration": {
>       "enum": [
>         "4s",
>         "6s",
>         "8s"
>       ],
>       "type": "string",
>       "title": "Duration",
>       "default": "8s",
>       "description": "The duration of the generated video in seconds"
>     },
>     "resolution": {
>       "enum": [
>         "720p",
>         "1080p"
>       ],
>       "type": "string",
>       "title": "Resolution",
>       "default": "720p",
>       "description": "The resolution of the generated video",
>       "x-advance-settings": true
>     },
>     "aspect_ratio": {
>       "enum": [
>         "16:9",
>         "9:16"
>       ],
>       "type": "string",
>       "title": "Aspect Ratio",
>       "default": "16:9",
>       "description": "The aspect ratio of the generated video."
>     },
>     "enhance_prompt": {
>       "type": "boolean",
>       "title": "Enhance Prompt",
>       "default": true,
>       "description": "Whether to enhance the video generation"
>     },
>     "generate_audio": {
>       "type": "boolean",
>       "title": "Generate Audio",
>       "default": true,
>       "description": "Whether to generate audio for the video.",
>       "x-advance-settings": true
>     },
>     "negative_prompt": {
>       "type": "string",
>       "title": "Negative Prompt",
>       "description": "A negative prompt to guide the video generation",
>       "x-advance-settings": true
>     }
>   }
> }
> ```

## Response

The request returns the task with `status: "initializing"`. Poll [GET /api/asset\_generator/\{id}/](https://docs.creatify.ai/api-reference/ai-generation/get-ai-generation-.md) until `status` is `done` or `failed`, or pass a `webhook_url` to be notified. A finished task lists its files in `assets` and the credits it charged in `credits_used`.


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