> ## 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

> Documentation for RemoveBackground node.

## 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 | Description | Data Type | Required | Range |
| - | - | - | - | - |
| `bg_removal_model` | Background removal model used to generate the mask | BACKGROUND\_REMOVAL\_MODEL | Yes | N/A |
| `image` | Input image to remove the background from | IMAGE | Yes | N/A |

## Outputs

| Output Name | Description | Data Type |
| - | - | - |
| `mask` | Generated foreground mask | MASK |

> 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)

***

**Source fingerprint (SHA-256):** `75b415acedaeaa1a694aeba2e4b0367524c6878e3e4a1f48b2a62898c68109f9`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.