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

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

[← Other](/api-documentation/ai-generation/models/other)

**Model name:** `ltxv-2/text-to-video`\
**Generation type:** `text_to_video`\
**Endpoint:** [`POST /api/asset_generator/`](/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

<CodeGroup>
  ```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"])
  ```
</CodeGroup>

## Input parameters

Send these fields in `input_params`.

<ParamField body="prompt" type="string" required>
  The prompt to generate an image from.

  Minimum characters: `1`.
  Maximum characters: `2000`.
</ParamField>

<ParamField body="fps" type="integer" default={25}>
  The frames per second of the generated video

  Allowed values: `25`, `50`.
</ParamField>

<ParamField body="duration" type="integer" default={6}>
  The duration of the generated video in seconds

  Allowed values: `6`, `8`, `10`.
</ParamField>

<ParamField body="resolution" type="string" default={"1080p"}>
  The resolution of the generated video

  Allowed values: `"1080p"`, `"1440p"`, `"2160p"`.
</ParamField>

<ParamField body="aspect_ratio" type="string" default={"16:9"}>
  The aspect ratio of the generated video

  Allowed values: `"16:9"`.
</ParamField>

<ParamField body="generate_audio" type="boolean" default={true}>
  Whether to generate audio for the generated video
</ParamField>

<Accordion title="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
      }
    }
  }
  ```
</Accordion>

## Response

The request returns the task with `status: "initializing"`. Poll [GET /api/asset\_generator/\{id}/](/api-reference/ai-generation/get-ai-generation-) 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.