inference.remove-background.v1
The inference.remove-background.v1
job removes the background of an input
image and returns an output image with the background removed and a black/white
mask. The output image and mask are only available as image/png
.
{ "type": "inference.remove-background.v1"}
INPUT | OUTPUT | |
---|---|---|
rocket in a desesrt | just the rocket | black & white rocket mask |
![]() |
![]() |
![]() |
Schema
{ "type": "object", "required": [ "type" ], "properties": { "type": { "type": "string", "enum": [ "inference.birefnet.segment.v1", "inference.remove-background.v1", "inference.mask-background.v1" ] }, "config": { "type": "object", "properties": { "contour": { "description": "Enable contour detection for a crisp outline mask style.", "type": "boolean", "default": false }, "contour_tolerance": { "description": "Increase contour tolerance to smooth and expand the mask.", "type": "integer", "default": 0, "minimum": 0, "maximum": 128 } } } }}