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

# BriaEraser - ComfyUI Built-in Node Documentation

> Bria Eraser removes objects or areas from an image using the Bria API.

Bria Eraser removes objects or areas from an image using the Bria API. You provide an image and a mask that outlines the regions to remove; the node uploads both to Bria, runs the erase job, waits for it to complete, and returns the edited image with the masked areas erased.

## Inputs

| Parameter    | Description                                                                                                                                                                       | Data Type | Required | Range                     |
| ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | -------- | ------------------------- |
| `image`      | The input image containing the objects or areas to remove.                                                                                                                        | IMAGE     | Yes      | -                         |
| `mask`       | White areas are erased, black areas are preserved. The mask is binarized before sending, so partially painted areas count as white. Must have the same aspect ratio as the image. | MASK      | Yes      | -                         |
| `mask_type`  | Selects how the mask was created. "manual" is for hand-drawn or brush masks; "automatic" is for masks produced by segmentation models such as SAM.                                | STRING    | Yes      | "manual"<br />"automatic" |
| `moderation` | Moderation settings. Set to "true" to enable content moderation on the input and/or output images.                                                                                | STRING    | Yes      | "false"<br />"true"       |

Note: When `moderation` is set to "true", two additional boolean settings become available:

* `visual_input_moderation` — applies visual content moderation to the input image (default: false)
* `visual_output_moderation` — applies visual content moderation to the output image (default: false)

The mask must match the aspect ratio of the image, otherwise the request fails. The mask is converted to a binary (black and white) mask before being sent to the API, so partially painted areas are treated as white and will be erased.

## Outputs

| Output Name | Description                                                | Data Type |
| ----------- | ---------------------------------------------------------- | --------- |
| `image`     | The edited image with the masked objects or areas removed. | IMAGE     |

> 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/BriaEraser/en.md)

***

**Source fingerprint (SHA-256):** `557272ecb0e6487796184ce88217ff318de4a5728a82e903aeb3fa3a0d24a664`
