remove_background
Cuts the subject out of a layer using color-based flooding or AI segmentation, creating a transparency mask, erasing the background, or selecting the subject.
Instructions
Cut the subject out of a layer. mode: mask (non-destructive transparency mask, default), erase, or
select (just select the subject). method: color (local, no AI: floods the plain background in from the
image border, within tolerance of the border colour or of color), ai (a segmentation model via
stability / replicate / fal / a1111 with the rembg extension), auto (ai if a capable backend answers,
else color).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | mask | |
| color | No | ||
| layer | No | ||
| model | No | ||
| method | No | auto | |
| backend | No | ||
| feather | No | ||
| tolerance | No |