Ltx 2 19b Text To Video API Documentation

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

ParameterRequiredDescription
promptYesText description of the scene, action, and audio cues
resolutionNoOutput resolution: 480p, 720p (default), or 1080p
aspect_ratioNoOutput format: 16:9 (default) or 9:16
durationNoVideo length in seconds (5-20)
seedNoRandom seed for reproducibility (-1 for random)

Resolution Options

ResolutionBest For
480pFast previews, iteration, lowest cost
720pBalanced quality and cost (default)
1080pFinal delivery, maximum detail

Aspect Ratio Options

Aspect RatioUse Case
16:9Landscape, YouTube, desktop
9:16Vertical, TikTok, Stories, Reels

How to Use

  1. Write your prompt — describe the scene, action, and desired audio cues.
  2. Select resolution — 480p for iteration, 720p for balance, 1080p for final output.
  3. Choose aspect ratio — 16:9 for landscape, 9:16 for vertical platforms.
  4. Set duration — 5-20 seconds based on your content needs.
  5. Run — submit and download the generated video with synchronized audio.

Pricing

Resolution5s10s15s20s
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.

  • 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
done

Parameters

Task Submission Parameters

Request Parameters

ParameterTypeRequiredDefaultRangeDescription
promptstringYes-The positive prompt for the generation.
resolutionstringNo720p480p, 720p, 1080pVideo resolution.
aspect_ratiostringNo16:916:9, 9:16Aspect ratio of the video.
durationintegerNo55 ~ 20The duration of the generated media in seconds.
seedintegerNo-1-The random seed to use for the generation. -1 means a random seed will be used.

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
data.idstringUnique identifier for the prediction, Task Id
data.modelstringModel ID used for the prediction
data.outputsarrayOutput values, usually URL strings; some models return text strings or structured result objects (empty when status is not completed)
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds

Result Request Parameters

ParameterTypeRequiredDefaultDescription
idstringYes-Task ID

Result Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
dataobjectThe prediction data object containing all details
data.idstringUnique identifier for the prediction
data.modelstringModel ID used for the prediction
data.outputsarray<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.urlsobjectObject containing related API endpoints
data.urls.getstringURL to poll for the prediction result
data.statusstringStatus: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds
© 2026 WaveSpeedAI. All rights reserved.