For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Contact SalesAPI Console
API DocumentationOpen Source ModelAPI Changelog
API DocumentationOpen Source ModelAPI Changelog
  • Getting Started
    • Introduction
    • Quick Start
  • Implementation Guides
    • Authentication
    • Supported Models
    • Input Formats
    • Prompting Guide
    • Async Jobs
    • Rate Limits
    • Error Handling
    • Debugging Requests
  • Billing
    • Pricing
    • Auto Top-Up
  • API Reference
      • POSTGenerate video from text
      • POSTGenerate video from image
      • POSTGenerate video from audio
      • POSTRetake video section
      • POSTExtend video duration
LogoLogo
Contact SalesAPI Console
API ReferenceVideo Generation

Generate video from text

POST
https://api.ltx.video/v1/text-to-video
POST
/v1/text-to-video
$curl -X POST https://api.ltx.video/v1/text-to-video \
> -H "Authorization: Bearer YOUR_API_KEY" \
> -H "Content-Type: application/json" \
> -d '{
> "prompt": "A majestic eagle soaring through clouds at sunset",
> "model": "ltx-2-3-pro",
> "duration": 8,
> "resolution": "1920x1080"
> }' \
> -o generated_video.mp4
Generate a video from a text prompt using AI models.
Was this page helpful?
Previous

Generate video from image

Next
Built with

Authentication

AuthorizationBearer
API key authentication

Request

This endpoint expects an object.
promptstringRequired<=5000 characters
Text prompt describing the desired video content
modelenumRequired

Model to use for generation. See Supported Models for details.

Allowed values:
durationintegerRequired

Video duration in seconds. See Supported Models for available durations per model.

resolutionstringRequired

Output video resolution. See Supported Models for available resolutions per model.

fpsintegerOptionalDefaults to 24

Frame rate in frames per second. See Supported Models for available FPS per model and resolution.

camera_motionenumOptional
Apply camera motion effects to the generated video.
generate_audiobooleanOptionalDefaults to trueBeta

Generate audio for the video. When true, the generated video will include AI-generated audio matching the scene. When false, only silent video is generated.

Response headers

x-request-idstring
Unique request identifier for tracking and debugging
Content-Typestring
The MIME type of the video file
Content-Lengthinteger
The size of the video file in bytes

Response

Video generated successfully

Errors

400
Bad Request Error
401
Unauthorized Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error
504
Gateway Timeout Error