---
title: "FLUX Tools Erase API & Playground - Comfy"
description: "FLUX Tools Erase by Black Forest Labs: Removes the masked object from an image and reconstructs the background. Run it in your browser or call it via API."
canonical: https://comfy.org/hub/models/flux-tools-erase/
lang: en
index: https://comfy.org/llms.txt
---

[Back to all models](https://comfy.org/hub/models/)

Black Forest Labs

[Edit images](https://comfy.org/hub/models/?useCase=edit-images)

# FLUX Tools Erase

Removes the masked object from an image and reconstructs the background.

Cost depends on your settings.

- [object-removal](https://comfy.org/hub/models/?q=object-removal)
- [inpaint](https://comfy.org/hub/models/?q=inpaint)
- [edit](https://comfy.org/hub/models/?q=edit)
-

[Read docs](https://docs.comfy.org/development/comfy-router/models#black-forest-labs)

Input

Reference image

Provide the reference image or images used to guide the result.

- 787 B

Mask

Provide a same-size mask: white removes, black keeps.

- 562 B

Advanced settings

Mask expansion

Expand the removal mask to cover the object's edges.

Output format

Seed

Reuse a seed with the same inputs to make results more repeatable.

Output

![FLUX Tools Erase example output 1](https://cdn.jsdelivr.net/gh/Comfy-Org/workflow_templates@f331af10934fdf0d773d5f26c1d00f33559ae09d/output/api_flux_erase_image.png)

Example

## Sample outputs

-
-
-

## More from Black Forest Labs

[Browse all Browse all models](https://comfy.org/hub/models/)

- [Black Forest Labs

  ### FLUX Pro Fill

  Image to Image

  bfl flux fill inpaint edit image-edit](https://comfy.org/hub/models/flux-pro-fill/)
- [Black Forest Labs

  ### FLUX.1 Kontext Max Image Edit

  Image to Image

  bfl flux kontext edit premium image-edit](https://comfy.org/hub/models/flux-1-kontext-max-image-edit/)
- [Black Forest Labs

  ### FLUX.1 Kontext Pro Image Edit

  Image to Image

  bfl flux kontext edit image-edit](https://comfy.org/hub/models/flux-1-kontext-pro-image-edit/)
- [Black Forest Labs

  ### FLUX Virtual Try-On

  Image to Image

  bfl flux virtual-try-on vto fashion edit](https://comfy.org/hub/models/flux-virtual-try-on/)
