๐๏ธ
LTX-2 API
activeLTX-2 19B โ advanced AI video generation with text-to-video, image-to-video, lipsync, and control modes. Up to 1080p, 5โ20 seconds.
LightTricks / WaveSpeedvideo24 credits/call
Provider
LightTricks / WaveSpeed
Pricing
20โ256 credits per video (~$0.04โ$0.51)
Speed
30โ120 seconds
Output
video
Quick Start
Send a request to the LTX-2 API:
bash
curl -X POST https://apiin.one/api/v1/videos/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "ltx-2",
"prompt": "A cat playing piano in a jazz bar, cinematic lighting",
"resolution": "720p",
"aspect_ratio": "16:9",
"duration": 5
}'API Endpoint
POST
/api/v1/videos/generationsSend a POST request with your API key to generate content using LTX-2.
Headers
| Header | ์ ํ | ํ์ | ์ค๋ช |
|---|---|---|---|
Authorization | string | ํ์ | Bearer YOUR_API_KEY |
Content-Type | string | ํ์ | application/json |
Body Parameters
| ๋งค๊ฐ๋ณ์ | ์ ํ | ํ์ | ์ค๋ช |
|---|---|---|---|
model | string | ํ์ | Model identifier: "ltx-2" |
prompt | string | ์ ํ ์ฌํญ | Text description (required for text-to-video and image-to-video) |
type | string | ์ ํ ์ฌํญ | Mode: "text-to-video", "image-to-video", "lipsync", or "control" |
image | string | ์ ํ ์ฌํญ | Image URL for image-to-video mode |
audio | string | ์ ํ ์ฌํญ | Audio URL for lipsync mode |
audio_duration | number | ์ ํ ์ฌํญ | Audio duration in seconds for lipsync (5โ20) |
video | string | ์ ํ ์ฌํญ | Video URL for control mode |
video_duration | number | ์ ํ ์ฌํญ | Video duration for control mode (5โ20) |
mode | string | ์ ํ ์ฌํญ | Control mode: "pose", "depth", or "canny" |
audio_mode | string | ์ ํ ์ฌํญ | Audio mode for control: "preserve", "generate", or "none" |
resolution | string | ์ ํ ์ฌํญ | Output resolution: "480p", "720p", or "1080p" (๊ธฐ๋ณธ๊ฐ: 720p) |
aspect_ratio | string | ์ ํ ์ฌํญ | Aspect ratio: "16:9" or "9:16" (text-to-video only) (๊ธฐ๋ณธ๊ฐ: 16:9) |
duration | number | ์ ํ ์ฌํญ | Video duration in seconds (5โ20) (๊ธฐ๋ณธ๊ฐ: 5) |
seed | number | ์ ํ ์ฌํญ | Random seed for reproducibility (-1 for random) (๊ธฐ๋ณธ๊ฐ: -1) |
Example Request
json
{
"model": "ltx-2",
"prompt": "A cat playing piano in a jazz bar, cinematic lighting",
"resolution": "720p",
"aspect_ratio": "16:9",
"duration": 5
}Example Response
Successful task creation response.
{
"code": 200,
"message": "success",
"data": {
"task_id": "n50xxxx_ltx2",
"status": "IN_PROGRESS"
}
}Check Task Status
For asynchronous tasks, poll the status endpoint to check when your task is complete:
GET
/api/v1/tasks/{task_id}Returns the current status of a generation task. Poll until status is 'completed' or 'failed'.
bash
curl https://apiin.one/api/v1/tasks/task_abc123 \
-H "Authorization: Bearer aio_your_key"Use Cases
- โGenerate high-quality videos from text prompts
- โAnimate images into video with image-to-video mode
- โCreate lipsync videos by combining audio with AI video
- โApply pose/depth/edge control to existing video
API Tester
Test the LTX-2 API directly from your browser:
API ํ
์คํธ ํ๊ฒฝPOST
Error Codes
{
"error": {
"code": 400,
"message": "Invalid parameters",
"type": "invalid_request"
}
}Frequently Asked Questions
How much does LTX-2 cost?
Credits depend on mode, resolution, and duration. Text/image-to-video: 20โ76 credits. Lipsync: 32โ128 credits. Control: 64โ256 credits.
What modes does LTX-2 support?
Four modes: text-to-video, image-to-video, lipsync (audio+video), and control (pose/depth/canny). Specify with the "type" parameter.
What resolutions are supported?
480p, 720p, and 1080p. Higher resolutions cost more credits.
Why Use LTX-2 Through API in One?
14 specialized modes in one model
2Lipsync from audio input
3Video control with pose/depth/canny
4Up to 1080p and 20 seconds
Ready to use LTX-2?
Get Your API Key โ