Back to Blog
Tutorials

How To Edit Videos With AI: Retake, Extend & Reframe

Fix a shot without regenerating it. Use LTX Retake to redo a section, Extend to add seconds, and Reframe to change aspect ratio, with the limits of each.

LTX Team
Tutorials
How To Edit Videos With AI: Retake, Extend & Reframe
Key Takeaways
  • Match the edit to the problem: Retake regenerates one time range and keeps the rest, Extend adds 2 to 20 seconds at the start or end, Reframe generates the missing edges for a new aspect ratio instead of cropping. All three are async on the v2 API and run on ltx-2-3-pro.
  • Watch the limits: Extend's context plus duration cannot exceed 505 frames (about 21s at 24fps) and takes 16:9 or 9:16 only; Reframe takes up to 60 seconds into ten resolutions; both Retake and Extend need at least 73 frames of input.
  • Chain them Retake, then Extend, then Reframe, so each operation stays inside its input limits, and reframe one finished master per target resolution rather than editing each version separately.

Editing AI video with LTX means picking the right operation for the problem, not regenerating the whole clip. Retake regenerates one time range and keeps the rest. Extend adds seconds to the start or end. Reframe changes the aspect ratio and generates the missing edges. All three run on the LTX API today, and the open-source LTX-2.5 stack handles retakes, outpainting, and inpainting through the RetakePipeline and ComfyUI workflows. Together they make LTX a practical video editing model rather than a generate-and-hope tool.

This guide shows which edit fixes which problem, the exact parameters and limits for each, and the order to chain them so you do not pay twice for the same seconds.

Which edit fixes which problem?

LTX editing operations map cleanly to three kinds of fixes:

  • A section is wrong — a flubbed line, a bad gesture, a soundtrack miss. Use Retake to regenerate just that time range and keep everything else.
  • The clip is too short — you need a longer hold, a lead-in, or a continued move. Use Extend to add new frames at the start or end.
  • The shape is wrong — you need a vertical, square, or portrait version of a landscape master. Use Reframe to generate the missing edges rather than cropping.

All three are asynchronous on the v2 API: each call returns a job id, and you poll the matching status endpoint until the job reads completed. Limits come from the LTX API documentation.

Retake: regenerate one section

Retake is the operation for fixing part of a clip without starting over. You pass the source video, a start_time and duration in seconds, and a prompt that describes what should happen in that section. Everything outside the section is preserved.

Retake modes and parameters

Retake mode decides which track gets regenerated:

  • replace_audio: keep the picture, redo only the sound. Use it when the performance is right but the line or effect is wrong.
  • replace_video: keep the soundtrack, redo only the picture. Use it when dialogue timing is locked and a gesture or camera move needs another try.
  • replace_audio_and_video: redo both. This is the default when mode is not set.

The edited section must be at least 2 seconds and should sit inside the input's duration; a section that runs past the end is clamped to the video length. The input video itself must be at least 73 frames (around 3 seconds at 24fps), so a very short clip has to be lengthened before it can be retaken. When you omit resolution, portrait inputs come back at 1080x1920 and landscape inputs at 1920x1080. Retake runs on ltx-2-3-pro.

Open-source and Desktop options

Retake is also available outside the API. The LTX-2 repository ships a RetakePipeline that regenerates a specific time region of an existing video. In LTX Desktop, local Retake runs on LTX-2.3 Fast, while LTX-2.5 Fast has no local Retake or Extend. Desktop can also run Retake as Pro on the API, which is paid.

How do you extend a clip?

Extend (see the Extend capability page) generates new frames at the end (the default mode) or the start of a clip, using context frames from the input so motion and audio continue. The output keeps the input's resolution. Here is a minimal request to the async endpoint:

bash

curl -X POST https://api.ltx.io/v2/extend \
 -H "Authorization: Bearer $LTX_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{
   "video_uri": "https://example.com/shot.mp4",
   "prompt": "the camera keeps tracking her as she walks into the crowd",
   "duration": 8,
   "context": 10,
   "mode": "end",
   "model": "ltx-2-3-pro"
 }'

The 505-frame budget

