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

# Pixverse V5 Text to Video API

> Anime and comic-style rendering with clean outlines and lively poses

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

**Model name:** `pixverse/v5/text-to-video`\
**Generation type:** `text_to_video`\
**Endpoint:** [`POST /api/asset_generator/`](https://docs.creatify.ai/api-reference/ai-generation/post-ai-generation)

## Pricing

| Duration | 360p | 540p | 720p | 1080p |
| - | - | - | - | - |
| 5s | **1.5** | **1.5** | **2.0** | **4.0** |
| 8s | **2.5** | **2.5** | **3.5** | — |

— means the combination isn't accepted by this model.

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": "pixverse/v5/text-to-video",
    "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": "pixverse/v5/text-to-video",
        "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 prompt to generate an image from.

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 video every time.

**style** `string`

The style of the generated video

Allowed values: `"anime"`, `"3d_animation"`, `"clay"`, `"comic"`, `"cyberpunk"`.

**duration** `string` (default: 5)

The duration of the generated video in seconds. 8s videos cost double. 1080p videos are limited to 5 seconds

Allowed values: `"5"`, `"8"`.

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

The resolution of the generated video

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

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

The aspect ratio of the generated video

Allowed values: `"16:9"`, `"4:3"`, `"1:1"`, `"3:4"`, `"9:16"`.

**negative\_prompt** `string`

Negative prompt to be used for the generation

> [accordion] Complete JSON schema
>
> ```json theme={null}
> {
>   "allOf": [
>     {
>       "if": {
>         "properties": {
>           "resolution": {
>             "const": "1080p"
>           }
>         },
>         "required": [
>           "resolution"
>         ]
>       },
>       "then": {
>         "properties": {
>           "duration": {
>             "enum": [
>               "5"
>             ]
>           }
>         },
>         "errorMessage": {
>           "properties": {
>             "duration": "8 second videos are not supported for 1080p 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 video every time.",
>       "x-advance-settings": true
>     },
>     "style": {
>       "enum": [
>         "anime",
>         "3d_animation",
>         "clay",
>         "comic",
>         "cyberpunk"
>       ],
>       "type": "string",
>       "title": "Style",
>       "description": "The style of the generated video",
>       "x-advance-settings": true
>     },
>     "prompt": {
>       "type": "string",
>       "title": "Prompt",
>       "maxLength": 2000,
>       "minLength": 1,
>       "description": "The prompt to generate an image from."
>     },
>     "duration": {
>       "enum": [
>         "5",
>         "8"
>       ],
>       "type": "string",
>       "title": "Duration",
>       "default": "5",
>       "description": "The duration of the generated video in seconds. 8s videos cost double. 1080p videos are limited to 5 seconds"
>     },
>     "resolution": {
>       "enum": [
>         "360p",
>         "540p",
>         "720p",
>         "1080p"
>       ],
>       "type": "string",
>       "title": "Resolution",
>       "default": "720p",
>       "description": "The resolution of the generated video",
>       "x-advance-settings": true
>     },
>     "aspect_ratio": {
>       "enum": [
>         "16:9",
>         "4:3",
>         "1:1",
>         "3:4",
>         "9:16"
>       ],
>       "type": "string",
>       "title": "Aspect Ratio",
>       "default": "16:9",
>       "description": "The aspect ratio of the generated video"
>     },
>     "negative_prompt": {
>       "type": "string",
>       "title": "Negative Prompt",
>       "default": "",
>       "description": "Negative prompt to be used for the 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.