You're looking at a specific version of this model. Jump to the model overview.

salahzsh /rembg:e58a43a5

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
image
string
Input image
model
None
birefnet-general
Model
alpha_matting
boolean
False
Use alpha matting for smoother edges
alpha_matting_foreground_threshold
integer
240

Max: 255

Foreground threshold for alpha matting
alpha_matting_background_threshold
integer
10

Max: 255

Background threshold for alpha matting
alpha_matting_erode_size
integer
10
Erosion size for alpha matting
only_mask
boolean
False
Return only the binary mask instead of the cutout
post_process_mask
boolean
False
Apply post-processing to smooth mask boundaries
bgcolor
string
Background color as hex string or leave empty for transparent

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'format': 'uri', 'title': 'Output', 'type': 'string'}