Extend requests share one budget: context plus duration, converted to frames at the input's frame rate, cannot exceed 505 frames, which is about 21 seconds at 24fps. Duration alone runs from 2 to 20 seconds, and context tops out at 20 seconds. If you skip context, the API uses as much as the budget allows.

The trade-off is the part the reference page leaves implicit. At 24fps, asking for the full 20 seconds of new footage leaves roughly 1 second of context, so the model sees very little of the shot it is continuing. Based on the documented cap, a balanced starting point is 8 to 10 seconds of extension with 10 to 12 seconds of context. Higher-FPS inputs shrink the budget in seconds, so a 60fps source gets proportionally less of both. If you run retakes on the open-source pipelines instead, frame counts must satisfy the video VAE rule (F-1) % 8 == 0, such as 97 or 121 frames.

Input shape matters too. Extend accepts 16:9 and 9:16 sources only, with at least 73 frames (around 3 seconds at 24fps). A 2-second clip will not qualify until you lengthen it another way.

Reframe to a new aspect ratio

Reframe is the LTX answer to auto reframe: instead of cropping, it places your shot in a new canvas and generates the missing areas to match the original. The v2 endpoint takes a video_uri and a required resolution from ten values: 720x720 or 1080x1080 (1:1), 720x900 or 1080x1350 (4:5), 900x720 or 1350x1080 (5:4), 720x1280 or 1080x1920 (9:16), and 1280x720 or 1920x1080 (16:9). Input can run up to 60 seconds and 1800 frames, and billing is per second of input by output resolution.

Outpainting in ComfyUI

Outpainting is the self-hosted route to the same result. The LTX-2.5 video outpainting workflow in ComfyUI-LTXVideo centers the source in a target canvas and treats the pad as the region to generate. It runs two stages, 8 steps at low resolution and 2 steps at high resolution, with Laplacian pyramid blending at each stage, and it keeps the source audio as frozen reference tokens. The prompt is optional; if you write one, describe the full scene, not the edit. If the seam shows, raise the blend dilation in LTXVLaplacianPyramidBlend. Both stages use CFG 1, and the docs advise staying within 1.0 to 1.5 if you experiment. ComfyUI setups for LTX-2.5 need a CUDA GPU with 32GB+ VRAM and CUDA 12.7 or newer, per the LTX-2.5 system requirements.

Removing objects with inpainting

Removing objects is the job of video inpainting, the fourth edit, which uses the same ComfyUI workflow family as outpainting. You supply a mask video, white for the region to regenerate and black to keep, matching the source frame count and aspect ratio. With no prompt, the model usually removes the masked object. For replacement, a looser mask works better than a tight silhouette, and the docs suggest compositing the replacement into the first frame and running in I2V mode. Green traces at mask edges are a known artifact; a bigger dilation, a new seed, or a losslessly encoded mask usually clears them. More detail is on the video inpainting page.

Which order should edits run in?

Edit order changes both quality and cost, because each operation reads a different part of the clip and bills differently. This sequence follows from the documented limits:

  1. Retake first. Extend continues from context frames, so fix the moment near the end of a shot before you extend it, or the extension inherits the mistake.
  2. Extend second. Extend only accepts 16:9 and 9:16 sources, so run it while the clip is still in one of those shapes.
  3. Reframe last. Reframe accepts up to 60 seconds and 1800 frames of input, so an extended master under that cap goes through in one pass and can deliver 1:1, 4:5, or 5:4 versions that Extend cannot accept.

If one master needs several deliverables, reframe the finished master once per target resolution rather than retaking or extending each version separately. Per-second pricing for each endpoint is on the LTX API pricing page.

Summary

LTX Retake regenerates a section of at least 2 seconds and can replace audio, video, or both, with both as the default. LTX Extend adds 2 to 20 seconds at the start or end of a 16:9 or 9:16 clip, and context plus duration cannot exceed 505 frames. LTX Reframe converts up to 60 seconds of video into one of ten resolutions across five aspect ratios by generating the missing areas. Both Retake and Extend need an input of at least 73 frames. Running Retake, then Extend, then Reframe keeps every operation inside its documented input limits.

Start editing: grab an API key from the LTX Developer Console and run your first Retake on the shot you were about to regenerate from scratch.

Table of Contents: