How lightricks/ltx-desktop works
LTX Desktop is a desktop video-generation and editing app with local model inference or an optional cloud API. The principal workflow is to choose a generation mode and prompt in the UI, submit a job, run it through backend generation services, and use the resulting media in the editor. The README documents the major generation capabilities; the sampled backend excerpts show application composition and pipeline construction. Connections not established by those sources are omitted.
Main entry points: use-generation.ts Generation controls · pipelines_handler.py Pipeline lifecycle · app_handler.py App composition · App.tsx App interface
Components 21
Desktop shell
- Desktop runtime
electron/main.ts
Generation and editing UI
- App interface
frontend/App.tsx - Generation controls
frontend/hooks/use-generation.ts - Video editor
frontend/views/editor/useTimelineDrag.ts - Backend client
frontend/lib/api-client.ts - Editor projects
frontend/lib/project-storage.ts
Backend API and orchestration
- HTTP API
backend/ltx2_server.py - App composition
backend/app_handler.py - Pipeline lifecycle
backend/handlers/pipelines_handler.py - Generation handling
backend/handlers/generation_handler.py - Generation queue
backend/services/generation_queue/runner.py - Remote access
backend/remote/controller.py
Inference and media
- Video generation
backend/services/fast_video_pipeline/ltx_fast_video_pipeline.py - Audio-to-video
backend/services/a2v_pipeline/distilled_a2v_pipeline.py - IC-LoRA
backend/services/ic_lora_pipeline/ltx_ic_lora_pipeline.py - Retake and extend
backend/services/retake_pipeline/ltx_retake_pipeline.py - Image generation
backend/services/image_generation_pipeline/image_generation_pipeline.py - Cloud generation
backend/services/ltx_api_client/ltx_api_client.py
Configuration and state
- App settings
backend/state/app_settings.py - Runtime policy
backend/runtime_config/runtime_policy.py
Other components
- Creator
Connections 24
- Creator → App interface: uses
README.md - Creator → Video editor: edits video
README.md - App interface → Generation controls: offers generation
README.md - Generation controls → Backend client: submits jobs
- Backend client → HTTP API: sends requests
- HTTP API → App composition: delegates
- App composition → Pipeline lifecycle: wires
backend/app_handler.py - Pipeline lifecycle → Video generation: creates
backend/handlers/pipelines_handler.py - Pipeline lifecycle → Image generation: creates
backend/handlers/pipelines_handler.py - Pipeline lifecycle → IC-LoRA: creates
backend/handlers/pipelines_handler.py - Pipeline lifecycle → Audio-to-video: creates
backend/handlers/pipelines_handler.py - Pipeline lifecycle → Retake and extend: creates
backend/handlers/pipelines_handler.py - Generation handling → Generation queue: queues jobs
- Generation controls → Video generation: supports text and image video
- Generation controls → Audio-to-video: supports audio video
README.md - Generation controls → IC-LoRA: supports IC-LoRA
README.md - Generation controls → Retake and extend: supports retake
README.md - Generation controls → Image generation: supports image creation and editing
README.md - Generation controls → Cloud generation: offers API mode
README.md - Video editor → Editor projects: stores projects
frontend/lib/project-storage.ts - App composition → App settings: loads settings
backend/app_handler.py - Pipeline lifecycle → Runtime policy: uses policy
backend/handlers/pipelines_handler.py - Desktop runtime → App interface: hosts interface
- Remote access → App composition: controls exposure
backend/remote/controller.py