Mage API · Video model
LTX Video API
Fast open-weights video for iteration
POST https://api.mage.space/v1/ltx_video/generateAt 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.
- VideoOutput
- 2Variants
- 20Gems per clip, default
- $0.02About, in USD
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"TypeScript
// npm install @mage-space/sdk
import Mage from '@mage-space/sdk';
const mage = new Mage(); // reads MAGE_API_KEY
const request = await mage.run('ltx_video', {
prompt: 'A slow push-in on a lighthouse at dusk, waves breaking below',
aspect_ratio: '3:2',
model_id: 'ltx-video-096-distilled',
});
console.log(request.result.url);Python
# pip install mage-space
from mage_space import Mage
mage = Mage() # reads MAGE_API_KEY
request = mage.run("ltx_video", {
"prompt": "A slow push-in on a lighthouse at dusk, waves breaking below",
"aspect_ratio": "3:2",
"model_id": "ltx-video-096-distilled",
})
print(request["result"]["url"])Models
LTX Video model_id values
Send model_id to pick a variant. A request without one runs the default.
| model_id | Name | Default |
|---|---|---|
| ltx-video-096-distilled | LTX Video | Yes |
| ltx-video-096-dev | LTX Video |
Options
LTX Video parameters
Allowed values across all variants; a variant may offer fewer. The docs list the options per variant.
| Field | Values |
|---|---|
| aspect_ratio | 21:9, 16:9, 3:2, 5:4, 1:1, 4:5, 2:3, 9:16, 9:21 |
| resolution | 240p, 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.
| Field | Role |
|---|---|
| first_image | The first frame image. |
More video models
Other video generation APIs on Mage
Magejutsu API
Recast any video, keeping its motion
Melon API
Anime in motion, with optional audio
MiniMax-H3 API
Fast open video with stereo sound
Plum API
Sound on every clip, up to 2K
Raspberry API
Characters brought to life from a first frame
Seedance API
Seedance, with a strict filter
FAQ
Frequently asked questions
How much does the LTX Video API cost?
What is the LTX Video API endpoint?
Which LTX Video models can I call?
Does LTX Video support reference images or characters?
Can I use LTX Video from Claude or ChatGPT?
How long are LTX Video results kept?
Start building with Mage
One account, one Gems balance, every model. Pay only for what you generate.