Loading playground
Input
Additional Settings
Customize your input with more control.
Result
Idle
Customize your input with more control.
Customize your input with more control.
Hint: Upload a prepared .zip archive or provide a URL. See the field description for the required file layout.
Customize your input with more control.
The cost of training depends on the number of steps. The formula is: 0.0061 * steps. With 1000 steps, your request will cost $6.10.
Fine-tune your training parameters and start right now.
/extend-suffix)The /extend-suffix endpoint trains a LoRA for the LTX 2.3 model that generates the lead-in to a video — it extends a clip backward in time. During training, the last N frames of each clip are kept as a clean "suffix" and the model learns to generate the frames that lead up to them. At inference you supply a closing clip and the model produces the preceding section.
Key features:
Provide a single .zip archive (linked via training_data_url) of plain videos:
.mp4, .mov, .avi, .mkv.txt with the same base name as each video (optional but recommended).Images are rejected (there is nothing to extend over time on a still). If you enable audio extension, every training clip — and every validation clip — must contain an audio track. Aim for at least 10 clips. Files in subfolders are fine — clips with the same name in different subfolders are kept distinct automatically.
Minimum clip length: with auto_scale_input off (the default), each video must already have at least number_of_frames frames (default 89, ≈ 3.7 s at 24 fps). Shorter clips are silently skipped, and if every clip is too short the request fails (422, "All training videos are too short to be trainable"). Turn on auto_scale_input to resample shorter clips to the target frame count instead.
With with_audio enabled, audio is required on every clip. Joint audio extension requires every training clip and every validation clip to contain an audio track; if any lacks one, the request is rejected (HTTP 422). With with_audio off, audio is ignored and the output is silent.
training_data_url (required)Type: string
URL to the .zip archive of videos.
trigger_phraseType: string
Default: ""
Phrase prepended to captions during training; include it at inference.
rankType: integer (8, 16, 32, 64, 128)
Default: 32
LoRA capacity.
number_of_stepsType: integer
Default: 2000 (range 100–20000)
Number of optimization steps.
learning_rateType: number
Default: 0.0002
Optimization step size.
conditioning_framesType: integer
Default: 8 (range 8–121)
Number of trailing frames kept as the clean suffix the model leads up to. Must be ≡ 0 (mod 8) (e.g. 8, 16, 24). It must be short enough that there is a lead-in left to generate — the suffix cannot cover the whole number_of_frames (or validation_number_of_frames) clip.
| Value | Behavior |
|---|---|
| 8 | Short suffix — the model generates most of the lead-in (default) |
| 16–24 | Longer closing context before the generated lead-in |
number_of_framesType: integer
Default: 89 (range 9–121)
Frames per training clip. Must satisfy frames % 8 == 1 (other values are snapped down to the nearest valid count) and must be larger than the suffix window.
frame_rateType: integer
Default: 24 (range 8–60)
Target frames per second.
resolutionType: string (low, medium, high)
Default: medium
| Resolution | 16:9 | 1:1 | 9:16 |
|---|---|---|---|
| low | 512×288 | 512×512 | 288×512 |
| medium | 768×448 | 768×768 | 448×768 |
| high | 960×544 | 960×960 | 544×960 |
aspect_ratioType: string (16:9, 1:1, 9:16)
Default: 1:1
auto_scale_inputType: boolean
Default: false
Fit videos to the target frame count and frame rate.
split_input_into_scenesType: boolean
Default: true
Split long clips into scenes before training.
split_input_duration_thresholdType: number
Default: 30.0 (range 1.0–60.0)
Duration above which a clip is eligible for scene splitting.
with_audioType: boolean
Default: false
Set true to jointly extend audio and video — the model generates both leading up to the same closing window so they stay in sync. Requires every training clip and every validation clip to contain an audio track. Default (false) produces a video-only, silent extension.
audio_normalizeType: boolean
Default: true
Peak-normalize audio for consistent loudness (used when audio extension is enabled).
audio_preserve_pitchType: boolean
Default: true
Preserve pitch when fitting audio to video duration.
validationType: array
Default: [] (max 2 entries)
Validation samples, each an object with:
prompt (string) — the text prompt.video_url (string, required) — a video to extend backward. Its last conditioning_frames frames are used as the suffix.The validation clip must be at least conditioning_frames long (at the validation frame rate).
validation_negative_promptType: string
Default: a built-in quality negative prompt.
validation_number_of_framesType: integer
Default: 89 (range 9–121)
Must be larger than the suffix window so there is a lead-in to preview.
validation_frame_rateType: integer
Default: 24 (range 8–60)
validation_resolutionType: string
Default: high
validation_aspect_ratioType: string
Default: 1:1
stg_scaleType: number
Default: 1.0 (range 0.0–3.0)
debug_datasetType: boolean
Default: false
Return an archive of the preprocessed data for inspection.
lora_file — the trained LoRA weights (.safetensors).config_file — JSON describing the trigger phrase and training type.video — combined validation reel (when validation samples were provided).debug_dataset — preprocessed-data archive, only when debug_dataset is enabled.A successful run is billed max(100, number_of_steps) billable units. Requests that fail before training completes (input-validation errors / HTTP 422, or dataset-download failures) are billed 0 units.
conditioning_frames frames are held clean as the suffix and the model learns to generate the preceding lead-in. With audio extension on, the matching closing audio window conditions the audio so it stays in sync. Validation previews run at intervals..zip is unpacked; macOS __MACOSX metadata folders are ignored.auto_scale_input they are resampled to the target frame rate/count.conditioning_frames frames of each clip are kept clean as conditioning; everything before is the generation target. This happens automatically.Good caption: a person walking up to and opening a door
Weak caption: door
At inference, supply a closing clip at least conditioning_frames long, use the same caption style and trigger phrase, and match the audio setting.
json{ "training_data_url": "https://example.com/clips.zip", "trigger_phrase": "", "rank": 32, "number_of_steps": 2000, "learning_rate": 0.0002, "conditioning_frames": 8, "number_of_frames": 89, "frame_rate": 24, "resolution": "medium", "aspect_ratio": "1:1", "with_audio": false, "validation": [ { "prompt": "a person approaching a door", "video_url": "https://example.com/closing.mp4" } ] }
conditioning_frames for more closing context.conditioning_frames long, or lower conditioning_frames.with_audio is true, every training and validation clip must have an audio track.rank, more clips.conditioning_frames not a multiple of 8 (use 8, 16, 24, ...).