Mage API · Video model

LTX Video API

Fast open-weights video for iteration

Get an API keyTry LTX Video in the playground
POST https://api.mage.space/v1/ltx_video/generate

At a glance

The LTX Video API runs LTX Video and 1 other variant through Mage at POST https://api.mage.space/v1/ltx_video/generate. A request at the default settings costs 20 Gems (about $0.02), with no subscription. LTX Video takes no @handle mentions.

Overview

What the LTX Video API does

A fast open-weights video model for cheap, rapid iteration. Text or a start frame, up to 720p, in Distilled and Dev variants.

A fast open-weights video model for cheap iteration, in Distilled and Dev variants, from text or a start frame.

It accepts first_image as inputs.

Quick start

Call the LTX Video API

Set MAGE_API_KEY, submit to /ltx_video/generate, and poll status_url until the request completes.

cURL
STATUS_URL=$(curl --request POST 'https://api.mage.space/v1/ltx_video/generate' \
  --header "Authorization: Bearer $MAGE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "prompt": "A slow push-in on a lighthouse at dusk, waves breaking below",
  "aspect_ratio": "3:2",
  "model_id": "ltx-video-096-distilled"
}' | jq -r '.status_url')

# Repeat until status is "completed"; result.url is the file
curl "$STATUS_URL" --header "Authorization: Bearer $MAGE_API_KEY"
Python
import os, time, requests

headers = {"Authorization": f"Bearer {os.environ['MAGE_API_KEY']}"}
request = requests.post(
    "https://api.mage.space/v1/ltx_video/generate",
    headers=headers,
    json={
      "prompt": "A slow push-in on a lighthouse at dusk, waves breaking below",
      "aspect_ratio": "3:2",
      "model_id": "ltx-video-096-distilled"
    },
).json()

while request["status"] in ("queued", "in_progress"):
    time.sleep(3)
    request = requests.get(request["status_url"], headers=headers).json()

print(request["status"], request["result"] and request["result"]["url"])
JavaScript
const headers = {
  Authorization: `Bearer ${process.env.MAGE_API_KEY}`,
  'Content-Type': 'application/json',
};
let request = await fetch('https://api.mage.space/v1/ltx_video/generate', {
  method: 'POST',
  headers,
  body: JSON.stringify({
    "prompt": "A slow push-in on a lighthouse at dusk, waves breaking below",
    "aspect_ratio": "3:2",
    "model_id": "ltx-video-096-distilled"
  }),
}).then((response) => response.json());

while (['queued', 'in_progress'].includes(request.status)) {
  await new Promise((resolve) => setTimeout(resolve, 3000));
  request = await fetch(request.status_url, { headers }).then((r) => r.json());
}

console.log(request.status, request.result?.url);

Models

LTX Video model_id values

Send model_id to pick a variant. A request without one runs the default.

model_idNameDefault
ltx-video-096-distilledLTX VideoYes
ltx-video-096-devLTX Video

Options

LTX Video parameters

Allowed values across all variants; a variant may offer fewer. The docs list the options per variant.

FieldValues
aspect_ratio21:9, 16:9, 3:2, 5:4, 1:1, 4:5, 2:3, 9:16, 9:21
resolution240p, 360p, 480p, 720p

Inputs

Media inputs LTX Video accepts

Send each as an https URL, a data URL, or an upload of up to 100 MB.

FieldRole
first_imageThe first frame image.

More video models

Other video generation APIs on Mage

Video · from 147 Gems

Melon API

Anime in motion, with optional audio

Video · from 30 Gems

MiniMax-H3 API

Fast open video with stereo sound

Video · from 338 Gems

Plum API

Sound on every clip, up to 2K

Video · from 360 Gems

Raspberry API

Characters brought to life from a first frame

Video · from 40 Gems

Wan Video v2.2 API

Open-weights video with a Lightning variant

Video · from 189 Gems

Berry API

Video that stays true to your references

FAQ

Frequently asked questions

How much does the LTX Video API cost?

A LTX Video request at the default settings (LTX Video) costs 20 Gems, about $0.02. Other resolutions, durations, and variants change the price; the response reports the exact charge. A generation that fails is refunded; one Mage's content policy blocks is not.

What is the LTX Video API endpoint?

POST https://api.mage.space/v1/ltx_video/generate with an Authorization: Bearer header carrying your Mage API key. The response includes a status_url to poll for the result.

Which LTX Video models can I call?

ltx-video-096-distilled, ltx-video-096-dev. The default is LTX Video.

Does LTX Video support reference images or characters?

LTX Video accepts first_image. LTX Video takes no @handle mentions.

Can I use LTX Video from Claude or ChatGPT?

Yes. Connect the Mage MCP server to Claude, ChatGPT, Claude Code, Grok, or Cursor and ask for LTX Video by name. Your assistant reads its options with get_model and quotes the price before it generates.

How long are LTX Video results kept?

Results and inputs are kept for 30 days. Download anything you want to keep to your own storage.

Start building with Mage

One account, one Gems balance, every model. Pay only for what you generate.

Get an API keyTry LTX Video in the playground

Related