Ltx 2 19b Text To Video API Documentation
Playground
Try it on WaveSpeedAI!LTX-2 19b is the first DiT-based audio-video foundation model with synchronized audio and video, high fidelity, multiple performance modes, and production-ready outputs in one model. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Features
LTX-2 is the first DiT-based (Diffusion Transformer) audio-video foundation model, capable of generating synchronized audio and video from a text prompt. With 19 billion parameters, it produces high-fidelity, production-ready clips with natural sound that matches the visuals — no post-production audio layering required.
Why Choose This?
-
Synchronized audio-video generation Outputs video with matching audio in a single pass — footsteps, ambient sounds, speech-like tones, and environmental audio are generated to fit the visual content.
-
High-fidelity visuals Leverages a 19B-parameter DiT architecture for detailed, temporally consistent video with minimal flickering.
-
Flexible resolution and aspect ratio Supports 480p, 720p, and 1080p outputs in both 16:9 (landscape) and 9:16 (vertical) formats.
-
Variable duration Generate clips from 5 to 20 seconds, suitable for quick loops or longer narrative beats.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text description of the scene, action, and audio cues |
| resolution | No | Output resolution: 480p, 720p (default), or 1080p |
| aspect_ratio | No | Output format: 16:9 (default) or 9:16 |
| duration | No | Video length in seconds (5-20) |
| seed | No | Random seed for reproducibility (-1 for random) |
Resolution Options
| Resolution | Best For |
|---|---|
| 480p | Fast previews, iteration, lowest cost |
| 720p | Balanced quality and cost (default) |
| 1080p | Final delivery, maximum detail |
Aspect Ratio Options
| Aspect Ratio | Use Case |
|---|---|
| 16:9 | Landscape, YouTube, desktop |
| 9:16 | Vertical, TikTok, Stories, Reels |
How to Use
- Write your prompt — describe the scene, action, and desired audio cues.
- Select resolution — 480p for iteration, 720p for balance, 1080p for final output.
- Choose aspect ratio — 16:9 for landscape, 9:16 for vertical platforms.
- Set duration — 5-20 seconds based on your content needs.
- Run — submit and download the generated video with synchronized audio.
Pricing
| Resolution | 5s | 10s | 15s | 20s |
|---|---|---|---|---|
| 480p | $0.06 | $0.12 | $0.18 | $0.24 |
| 720p | $0.08 | $0.16 | $0.24 | $0.32 |
| 1080p | $0.12 | $0.24 | $0.36 | $0.48 |
Billing Rules
- Base price: $0.08 (720p, 5 seconds)
- Resolution multiplier: 480p = 0.75×, 720p = 1×, 1080p = 1.5×
- Duration: Scales linearly (per 5 seconds)
- Total cost = duration × $0.08 × resolution_multiplier / 5
Best Use Cases
- Short-form Content — Create TikTok, Reels, and Stories with built-in audio.
- Product Demos — Generate promotional videos with ambient sound.
- Social Media — Produce engaging clips without separate audio editing.
- Prototyping — Quickly visualize concepts with synchronized audiovisuals.
- Marketing — Create ad content with cohesive sound design.
Pro Tips
- Audio is automatic — you don’t need to explicitly request it.
- Describe sounds when it matters (e.g., “jazz music,” “thunderstorm”).
- Match aspect ratio to platform: 9:16 for vertical-first, 16:9 for YouTube/desktop.
- Iterate at 480p to dial in the prompt, then render at higher resolution for final output.
- Use fixed seed when testing prompt variations to isolate the effect of your changes.
Notes
- Maximum video duration is 20 seconds.
- Audio is generated based on the visual content and prompt context.
- For longer content, generate multiple clips and edit together.
Related Models
- LTX-2 19B Image-to-Video — Animate a reference image into video with synchronized audio.
- Wan 2.5 T2V — Alternative text-to-video with the Wan ecosystem.
- Kling 2.6 T2V — Kuaishou’s latest text-to-video generation model.
- Sora 2 T2V — OpenAI’s text-to-video model with cinematic quality.
Authentication
For authentication details, please refer to the Authentication Guide.
API Endpoints
Submit Task & Query Result
set -euo pipefail
export WAVESPEED_API_KEY="your-api-key"
REQUEST_BODY=$(cat <<'JSON'
{
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"resolution": "720p",
"aspect_ratio": "16:9",
"duration": 5,
"seed": -1
}
JSON
)
# 1. Submit the prediction.
SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
-X POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/ltx-2-19b/text-to-video" \
-H "Authorization: Bearer ${WAVESPEED_API_KEY}" \
-H "Content-Type: application/json" \
-d "${REQUEST_BODY}")
TASK=$(printf '%s' "${SUBMIT_RESPONSE}" | jq 'if type == "object" and has("data") then .data else . end')
PREDICTION_ID=$(printf '%s' "${TASK}" | jq -r '.id // empty')
if [ -z "${PREDICTION_ID}" ]; then
printf 'Submission response did not contain a prediction id
' >&2
exit 1
fi
RESULT_URL=$(printf '%s' "${TASK}" | jq -r '.urls.get // empty')
if [ -z "${RESULT_URL}" ]; then RESULT_URL="https://api.wavespeed.ai/api/v3/predictions/${PREDICTION_ID}/result"; fi
# 2. Poll until the prediction finishes.
while true; do
RESPONSE=$(curl --silent --show-error --fail-with-body \
"${RESULT_URL}" \
-H "Authorization: Bearer ${WAVESPEED_API_KEY}")
RESULT=$(printf '%s' "${RESPONSE}" | jq 'if type == "object" and has("data") then .data else . end')
STATUS=$(printf '%s' "${RESULT}" | jq -r '.status // empty')
case "${STATUS}" in
completed) printf '%s\n' "${RESULT}" | jq '.outputs'; break ;;
failed|cancelled|timeout) printf '%s\n' "${RESULT}" | jq . >&2; exit 1 ;;
created|processing) sleep 2 ;;
*) printf 'Unexpected status: %s
' "${STATUS}" >&2; exit 1 ;;
esac
doneParameters
Task Submission Parameters
Request Parameters
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
| prompt | string | Yes | - | The positive prompt for the generation. | |
| resolution | string | No | 720p | 480p, 720p, 1080p | Video resolution. |
| aspect_ratio | string | No | 16:9 | 16:9, 9:16 | Aspect ratio of the video. |
| duration | integer | No | 5 | 5 ~ 20 | The duration of the generated media in seconds. |
| seed | integer | No | -1 | - | The random seed to use for the generation. -1 means a random seed will be used. |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data.id | string | Unique identifier for the prediction, Task Id |
| data.model | string | Model ID used for the prediction |
| data.outputs | array | Output values, usually URL strings; some models return text strings or structured result objects (empty when status is not completed) |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |
Result Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Yes | - | Task ID |
Result Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data | object | The prediction data object containing all details |
| data.id | string | Unique identifier for the prediction |
| data.model | string | Model ID used for the prediction |
| data.outputs | array<string | object> | Array of generated outputs (empty when status is not completed). Items are usually URL strings, but may be text strings or structured result objects, depending on the model. |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to poll for the prediction result |
| data.status | string | Status: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |