All three need
channels=rgba, which is the default. MP4 cannot carry alpha; for a solid background use the green screen guide instead.
The request and job flow are the same as in Video background removal; only format changes.
WebM for the web
result_url. Host the file yourself (the CDN link expires after 24 hours), then play it like any video. muted and playsinline let it autoplay on mobile:
size=medium (1280 px on the longest side) or size=preview (640 px) when the video plays small on the page; the file gets much lighter and the credits are the same.
Safari
Safari does not show the alpha channel of a VP9 WebM, so the background turns opaque there. Safari plays HEVC with alpha instead. To cover every browser, request amov (ProRes 4444) as well, convert it to HEVC with alpha on a Mac, and list it first:
ProRes 4444 for video editors
Transparent GIF
format=gif returns a looping GIF with a transparent background. It plays wherever an image does, including chat apps, email and Safari, with no <video> tag:
- 1-bit transparency. Each pixel is either fully opaque or fully transparent (alpha of 50% or more is kept), so soft edges such as hair and motion blur are hard-cut. Use WebM or ProRes when the edges matter.
- Up to 720p. GIF output is capped at 1280 px on the longest side whatever
sizesays, because GIF has no inter-frame compression and files grow fast.size=preview(640 px) keeps a sticker small. - Up to 50 fps, looping forever, with no audio track.
Only the matte
If your pipeline does its own compositing,channels=alpha returns the matte as a grayscale video (white subject, black background, no audio). format=mp4 gives the smallest file that every tool can decode. See Alpha matte video.