You're looking at a specific version of this model. Jump to the model overview.
851-labs /background-remover:a029dff3
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
|
|
threshold |
number
|
0
|
Threshold for hard segmentation (0.0-1.0). If 0.0, uses soft alpha.
|
reverse |
boolean
|
False
|
If True, remove the foreground instead of the background.
|
background_type |
string
|
rgba
|
Background type: 'rgba', 'map', 'green', 'white', [R,G,B] array, 'blur', 'overlay', or path to an image.
|
format |
string
|
png
|
Output format (e.g., png, jpg). Defaults to png.
|
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'}