remove_background
Generate an AI cut-out as a layer mask while keeping the photo intact; use keep=background to invert the mask.
Instructions
AI cut-out as a layer MASK (the photo stays intact). keep=background inverts it. Models: isnet-general-use, u2net, u2net_human_seg (people), birefnet-general (best, slow). backend=stability uses the online service instead of the local model.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"layer": "<layer>"
},
"name": "remove_background"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep | No | subject | |
| layer | Yes | ||
| model | No | isnet-general-use | |
| backend | No | local | |
| project | No |