---
title: Generate Text to Video With LTX 2 Video (RTX 5090)
slug: ltx-2-video-rtx-5090
url: https://apyhub.com/mastera-ai/service/ltx-2-video-rtx-5090
provider: MasterA AI
categories: [Artificial Intelligence, Smart Generation]
tags: [text-to-video, video-generation, ltx2]
auth: api_key
---

# Generate Text to Video With LTX 2 Video (RTX 5090)

Generate cinematic ~5s video clips from text with LTX-2 19B distilled on a dedicated RTX 5090.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/mastera-ai/ltx-2-video-rtx-5090/v1/video/generate` | What it does Starts a text-to-video generation request using the LTX-2 model and returns a task ide… | 10000 |
| GET | `https://api.eu.apyhub.com/mastera-ai/ltx-2-video-rtx-5090/v1/video/tasks/:task_id` | What it does Polls the status of an LTX-2 video generation task by taskid and returns the task’s cu… | 1 |

## Examples

### Generate a short video (LTX-2, RTX 5090)

#### Quickstart

Generate a short text-to-video task from a prompt.

```bash
curl -X POST "https://api.eu.apyhub.com/mastera-ai/ltx-2-video-rtx-5090/v1/video/generate" \
  -H 'apy-token: $APY_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "length": "3s",
    "model": "ltx2",
    "prompt": "A red fox running through fresh snow, slow motion, cinematic lighting",
    "quality": "fast",
    "resolution": "sd",
    "seed": 0
  }'
```

#### What you'll get back

Returns a JSON object with `status`, `message`, and `task_id` string fields. `status` indicates the job state, `message` contains a human-readable note, and `task_id` is the queued generation task identifier.

```json
{
  "task_id": "67ddbf74b89f",
  "status": "queued",
  "message": "Video generation started. Poll GET /v1/video/tasks/{task_id}."
}
```

### Poll LTX-2 video status (RTX 5090)

#### Quickstart

Fetch the status of a video generation task by its `task_id`.

```bash
curl -X GET "https://api.eu.apyhub.com/mastera-ai/ltx-2-video-rtx-5090/v1/video/tasks/:task_id" \
  -H "apy-token: $APY_TOKEN"
```

#### What you'll get back

Returns a JSON object with these top-level fields: `type` (string), `error` (string), `status` (`queued`, `generating`, `completed`, or `error`), `task_id` (string), `elapsed_s` (number), and `output_url` (string, present only when `status` is `completed`).

```json
{
  "type": "ltx2",
  "status": "completed",
  "task_id": "ltx-task-123",
  "elapsed_s": 12.4,
  "output_url": "https://cdn.example.com/video.mp4"
}
```

## About

## What it does
Text to Video Generator turns a text prompt into a short LTX-2 video and gives you a task ID to track progress. Send a `prompt`, and optionally `seed`, `model`, `length`, `quality`, and `resolution`; the generation request is queued and processed on RTX 5090 hardware.

Use it when you need quick motion content from copy, storyboards, or product ideas. `length` supports `3s`, `5s`, or `10s`, `quality` can be `fast`, `balanced`, or `best`, and `resolution` can be `sd` or `hd`. The API responds with `status`, `message`, and `task_id` so you can store the job and poll later.

Poll `GET /tasks/:task_id` until the job reaches `completed` or `error`. The status response includes `type`, `status`, `task_id`, `elapsed_s`, and, when generation finishes, an `output_url` for the final MP4. If something fails, check the `error` field on the task response.

Text to Video Generator is a good fit for ad mockups, concept previews, social clips, and internal creative iteration where a short video draft is enough.

>**Notes**: Text-to-video with LTX-2 19B (distilled) on a dedicated NVIDIA RTX 5090. Generates a ~5-second cinematic clip in ~30-60 seconds.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/mastera-ai/service/ltx-2-video-rtx-5090
