Netwrck AI Agents > API Docs > LTX 2.3 Text to Video
LTX 2.3 Text to Video API
Generate high-quality AI videos from text prompts using LTX 2.3. Supports 6-20 second durations, up to 2160p (4K) resolution, 16:9 and 9:16 aspect ratios, configurable frame rates (24/25/48/50 fps), and automatic audio generation.
Related Tools:
LTX 2.3 Image to Video,
LTX 2 Video Generator,
WAN Video Generator,
RA1 Art Generator,
Flux Kontext
Quick Start
curl -X POST https://beta.netwrck.com/api/ltx-text-to-video \
-H "Content-Type: application/json" \
-d '{
"api_key": "YOUR_API_KEY",
"prompt": "Drone descent through a derelict radio telescope dish, spiraling into the rusted bowl where wildflowers grow through cracked concrete",
"duration": 6,
"resolution": "1080p",
"aspect_ratio": "16:9",
"fps": 25,
"generate_audio": true
}'import requests
resp = requests.post("https://beta.netwrck.com/api/ltx-text-to-video", json={
"api_key": "YOUR_API_KEY",
"prompt": "Drone descent through a derelict radio telescope dish",
"duration": 6,
"resolution": "1080p",
"generate_audio": True,
"response_mode": "polling"
})
data = resp.json()
print(data) # {"job_id": "...", "status": "in_progress", ...}const resp = await fetch("https://beta.netwrck.com/api/ltx-text-to-video", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
api_key: "YOUR_API_KEY",
prompt: "Drone descent through a derelict radio telescope dish",
duration: 6,
resolution: "1080p",
generate_audio: true,
response_mode: "polling"
})
});
const data = await resp.json();
console.log(data);Endpoint
POST https://beta.netwrck.com/api/ltx-text-to-video
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| api_key | string | required | Your API key |
| prompt | string | required | Text description of the video to generate |
| duration | number | optional | Duration in seconds: 6, 8, 10, 12, 14, 16, 18, 20. Default: 6. Durations >10s require 25fps and 1080p. |
| resolution | string | optional | 1080p, 1440p, or 2160p. Default: 1080p |
| aspect_ratio | string | optional | 16:9 or 9:16. Default: 16:9 |
| fps | number | optional | 24, 25, 48, or 50. Default: 25 |
| generate_audio | boolean | optional | Whether to generate audio. Default: true |
| response_mode | string | optional | "inline" (wait for result) or "polling" (returns job_id). Default: inline |
Response
Inline mode
{
"result": {
"video": {
"url": "https://v3b.fal.media/files/...",
"content_type": "video/mp4",
"file_name": "output.mp4",
"duration": 6.0,
"width": 1920,
"height": 1080,
"fps": 25
}
},
"credits_charged": 29,
"cost_usd": 0.288
}Polling mode
Initial response (HTTP 202):
{
"job_id": "job_abc123",
"status": "in_progress",
"credits_charged": 29,
"cost_usd": 0.288
}Poll status: GET /api/fal/status/{job_id}?api_key=YOUR_API_KEY
{
"status": "completed",
"result": {
"video": {
"url": "https://v3b.fal.media/files/...",
"content_type": "video/mp4"
}
}
}Examples
Long duration 1080p video with audio
curl -X POST https://beta.netwrck.com/api/ltx-text-to-video \
-H "Content-Type: application/json" \
-d '{
"api_key": "YOUR_API_KEY",
"prompt": "Cinematic flyover of a misty mountain lake at dawn, golden light breaking through clouds",
"duration": 16,
"resolution": "1080p",
"fps": 25,
"generate_audio": true
}'Portrait video for social media
curl -X POST https://beta.netwrck.com/api/ltx-text-to-video \
-H "Content-Type: application/json" \
-d '{
"api_key": "YOUR_API_KEY",
"prompt": "A cat sitting on a windowsill watching rain, cozy interior, warm lighting",
"duration": 8,
"resolution": "1080p",
"aspect_ratio": "9:16",
"fps": 25,
"generate_audio": true
}'Pricing
Cost is calculated per second of video generated. Charged only on success.
| Resolution | Cost/sec |
|---|---|
| 1080p | $0.048 |
| 1440p | $0.096 |
| 2160p | $0.192 |
Example: 10s at 1080p = $0.048 x 10 = $0.48 (48 credits)
Error Responses
| Status | Description |
|---|---|
| 401 | Missing or invalid API key |
| 402 | Insufficient credits |
| 400 | Invalid parameters (missing prompt, bad duration/resolution) |
| 500 | Generation failed |
Netwrck