LogoLtx-2 API
5 Minute Guide

LTX-2 API Quick Start

Get started with LTX-2 API video generation in just a few minutes. This guide covers authentication, your first request, and receiving results.

1

Get Your API Key

First, you'll need an API key to authenticate your requests. Sign up or log in to get your key.

Get API Key
2

Make Your First Request

Submit a video generation request using cURL, Node.js, or Python:

cURL
curl -X POST https://api.ltx-2api.com/v1/text-to-video \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A golden retriever running through a field of flowers",
    "duration": 8,
    "resolution": "1080p",
    "fps": 25,
    "mode": "fast"
  }'

You'll receive a response with a task_id:

{
  "task_id": "task_abc123xyz",
  "status": "processing",
  "estimated_time": 10
}
3

Check Status & Get Results

Poll the status endpoint to check when your video is ready:

cURL
curl https://api.ltx-2api.com/v1/status/task_abc123xyz \
  -H "Authorization: Bearer YOUR_API_KEY"

When complete, you'll get the video URL:

{
  "task_id": "task_abc123xyz",
  "status": "completed",
  "progress": 100,
  "video_url": "https://cdn.ltx-2api.com/videos/abc123.mp4",
  "duration": 8,
  "resolution": "1080p"
}

Pro Tip: Use Webhooks

Instead of polling, configure a webhook URL to receive automatic notifications when your video is ready:

{
  "prompt": "...",
  "webhook_url": "https://your-server.com/webhook/ltx2"
}

Next Steps