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_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. |
| image_urls | array | Conditional | For image-to-video mode only. Must contain exactly 1 image URL. Omit for text-to-video mode. |
| model_id | string | Yes | 2-49 |
| 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: '480p', '720p', '1080p'. Default: '480p'. |
| options.duration | int | Yes | Valid 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
| 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