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

# LTX v2 Text to Video API

> High-quality 4K cinematic videos, suitable for premium commercials and storytelling.

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

**Model name:** `ltxv-2/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 | Credits |
| - | - |
| 6s | **4.0** |
| 8s | **5.0** |
| 10s | **6.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": "ltxv-2/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": "ltxv-2/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`.

**fps** `integer` (default: 25)

The frames per second of the generated video

Allowed values: `25`, `50`.

**duration** `integer` (default: 6)

The duration of the generated video in seconds

Allowed values: `6`, `8`, `10`.

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

The resolution of the generated video

Allowed values: `"1080p"`, `"1440p"`, `"2160p"`.

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

The aspect ratio of the generated video

Allowed values: `"16:9"`.

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

Whether to generate audio for the generated video

> [accordion] Complete JSON schema
>
> ```json theme={null}
> {
>   "$schema": "http://json-schema.org/draft-07/schema#",
>   "required": [
>     "prompt"
>   ],
>   "properties": {
>     "fps": {
>       "enum": [
>         25,
>         50
>       ],
>       "type": "integer",
>       "title": "Frames per Second",
>       "default": 25,
>       "description": "The frames per second 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": [
>         6,
>         8,
>         10
>       ],
>       "type": "integer",
>       "title": "Duration",
>       "default": 6,
>       "description": "The duration of the generated video in seconds"
>     },
>     "resolution": {
>       "enum": [
>         "1080p",
>         "1440p",
>         "2160p"
>       ],
>       "type": "string",
>       "title": "Resolution",
>       "default": "1080p",
>       "description": "The resolution of the generated video",
>       "x-advance-settings": true
>     },
>     "aspect_ratio": {
>       "enum": [
>         "16:9"
>       ],
>       "type": "string",
>       "title": "Aspect Ratio",
>       "default": "16:9",
>       "description": "The aspect ratio of the generated video"
>     },
>     "generate_audio": {
>       "type": "boolean",
>       "title": "Generate Audio",
>       "default": true,
>       "description": "Whether to generate audio for the generated video",
>       "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.