Infery.ai
← All models

Birefnet Background Removal

birefnet

Image editby birefnet

bilateral reference framework (BiRefNet) for high-resolution dichotomous image segmentation (DIS)

images

Pricing

Price
0.100 cr / second

Prices in credits (1 credit = $0.01).

Data schema

Input

FieldTypeDescription
modelstringenum: General Use (Light), General Use (Heavy), Portrait Model to use for background removal. The 'General Use (Light)' model is the original model used in the BiRefNet repository. The 'General Use (Heavy)' model is a slower but more accurate model. The 'Portrait' model is a model trained specifically for p…
image_urlrequiredstringURL of the image to remove background from
sync_modebooleanIf `True`, the media will be returned as a data URI and the output data won't be available in the request history.
output_maskbooleanWhether to output the mask used to remove the background
output_formatstringenum: webp, png, gifThe format of the output image
refine_foregroundbooleanWhether to refine the foreground using the estimated mask
operating_resolutionstringenum: 1024x1024, 2048x2048The resolution to operate on. The higher the resolution, the more accurate the output will be for high res input images.

Output

FieldTypeDescription
imageImage with background removed
mask_imageMask used to remove the background