remove_background
Removes an image's background and saves the subject as a transparent PNG cutout, with optional model and output-path settings for local JPG, PNG, WEBP, BMP, or GIF files.
Instructions
Remove the background from an image, producing a transparent PNG cutout of the subject.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Segmentation model. 'falcon' is the default and works well for most images. | falcon |
| image_path | Yes | Path to a local JPG, PNG, WEBP, BMP or GIF image (1 KB to 10 MB). | |
| output_path | No | Where to save the result. Defaults to '<name>_<operation>.<ext>' next to the input image. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |