LTX-2.3 22B Video Trainer
/v1/runLtx23 Video Trainer by Lightricks - advanced AI model for training. Delivers high-quality results with fast inference, suitable for both creative and production workflows.
Request body
Submit an async generation request. The model field selects the model; other fields are model-specific input parameters.
Model identifier. Set to lightricks/ltx23-video-trainer.
Default: lightricks/ltx23-video-trainer
The aspect ratio of the generated image.
Allowed values: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16
Resolution to use for training. Higher resolutions require more memory.
Allowed values: low, medium, high
Default: medium
Learning rate for optimization. Higher values can lead to faster training but may cause overfitting.
Range: 0.000001 to 1
Default: 0.0002
Target frames per second for the video.
Range: 8 to 60
Default: 25
A list of validation prompts to use during training. When providing an image, _all_ validation inputs must have an image.
Default:
The rank of the LoRA adaptation. Higher values increase capacity but use more memory.
Allowed values: 8, 16, 32, 64, 128
Default: 32
When audio duration doesn't match video duration, stretch/compress audio without changing pitch. If disabled, audio is trimmed or padded with silence.
Default: true
Number of frames per training sample. Must satisfy frames % 8 == 1 (e.g., 1, 9, 17, 25, 33, 41, 49, 57, 65, 73, 81, 89, 97).
Range: 9 to 121
Default: 89
The number of training steps.
Range: 100 to 20000
Default: 2000
The aspect ratio to use for validation.
Allowed values: 16:9, 1:1, 9:16
Default: 1:1
Enable joint audio-video training. If None (default), automatically detects whether input videos have audio. Set to True to force audio training, or False to disable.
STG (Spatio-Temporal Guidance) scale. 0.0 disables STG. Recommended value is 1.0.
Range: 0 to 3
Default: 1
The duration threshold in seconds. If a video is longer than this, it will be split into scenes.
Range: 1 to 60
Default: 30
If true, videos above a certain duration threshold will be split into scenes.
Default: true
The number of frames in validation videos.
Range: 9 to 121
Default: 89
A negative prompt to use for validation.
Default: worst quality, inconsistent motion, blurry, jittery, distorted
Target frames per second for validation videos.
Range: 8 to 60
Default: 25
Whether to generate audio in validation samples.
Default: true
URL to zip archive with videos or images. Try to use at least 10 files, although more is better. **Supported video formats:** .mp4, .mov, .avi, .mkv **Supported image formats:** .png, .jpg, .jpeg Note: The dataset must contain ONLY videos OR ONLY images - mixed datasets are not supported. The archive can also contain text files with captions. Each text file should have the same name as the media file it corresponds to.
Probability of conditioning on the first frame during training. Higher values improve image-to-video performance.
Range: 0 to 1
Default: 0.5
Normalize audio peak amplitude to a consistent level. Recommended for consistent audio levels across the dataset.
Default: true
A phrase that will trigger the LoRA style. Will be prepended to captions during training.
Default:
When enabled, the trainer returns a downloadable archive of your preprocessed training data for manual inspection. Use this to verify that your videos, images, and captions were processed correctly before committing to a full training run.
Default: false
If true, videos will be automatically scaled to the target frame count and fps. This option has no effect on image datasets.
Default: false
The resolution to use for validation.
Allowed values: low, medium, high
Default: high
Response Schema
The submit endpoint returns an accepted generation task. Poll the result endpoint with the returned id for terminal outputs or errors.
Error message if the task failed. Empty on success.
Unique identifier for the generation task.
Model ID used for the prediction.
Array of generated content. Empty when status is not completed.
Status of the task: pending, running, completed, failed, or timeout.
Allowed values: pending, running, completed, failed, timeout
Model capabilities
Capabilities declared by the model registry.
Default: training
Execution mode declared by the model registry.
Default: async

