LTX 2 19B
High-performance video generation with LoRA fine-tuning support
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/generateTask/ltx-2-19b | Create generation task |
| GET | /api/v1/statusTask/ltx-2-19b | Query task status |
Authentication
All requests require an API Key in the header:
Request Body
Parameters
Parameter
Required
Default
Description
request_typestring—
asyncasync (polling) or callback (webhook)
callback_urlstring✱
—
Callback URL, required when request_type=callback
providerstring—
autoRouting strategy: auto, value, or official
inputobject✓
—
Model input parameters
Mode Options:
text-to-video— Generate video from textimage-to-video— Generate video from imagetext-to-video-LoRA— Text-to-video with LoRAimage-to-video-LoRA— Image-to-video with LoRA
Example
Text-to-Video
Image-to-Video with LoRA
Text-to-Video with Multiple LoRAs
Response
POST /api/v1/generateTask/ltx-2-19b
Returns taskId on success for subsequent status queries.
Success:
Error:
GET /api/v1/statusTask/ltx-2-19b
Query task execution status and results via taskId.
Success:
Failed:
Status Response Fields
| Field | Type | Description |
|---|---|---|
taskId | string | Unique task identifier |
state | string | pending processing success failed |
resultJson | string | JSON containing resultUrls array (on success) |
failCode | string | Error code (on failure) |
failMsg | string | Error message (on failure) |
createTime | integer | Task creation timestamp (ms) |
completeTime | integer | Task completion timestamp (ms) |
costTime | integer | Processing duration (ms) |
Error Codes
| Code | Description |
|---|---|
| 400 | Invalid parameters or request error |
| 401 | Invalid or missing API Key |
| 429 | Rate limit exceeded |
| Fail Code | Description |
|---|---|
CONTENT_VIOLATION | Content violates safety guidelines |
INVALID_IMAGE_URL | Cannot access provided image URL |
INVALID_LORA_URL | Cannot download LoRA model |
Rate Limits
| Limit | Value |
|---|---|
| Requests | 10000 / minute |
| Concurrent tasks | 1000 |
Exceeding limits returns 429 error. Wait and retry.
Tips
- Generation time:
- 480p: ~40-60 seconds
- 720p: ~60-90 seconds
- 1080p: ~90-120 seconds
- LoRA mode adds 10-20 seconds for loading
- Submit task, wait 60 seconds, then poll every 5 seconds
- Callback mode: Video generation takes time, strongly recommend using
callbackmode. - Video expiration: Result URLs are valid for 15 days. Download promptly.
- Content moderation: Prompts must comply with content safety guidelines.
- LoRA fine-tuning:
- Load custom LoRA models for specific styles or characters
- LoRA URL must be publicly downloadable (HuggingFace, Civitai, etc.)
- URL should include
?download=trueor similar download parameters - Max 3 LoRA models simultaneously
scaleparameter controls LoRA influence, recommended: 0.5-2.0
- Resolution selection:
480p: Fast generation, for previews720p: Balanced quality and speed1080p: Highest quality, for final output
- Duration: Supports flexible 5-20 second duration, billed per second.
- Seed reproduction: Same
seed+prompt+ parameters reproduces identical results. - Image formats:
image_urlssupports JPG, PNG, WebP, max 10MB per image. - LoRA compatibility: Use video-trained LoRAs; image LoRAs may not work well.