LTX 2.5
Overview
LTX 2.5 generates high-fidelity synchronized audio-video from text prompts or a first-frame image.
It supports 720p / 1080p / 2K / 4K output, 5–20 second clips, landscape or vertical text-to-video, and optional last-frame guidance for image-to-video.
Test API KEY: key_00000000000000000000000000000000Endpoints
1. Create Task
Request
POST https://api.pixwithapi.online/api/task/createHeaders
| Header | Value | Required |
|---|---|---|
| Content-Type | application/json | Yes |
| Api-Key | {API_KEY} | Yes |
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | The input prompt for generation. Max length: 1500. |
| image_urls | array | Conditional | For image-to-video mode only. Provide 1 image URL as the first frame, or 2 image URLs as first frame then last frame. Omit for text-to-video mode. |
| model_id | string | Yes | 2-84 |
| options | object | Yes | Configuration options for the task |
| options.prompt_optimization | boolean | Yes | If true, prompt text will be auto-optimized before generation. |
| options.resolution | string | Yes | Valid values: '720p', '1080p', '2K', '4K'. Default: '720p'. |
| options.duration | int | Yes | Valid values: 5, 10, 15, 20. Default: 5. |
| options.aspect_ratio | string | No | Text-to-video only. Valid values: '16:9', '9:16'. Default: '16:9'. Ignored for image-to-video. |
Example Request - Text-to-Video
{
"prompt": "A cinematic drone shot gliding over a foggy coastal cliff at sunrise",
"model_id": "2-84",
"options": {
"prompt_optimization": true,
"resolution": "720p",
"duration": 10,
"aspect_ratio": "16:9"
}
}Example Request - Image-to-Video (first frame)
{
"prompt": "The character starts walking forward and the camera slowly pushes in",
"image_urls": [
"https://cdn.pixwithapi.online/images/example_start.jpeg"
],
"model_id": "2-84",
"options": {
"prompt_optimization": true,
"resolution": "1080p",
"duration": 5
}
}Example Request - Image-to-Video (first and last frame)
{
"prompt": "The character turns toward the camera and the scene settles on the final pose",
"image_urls": [
"https://cdn.pixwithapi.online/images/example_start.jpeg",
"https://cdn.pixwithapi.online/images/example_end.jpeg"
],
"model_id": "2-84",
"options": {
"prompt_optimization": true,
"resolution": "1080p",
"duration": 5
}
}Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | int | 1=success, 0=error |
| message | string | Success and failure messages |
| data | object | |
| data.task_id | string | |
| data.estimated_time | int | Estimated time in seconds |
Response
{
"code": 1,
"message": "success",
"data": {
"task_id": "d425ab4dc256f0ebaa84862b9cea8a3d",
"estimated_time": 150
}
}Last updated on