Skip to main content

Overview

LTX (Lightricks) is the most affordable video model available, and also one of the fastest. It supports unique features like native audio generation and first+last frame keyframe control.
Model IDCredits~Cost
ltx-2-19b-distilled50$0.50
The gateway model ID is ltx-2-19b-distilled. This is the distilled 19B parameter variant optimized for speed.

Quick start

import { createVarg } from "vargai/ai"

const varg = createVarg({ apiKey: process.env.VARG_API_KEY! })

const result = await varg.videoModel("ltx-2-19b-distilled").generate({
  prompt: "a paper airplane flying through a sunlit room, slow motion",
  duration: 5,
  aspectRatio: "16:9",
})

console.log(result.video.url)

Special features

Native audio generation

LTX can generate audio alongside the video. Enable it with provider options:
cURL
curl -X POST https://api.varg.ai/v1/video \
  -H "Authorization: Bearer $VARG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "ltx-2-19b-distilled",
    "prompt": "rain falling on a tin roof, close up of droplets splashing",
    "duration": 5,
    "provider_options": { "varg": { "generate_audio": true } }
  }'

Keyframe control (first + last frame)

Provide two images to control start and end frames:
cURL
curl -X POST https://api.varg.ai/v1/video \
  -H "Authorization: Bearer $VARG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "ltx-2-19b-distilled",
    "prompt": "smooth morphing transition",
    "duration": 5,
    "files": [
      { "url": "https://example.com/start.jpg" },
      { "url": "https://example.com/end.jpg" }
    ]
  }'

Parameters

prompt
string
required
Text description of the video to generate.
duration
number
default:"5"
Video duration in seconds.
aspect_ratio
string
default:"16:9"
Output aspect ratio.
files
array
One image for image-to-video. Two images for first+last frame keyframe control.
provider_options
object
Set { "varg": { "generate_audio": true } } to enable native audio generation.
LTX internally uses num_frames instead of duration and video_size instead of aspect_ratio. The gateway handles the conversion automatically.

Pricing

ModelCreditsUSD
ltx-2-19b-distilled50$0.50
The cheapest video model available. Ideal for prototyping and high-volume generation.

Tips

  • Best for rapid iteration — fast and cheap, great for testing prompts before upgrading to Kling or Seedance.
  • Native audio is unique to LTX (and Grok Imagine / Kling V2.6). Useful for ambient sound effects.
  • Keyframe control lets you define start and end frames for precise transitions.
  • Quality is lower than Kling V3 or Seedance 2, but acceptable for social media and prototypes.

Wan 2.5

Slightly more expensive but better quality. Good upgrade path.

Kling V3

Premium quality. 3x the cost but significantly better output.