LTX-2 Pro (text-to-video) API
Make videos with LTX-2 Pro (text-to-video) through MartLLM.
Show more
Made by Lightricks. MartLLM does not run this model. Here, sellers serve it through their own provider accounts.
Request
curl https://api.martllm.com/v1/video/generations \
-H "Authorization: Bearer $UBERLLM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "lightricks/ltx-2-pro-text-to-video",
"prompt": "A traveler in a long coat walks into a neon-lit train station at night, slow tracking shot from behind, rain on the glass roof, reflections on the wet floor, cinematic lighting, the shot ends on the departure board",
"duration_seconds": 6
}'
# → {"id": "<job id>", "status": "queued", "poll_url": "/v1/video/generations/<job id>"}Set UBERLLM_API_KEY to your key. Ask /v1/video/generations/<job id> every 5 seconds until status is "succeeded", then download the file with your key. A job that fails says why and costs nothing. Full API guide
Options
- Tasks
- Text to video
- Lengths
- 6 s, 8 s, 10 s
- Sound
- Supported
- Billing unit
- per second of video
- Model id
lightricks/ltx-2-pro-text-to-video
Try LTX-2 Pro (text-to-video)
Settings
The same request as the settings on the left, ready to copy.
curl https://api.martllm.com/v1/video/generations \
-H "Authorization: Bearer $UBERLLM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "lightricks/ltx-2-pro-text-to-video",
"prompt": "",
"duration_seconds": 6
}'
# → {"id": "<job id>", "status": "queued", "poll_url": "/v1/video/generations/<job id>"}What the LTX-2 Pro (text-to-video) API is good at
- Clips up to 10 seconds long in one request.
- Sound made with the video, in the same request.
Examples to start from
01
A cinematic shot
A traveler in a long coat walks into a neon-lit train station at night, slow tracking shot from behind, rain on the glass roof, reflections on the wet floor, cinematic lighting, the shot ends on the departure board
Prompt only · 8 s
02
City timelapse
Locked-off timelapse of a city skyline from golden hour to blue hour, clouds drifting, windows lighting up one by one, no camera movement, no warped buildings
Prompt only · 6 s
03
Product shot
A glass perfume bottle turns slowly on a white studio turntable, soft key light from the left, shallow depth of field, clean commercial look, vertical framing for social ads
Prompt only
LTX-2 Pro (text-to-video) API parameters
| Parameter | Type | What it does |
|---|---|---|
| model | lightricks/ltx-2-pro-text-to-video | Required |
| prompt | string | Required. What to make. |
| duration_seconds | 6, 8, 10 | Optional. Length in seconds. Left out: the model's shortest. |
| audio | boolean | Optional. Add a sound track. |
Read from GET https://api.martllm.com/v1/models/lightricks/ltx-2-pro-text-to-video: the same rules the API checks every request against.
LTX-2 models compared
| Model | Model id | From, a second | Up to | Longest |
|---|---|---|---|---|
| LTX-2 Pro (text-to-video) | lightricks/ltx-2-pro-text-to-video | 10 s | ||
| LTX-2 19B Control (pose) | lightricks/ltx-2-19b-control | |||
| LTX-2 Pro (image-to-video) | lightricks/ltx-2-pro-image-to-video | 10 s | ||
| LTX-2 Retake | lightricks/ltx-2-retake |
LTX-2 Pro (text-to-video) API FAQ
How much does LTX-2 Pro (text-to-video) cost?
LTX-2 Pro (text-to-video) is billed at the price shown, which has no MartLLM fee on top. A request that fails costs nothing.
How do I make a video with LTX-2 Pro (text-to-video)?
Send a POST to https://api.martllm.com/v1/video/generations with your MartLLM key, model "lightricks/ltx-2-pro-text-to-video" and a prompt. You get a job id back; ask https://api.martllm.com/v1/video/generations/<job id> until it says "succeeded", then download it from https://api.martllm.com/v1/media/artifacts/<job id>/0.