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

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

- Use via API
- [Open in Cloud](https://stagingcloud.comfy.org/)

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

## Playground

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

-
-
-

## Call this model from your code

Sends your Playground inputs to Comfy Router.

[API docs (opens in a new tab)](https://docs.comfy.org/development/comfy-router/models#black-forest-labs)

1. ### Get an API key

  Needs a paid Cloud plan with credits.

  [Get an API key (opens in a new tab)](https://platform.comfy.org/profile/api-keys?onboarding=models&model=bfl--flux-erase--edit-images)
2. ### Install the SDK

  Python 3.10+. Also on npm as @comfyorg/sdk.

  pip install comfy-sdk==0.2.0
3. ### Run it

  Calls Comfy Router at this endpoint with your COMFY_API_KEY.

  POST /v2/models/bfl/erase-v1

Fill in the Playground inputs to generate a request.

## More from Black Forest Labs

Compare Black Forest Labs's other models. Price is the default setting; resolution and duration show the full range each model offers.

| Model | Price | Resolution | Duration |
| --- | --- | --- | --- |
| [FLUX 2 Pro Text-to-Image](https://comfy.org/hub/models/flux-2-pro-text-to-image/) | 6.3 credits /Run | — | — |
| [FLUX.1 Kontext Pro Image Edit](https://comfy.org/hub/models/flux-1-kontext-pro-image-edit/) | 8.44 credits /Run | — | — |
| [FLUX 2 Max Text-to-Image](https://comfy.org/hub/models/flux-2-max-text-to-image/) | 14.8 credits /Run | — | — |
| [FLUX Pro 1.1 Ultra Text-to-Image](https://comfy.org/hub/models/flux-pro-1-1-ultra-text-to-image/) | 12.7 credits /Run | — | — |
| [FLUX.1 Kontext Max Image Edit](https://comfy.org/hub/models/flux-1-kontext-max-image-edit/) | 16.88 credits /Run | — | — |
| [FLUX 3 Video Text-to-Video](https://comfy.org/hub/models/flux-3-video-text-to-video/) | — | 720p – 1080p | 5 – 20s |
| [FLUX 3 Video Image-to-Video](https://comfy.org/hub/models/flux-3-video-image-to-video/) | — | 720p – 1080p | 5 – 20s |
| [FLUX Virtual Try-On](https://comfy.org/hub/models/flux-virtual-try-on/) | — | — | — |
| [FLUX Pro Fill](https://comfy.org/hub/models/flux-pro-fill/) | 10.6 credits /Run | — | — |
| [FLUX Pro Expand](https://comfy.org/hub/models/flux-pro-expand/) | 10.6 credits /Run | — | — |
| [FLUX Video Upscale](https://comfy.org/hub/models/flux-video-upscale/) | — | — | — |
| [FLUX Pro 1.1 Text-to-Image](https://comfy.org/hub/models/flux-pro-1-1-text-to-image/) | — | — | — |
