Skip to content

yazelin/ltx-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LTX CLI - Command-line Video Generation Tool

🎬 Generate videos from text prompts using the LTX API.

Features

  • ✅ Simple command-line interface
  • ✅ Text-to-video generation
  • ✅ Configurable duration and resolution
  • ✅ Automatic API key management
  • ✅ Multiple output formats

Installation

pip install ltx-cli

Or install from source:

git clone https://github.com/yazelin/ltx-cli.git
cd ltx-cli
pip install -e .

Quick Start

  1. Get your API key from LTX Console

  2. Configure API key:

mkdir -p ~/.config/ltx-desktop
echo "YOUR_API_KEY" > ~/.config/ltx-desktop/api-key.txt
chmod 600 ~/.config/ltx-desktop/api-key.txt
  1. Generate your first video:
ltx-cli --prompt "A cute orange cat yawning in sunlight" --output cat.mp4

Usage

Basic Example

ltx-cli --prompt "Sunset over the ocean" --output sunset.mp4

Custom Duration and Resolution

ltx-cli --prompt "A golden retriever running" \
        --duration 8 \
        --resolution 1280x720 \
        --output dog.mp4

All Options

usage: ltx-cli [-h] --prompt PROMPT [--output OUTPUT] [--duration DURATION]
               [--resolution RESOLUTION] [--api-key API_KEY]

options:
  -h, --help            show this help message and exit
  --prompt, -p PROMPT   Video description text
  --output, -o OUTPUT   Output file path (default: output.mp4)
  --duration, -d DURATION
                        Video duration in seconds (default: 5)
  --resolution, -r RESOLUTION
                        Video resolution (default: 1920x1080)
  --api-key API_KEY     LTX API key (reads from ~/.config/ltx-desktop/api-key.txt if not provided)

Pricing

  • Text encoding / prompt enhancement: FREE
  • Video generation: PAID (requires API credits)

Check your usage at LTX Console

API Documentation

Official LTX API docs: https://docs.ltx.video/

Requirements

  • Python 3.7+
  • requests library
  • LTX API key

License

MIT License - see LICENSE file for details

Contributing

Pull requests are welcome! For major changes, please open an issue first.

Author

Yaze Lin (@yazelin)

Links

About

🎬 Command-line video generation tool using LTX API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages