Skip to Content

LTX 2.3

Overview

LTX 2.3 is a DiT-based video generation model on Pixwith API that supports both text-to-video and image-to-video workflows.
It supports flexible duration up to 20 seconds and resolution options from 480p to 1080p.

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.
image_urlsarrayConditionalFor image-to-video mode only. Must contain exactly 1 image URL. Omit for text-to-video mode.
model_idstringYes2-49
optionsobjectYesConfiguration options for the task
options.prompt_optimizationbooleanYesIf true, prompt text will be auto-optimized before generation.
options.resolutionstringYesValid values: '480p', '720p', '1080p'. Default: '480p'.
options.durationintYesValid values: 5, 10, 15, 20. Default: 5.

Example Request - Text-to-Video

{ "prompt": "A cinematic drone shot gliding over a foggy coastal cliff at sunrise", "model_id": "2-49", "options": { "prompt_optimization": true, "resolution": "720p", "duration": 10 } }

Example Request - Image-to-Video (single image)

{ "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-49", "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