remove_background
Remove the background from an image and return a transparent RGBA cutout. Upload the source image first, then provide the filename to process.
Instructions
Remove an image's background, returning a transparent (RGBA) cutout — the high-level entry point. Builds a LoadImage → BiRefNetRMBG → SaveImage workflow using the ComfyUI-RMBG (BiRefNet) matting node and enqueues it on your LOCAL GPU. Upload the source first with upload_image (or stage a prior output with stage_output_as_input), then pass its filename. Requires the ComfyUI-RMBG custom node (pack: wan-transparent, or install_custom_node 'comfyui-rmbg'); the BiRefNet model auto-downloads on first run. If the node isn't installed, returns an actionable error telling you how to install it. Returns prompt_id immediately; the cutout asset_id arrives in the completion notification.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Filename of the source image in ComfyUI's input dir (upload it first with upload_image) | |
| model | No | BiRefNet matting model (default 'BiRefNet_toonout'; auto-downloaded by ComfyUI-RMBG) | |
| filename_prefix | No | Output filename prefix (default 'ComfyUI_cutout') |