LogoLtx-2 API

LTX-2 API Documentation

Complete API reference for the LTX-2 API video generation platform. Learn how to authenticate, make requests, and handle responses.

Base URL

https://api.ltx-2api.com/v1

Authentication

All API requests require authentication using an API key. Include your API key in the request headers:

Authorization: Bearer YOUR_API_KEY
x-project-key: ltx-2api-com

Get your API key from the Dashboard.

API Endpoints

POST/text-to-video

Generate a video from a text prompt.

Request Body

{
  "prompt": "A serene lake at sunset with mountains",
  "duration": 10,
  "resolution": "1080p",
  "fps": 25,
  "mode": "fast",
  "webhook_url": "https://your-server.com/webhook"
}
POST/image-to-video

Generate a video from an input image.

Request Body

{
  "image_url": "https://example.com/image.jpg",
  "prompt": "Camera slowly zooms in",
  "duration": 8,
  "resolution": "1080p",
  "fps": 25,
  "mode": "pro"
}
GET/status/{task_id}

Check the status of a video generation task.

Response

{
  "task_id": "task_abc123",
  "status": "completed",
  "progress": 100,
  "video_url": "https://cdn.ltx-2api.com/videos/...",
  "created_at": "2024-01-15T10:30:00Z",
  "completed_at": "2024-01-15T10:30:45Z"
}

Request Parameters

ParameterTypeRequiredDescription
promptstringYesText description of the video to generate
durationintegerYesVideo duration in seconds (6-20)
resolutionstringNo1080p, 1440p, or 4k (default: 1080p)
fpsintegerNo25 or 50 (default: 25)
modestringNofast or pro (default: fast)
webhook_urlstringNoURL to receive completion callback

Related Documentation