DeepInfra raises $107M Series B to scale the inference cloud — read the announcement

Lightricks/

LTX-Reframe

Partner

from $0.10 / second

*

LTX Reframe by Lightricks changes a video's aspect ratio without cropping. It keeps the whole source and generates matching content around it, for square, 4:5, 5:4, 9:16 or 16:9 output at 720p or 1080p.

Public
Lightricks/LTX-Reframe cover image
api

Input

Please upload a video file

You need to log in to use this model

Log in

Settings

Resolution

Output size. The whole source is kept, never cropped or stretched, and the model generates the rest of the frame. 1:1: 720x720, 1080x1080. 4:5: 720x900, 1080x1350. 5:4: 900x720, 1350x1080. 9:16: 720x1280, 1080x1920. 16:9: 1280x720, 1920x1080

IN Placement --

Output

Model Information

LTX Reframe by Lightricks changes a video's aspect ratio without cropping. It keeps your whole frame and generates matching content around it. Turn a 16:9 shot into a 9:16 vertical for social, or a square, with the scene extended above and below to fill the frame.

  • Square, 4:5, 5:4, 9:16 and 16:9 output, at 720p or 1080p
  • The source is never cropped or stretched
  • Choose where the source sits: centered, aligned to a side or corner, or at an exact position and size
  • Keeps the audio

The sample above shows a 16:9 input next to its 9:16 reframe.

Options

resolution sets the output size (default 1080x1920):

Aspect ratio720p1080p
1:1720x7201080x1080
4:5720x9001080x1350
5:4900x7201350x1080
9:16720x12801080x1920
16:91280x7201920x1080

placement sets where the source lands in the output frame. Omit it to center the source at the largest size that fits. To set it, send one of these:

  • An anchor fits the source and aligns it, for example {"anchor": "top"}. The anchors are center, top, bottom, left, right, top_left, top_right, bottom_left and bottom_right. Anchors other than center can enlarge the source at most 2x, so they may reject a small video; center fits any size.
  • A rectangle sets the source's position and size as fractions of the output frame, for example {"x": 0, "y": 0.35, "width": 1}.
    • x and y place its top-left corner; 0, 0 is the frame's top-left.
    • Give width, height or both. With one, the other follows the source's aspect ratio. With both, they must match it to within a pixel.
    • The source must stay inside the frame, be at least 1 px on each side, and can be enlarged at most 2x.

Input

video, required: an https URL (up to 200 MB), or a data URI, base64 or file upload (up to 15 MB encoded). MP4, MOV or MKV, encoded as H.264 or H.265.

  • Up to 60 seconds and 1,800 frames
  • Each side between 64 and 4096 px

Pricing

Billed per started second of the output video, which is about as long as your input, by output size:

OutputPrice per second
720 px sizes (720x720, 720x900, 900x720, 720x1280, 1280x720)$0.10
1080 px sizes (1080x1080, 1080x1350, 1350x1080, 1080x1920, 1920x1080)$0.20

A 4-second clip reframed to 1080x1920 costs $0.80.

Example

curl -X POST https://api.deepinfra.com/v1/inference/Lightricks/LTX-Reframe \
  -H "Authorization: bearer $DEEPINFRA_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"video": "https://example.com/clip.mp4", "resolution": "1080x1920", "placement": {"anchor": "top"}}'
copy

The request returns when the job is done, typically within a minute; pass webhook to be called instead. The output link is hosted by Lightricks and isn't permanent, so save the file you want to keep.