Birefnet

Video background removal version of bilateral reference framework (BiRefNet) for high-resolution dichotomous image segmentation (DIS)

Input

Fields marked * are required. Review the price before generating.

URL of the video to remove background from

Uploading a file needs an account. Create accountMP4, WebM · up to 100 MB

Additional settings
Tips and requirements

Model to use for background removal. The 'General Use (Light)' model is the original model used in the BiRefNet repository. The 'General Use (Light 2K)' model is the original model used in the BiRefNet repository but trained with 2K images. The 'General Use (Heavy)' model is a slower but more accurate model. The 'Matting' model is a model trained specifically for matting images. The 'Portrait' model is a model trained specifically for portrait images. The 'General Use (Dynamic)' model supports dynamic resolutions from 256x256 to 2304x2304. The 'General Use (Light)' model is recommended for most use cases. The corresponding models are as follows: - 'General Use (Light)': BiRefNet - 'General Use (Light 2K)': BiRefNet_lite-2K - 'General Use (Heavy)': BiRefNet_lite - 'Matting': BiRefNet-matting - 'Portrait': BiRefNet-portrait - 'General Use (Dynamic)': BiRefNet_dynamic

Tips and requirements

The resolution to operate on. The higher the resolution, the more accurate the output will be for high res input images. The '2304x2304' option is only available for the 'General Use (Dynamic)' model.

Whether to output the mask used to remove the background

Whether to refine the foreground using the estimated mask

The output type of the generated video.

The quality of the generated video.

The write mode of the generated video.

Price$0.83 / run

You sign up first. Your settings are kept.

API code for this input

Complete the required fields and fix input errors to see API code.

How to use Birefnet

Getting started

Remove a video’s background with BiRefNet V2 and inspect the foreground across frames. Moving hair and objects need review throughout the clip.

Review your result

Play the whole result and mask when requested. Check edge flicker, lost details and compatibility with your editing software.

Inputs and settings

Send video_url and select model and operating_resolution. General Use (Dynamic) is required for 2304x2304.

Choose video_output_type, video_quality and video_write_mode; use output_mask for a separate mask video. Confirm transparency in the actual export rather than assuming every codec retains it.