> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# RemoveBackground - ComfyUI Built-in Node Documentation

> Complete documentation for the RemoveBackground node in ComfyUI. Learn its inputs, outputs, parameters and usage.

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/RemoveBackground/en.md)

## Overview

The Remove Background node generates a foreground mask that separates the main subject from the background of an input image. It uses a background removal model to analyze the image and produce a mask highlighting the foreground elements.

## Inputs

| Parameter          | Data Type                  | Required | Range | Description                                        |
| ------------------ | -------------------------- | -------- | ----- | -------------------------------------------------- |
| `image`            | IMAGE                      | Yes      | N/A   | Input image to remove the background from          |
| `bg_removal_model` | BACKGROUND\_REMOVAL\_MODEL | Yes      | N/A   | Background removal model used to generate the mask |

## Outputs

| Output Name | Data Type | Description                                                                   |
| ----------- | --------- | ----------------------------------------------------------------------------- |
| `mask`      | MASK      | Generated foreground mask that highlights the main subject of the input image |

***

**Source fingerprint (SHA-256):** `6b0e31792dc8a5c949944680129e91790ca396336a43ac67b7816b9d6c5b9049`
