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

Lightricks/

LTX-AlphaGen

Partner

$0.25 / second

*

LTX AlphaGen by Lightricks separates a video's foreground from its background. It returns a grayscale alpha matte and the input with that matte as its alpha channel, as a ProRes 4444 file ready to composite, with fine edge detail and partial transparency up to 4K.

Public
Lightricks/LTX-AlphaGen cover image
api

Input

Please upload a video file

You need to log in to use this model

Log in

Settings

Output

Model Information

LTX AlphaGen by Lightricks separates the foreground of a video from its background, frame by frame. It returns a grayscale alpha mask and a ready-to-composite cutout, with fine edge detail and partial transparency, at up to 4K.

  • No green screen, prompt or settings: send a video and get the mask and the cutout back
  • Same frames and size as your input; odd sides are rounded down to even, and the frame rate to a whole number
  • The cutout is a ProRes 4444 .mov with an alpha channel. Premiere Pro, Final Cut Pro, DaVinci Resolve, After Effects and Nuke read it directly.

The sample above shows the input, the mask and the cutout placed on a new background.

Outputs

FieldWhat it is
video_urlThe alpha mask as an MP4: white is foreground, black is background. Plays anywhere, and works as a track matte on your original footage.
rgba_video_urlYour video with the mask as its alpha channel, a ProRes 4444 .mov. Browsers can't play it, so the model page offers it as a download.

Neither output has audio. ProRes files are large: a 4-second 1080p cutout is about 200 MB.

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 3,072 frames, about 2 minutes at 24 fps
  • Up to 4K (3840x2160), in landscape or portrait
  • The long side at most 32:9 of the short side

Pricing

Billed per started second of the output video, which is about as long as your input, by the input's short side:

Short sidePrice per second
up to 1080 px$0.25
up to 1440 px$0.50
up to 2160 px$1.00

A 4-second 1080p clip costs $1.00. A 10.2-second 1080p clip is billed as 11 seconds: $2.75.

Example

curl -X POST https://api.deepinfra.com/v1/inference/Lightricks/LTX-AlphaGen \
  -H "Authorization: bearer $DEEPINFRA_TOKEN" \
  -F video=@clip.mp4
copy

The request returns when the job is done, typically in one to three minutes; pass webhook to be called instead. The output links are hosted by Lightricks and aren't permanent, so save the files you want to keep.