Skip to Content

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_00000000000000000000000000000000

Endpoints

1. Create Task

Request

POST https://api.pixwithapi.online/api/task/create

Headers

HeaderValueRequired
Content-Typeapplication/jsonYes
Api-Key{API_KEY}Yes

Request Parameters

ParameterTypeRequiredDescription
promptstringYesThe input prompt for generation. Max length: 1500.
image_urlsarrayConditionalFor 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_idstringYes2-84
optionsobjectYesConfiguration options for the task
options.prompt_optimizationbooleanYesIf true, prompt text will be auto-optimized before generation.
options.resolutionstringYesValid values: '720p', '1080p', '2K', '4K'. Default: '720p'.
options.durationintYesValid values: 5, 10, 15, 20. Default: 5.
options.aspect_ratiostringNoText-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

ParameterTypeDescription
codeint1=success, 0=error
messagestringSuccess and failure messages
dataobject
data.task_idstring
data.estimated_timeintEstimated time in seconds

Response

{ "code": 1, "message": "success", "data": { "task_id": "d425ab4dc256f0ebaa84862b9cea8a3d", "estimated_time": 150 } }
Last updated on