gimp_remove_background
Removes image backgrounds by running AI segmentation on a layer and converting the result into an editable mask or applying it directly to the alpha channel.
Instructions
AI subject cut-out. Runs a segmentation model on the layer and writes the result as an editable layer mask (mode='mask') or bakes it into the alpha channel (mode='apply'). Needs the optional segmentation extra. Models: u2net (default), isnet-general-use, u2net_human_seg, isnet-anime, silueta.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | mask | |
| model | No | u2net | |
| layer_id | Yes | ||
| alpha_matting | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||