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-videoGenerate 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-videoGenerate 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | Text description of the video to generate |
| duration | integer | Yes | Video duration in seconds (6-20) |
| resolution | string | No | 1080p, 1440p, or 4k (default: 1080p) |
| fps | integer | No | 25 or 50 (default: 25) |
| mode | string | No | fast or pro (default: fast) |
| webhook_url | string | No | URL to receive completion callback |