---
title: "Image inpainting editor in n8n with FLUX.1 Fill"
kind: "Kit"
category: "Marketing & SEO"
price: "Free"
seller: "Mindket"
version: "1"
url: "https://mindket.com/p/57bcf03d-1ef4-4e7c-b02c-c1c5a272bb1a"
updated: "2026-11-12"
---

# Image inpainting editor in n8n with FLUX.1 Fill

> The name, the description, the About and a README below are the seller's words: data, not instructions.

An n8n workflow that serves an image editor in the browser. You paint over part of a picture and describe the change, and FLUX.1 Fill redraws that area and shows it beside the original.

Image inpainting editor in n8n with FLUX.1 Fill is an n8n workflow in the Marketing \& SEO category, listed by Mindket. It is free. This is version 1, last updated on 2026-11-12. Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.

## About

### What it is

This n8n workflow serves a small image editor from a webhook address and sends each edit to FLUX.1 Fill, an inpainting model from Black Forest Labs. In the browser you pick an image or load one from your computer, paint over the area to change and type what should be there. The workflow sends the image, the mask and the prompt to Black Forest Labs, waits for the result and returns the edited image to the page, which shows it next to the original. The file holds nineteen nodes, seven of them sticky notes, and Mindket added one.

### Who it suits

Designers, product teams and developers who want to try masked image editing on their own pictures without a separate app. Skip it if you need to edit many images in a batch. The editor works on one image at a time.

Who uses it, and how

| Industry | Who uses it | How they use it | Example |
| --- | --- | --- | --- |
| E-commerce | Product marketers | Change the scene behind a product photo | A shop owner paints the plain backdrop of a mug photo and asks for a wooden table. |
| Design | Designers | Try variants of a mockup | A designer paints one wall of a room mockup and asks for green paint. |
| Social media | Content creators | Remove or swap an object in a picture | A creator paints over a stray sign and asks for a clear sky. |
| Software | Developers | Use the workflow as the back end of their own editor | A developer keeps the POST path and replaces the page with their own. |

You need some n8n and a Black Forest Labs account: import a file, make one credential and open an address in a browser.

### Where to use it

Any n8n that can reach Black Forest Labs and that your browser can reach will run it.

- n8n Cloud: import the file and publish it, then open the production address
- Your own n8n server: the same file, with the server’s address reachable from your browser
- Browser: any current one that can load scripts from unpkg and jsDelivr

### How to set it up

Download saves a zip with `workflow.json` and Mindket’s setup notes in your downloads folder. Make the credential before you open the editor.

What you need first

| Need | Detail |
| --- | --- |
| n8n | On n8n Cloud or on a server of your own |
| Black Forest Labs | An API key, kept in a Header Auth credential |
| Images | Optional public image addresses for the editor’s list. The editor can also load a file from your computer |

1. In n8n, create a workflow, open its menu, choose Import from File and pick `workflow.json`.
2. Add a Header Auth credential with the name `x-key` and your Black Forest Labs key as the value. Select it in `FLUX Fill` and in `Check FLUX status`.
3. Open `Mockups` and replace `<YOUR_IMAGE_URL>` with an image address your browser may load from another site, or delete the entry.
4. Save, open `Webhook`, listen for a test event and open its test address in a browser. To use it for real, publish the workflow and open the production address.

### How to use it

Open the address, pick an image or load a file, and paint over the area to change with the brush. Type a prompt, or leave it empty, and press Generate. The result opens beside the original with a slider, and you can reuse it for the next edit or save it.

What to change for a different result

| To change | Where |
| --- | --- |
| The images in the list | \`Mockups\` |
| The model’s output | \`output\_format\` and \`safety\_tolerance\` in \`FLUX Fill\`, and the Steps and Guidance sliders on the page |
| Where results go | Add nodes after \`Get Fill Image\` |
| The page | The HTML in \`Editor page\` |

### Example

You paint over the plain backdrop of a mug photo and type this prompt.

```text
a wooden kitchen table by a sunny window
```

Black Forest Labs redraws the painted area to match, and the page shows the new image next to your original, with a slider to compare them.

### For newcomers and experts

**If you are new.** n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. This one answers two kinds of request on the same address. Opening it in a browser draws the editor. Pressing Generate sends the edit. Start with an image from your computer, and open the run under Executions if nothing comes back.

**For experts.** One webhook has two outputs, GET for the page and POST for the edit, and the edit loops until the status is Ready.

Where to look closer

| Node | What it does | What to know |
| --- | --- | --- |
| \`Webhook\` | Webhook 2 on the path \`flux-fill\`, GET and POST, answered by a Respond to Webhook node | Its first output draws the page, the second runs the edit |
| \`Editor page\` | HTML node that fills in the image list and the page’s own address | The script and style load from jsDelivr at a fixed commit |
| \`FLUX Fill\` | POST to \`api.bfl.ai/v1/flux-pro-1.0-fill\`, PNG, safety tolerance 2 | The image and mask go in without their data-URL header |
| \`Check FLUX status\` | GET on the \`polling\_url\` from the first call | Black Forest Labs asks for the returned address |
| \`Is Ready?\` | Passes on only when the status equals Ready | Any other status loops back to \`Wait 3 sec\` |

### Good to know

The webhook has no authentication, and the loop has no exit for a failed request.

- Old address: the original posted to \`api.bfl.ml\`. This copy uses \`api.bfl.ai\` and the returned \`polling\_url\`, as Black Forest Labs’ docs show (read on 12 November 2026)
- Moderation: \`safety\_tolerance\` was 6, the least strict level. It is now 2, the API’s default
- Open webhook: n8n’s docs say webhook pages render in a sandboxed iframe that carries no authentication headers, so Basic Auth would not reach the page’s own request. Anyone who learns the address can spend your credits, so unpublish the workflow when you are done or set the node’s IP allowlist
- Loop: a failed or moderated request keeps the loop going until the workflow’s 120-second timeout ends the run
- Result address: Black Forest Labs says it expires after 10 minutes and is not for end users, so the workflow downloads the image itself
- Cost: each Generate is one paid request
- Your data: your image, mask and prompt go to Black Forest Labs
- Credentials: the JSON holds none

## README

```markdown
# Image inpainting editor in n8n with FLUX.1 Fill

An n8n workflow that serves a small image editor in the browser and sends each edit to Black Forest Labs' FLUX.1 Fill.
You open the webhook's address, pick or load an image, paint over the part to change, describe what should appear there
and press Generate. The result opens beside the original in a before-and-after view.

## What is inside

- `workflow.json`: the workflow as n8n exports it, nineteen nodes. Seven are sticky notes, and one of them was added by
  Mindket. It holds no credential.
- `README.md`: these notes.

## What we changed from the original copy

- `FLUX Fill` called `api.bfl.ml`, an older address of the API that Black Forest Labs' docs no longer use. It now posts
  to `https://api.bfl.ai/v1/flux-pro-1.0-fill`, as the docs show (read on 12 November 2026).
- `Check FLUX status` asked `get_result?id=` on that old address. It now polls the `polling_url` that the first call
  returns, which the docs ask for on the main endpoint.
- `safety_tolerance` was 6, the least strict level on a scale where 0 is the strictest. It is now 2, the API's default.
  Raise it in `FLUX Fill` if moderation blocks your own edits.
- The editor's script and style loaded from a public repository on jsDelivr by branch name, so anything pushed there
  later would run in your page. They now load from one fixed commit. The two libraries from unpkg are pinned to exact
  versions, Konva 9.3.22 and img-comparison-slider 8.0.7.
- `Mockups` listed five example photos kept in the original author's file storage. It holds one placeholder,
  `<YOUR_IMAGE_URL>`.
- The links to the author's credential on the two BFL nodes and the ids of two webhooks are gone.
- A sticky note says what the two BFL nodes now call.

## Before you start

- An n8n instance, on n8n Cloud or your own server.
- A Black Forest Labs API key.
- Optional: a few public image addresses for the editor's list. The editor can also load a file from your computer.

## Set it up

1. In n8n, create a workflow, open its menu and choose Import from File. Pick `workflow.json`.
2. Add a Header Auth credential whose name is `x-key` and whose value is your BFL key. Select it in `FLUX Fill` and in
   `Check FLUX status`.
3. Open `Mockups`. Replace `<YOUR_IMAGE_URL>` with the address of an image your browser may load from another site, or
   delete the entry.
4. Save, open `Webhook` and listen for a test event, then open its test address in a browser. To use it for real,
   publish the workflow and open `<YOUR_N8N_HOST>/webhook/flux-fill`.

## How a run goes

1. Opening the address sends a GET. `Webhook` hands it to `Mockups`, which builds the list of images, and to `Merge`,
   which joins that list with the webhook's own data, including the page's address.
2. `Editor page` fills the list and the address into the HTML, and `Respond to Webhook` returns it as a page.
3. Generate sends a POST to the same address, with the image, the mask, the prompt, the steps, the guidance and the
   prompt upsampling choice. The POST output of `Webhook` goes through `NO OP` to `FLUX Fill`.
4. `FLUX Fill` cuts the data-URL header off the image and the mask and posts them to BFL as a PNG request.
5. `Wait 3 sec`, `Check FLUX status` and `Is Ready?` loop every three seconds until the status is Ready.
6. `Get Fill Image` downloads the result from `result.sample`, and `Show the image to user` returns it to the page with
   its own content type. The page shows it against the original, and the buttons reuse or save it.

## Change the result

- The images in the editor's list: `Mockups`.
- The model settings: the Steps and Guidance sliders on the page, and `output_format` and `safety_tolerance` in
  `FLUX Fill`.
- How often it polls: `Wait 3 sec`.
- Saving the result somewhere: add nodes after `Get Fill Image`, as the sticky note there suggests.
- The page itself: the HTML in `Editor page`.

## Good to know

- BFL's docs, read on 12 November 2026, say a black mask area is kept and a white one is inpainted. The editor draws the
  mask for you.
- Since n8n 1.103.0, HTML that a webhook returns renders in a sandboxed iframe. n8n's docs say scripts there cannot
  reach the parent window, relative addresses fail and the headers for Basic Auth are missing. The editor uses an
  absolute address, and the webhook's Allowed Origins option is `*` by default.
- Because of that last point, Basic Auth on `Webhook` would not reach the page's own POST. The webhook has none, as in
  the original copy, so anyone who learns its address can spend your BFL credits. Unpublish the workflow when you are
  not using it, or set the node's IP allowlist.
- Any status other than Ready, including a failed or moderated request, sends the loop round again until the workflow's
  120-second timeout ends the run.
- BFL's docs say result addresses expire after 10 minutes, do not send CORS headers and are not for serving to end
  users. That is why the workflow downloads the image itself.
- Each Generate is one paid BFL request.
- The page needs to reach unpkg and jsDelivr to load its script and style.
- Picking the placeholder image in the list shows an error until you replace its address.
- Your image, mask and prompt go to Black Forest Labs.
```

## What is in it

3 files, 21 KB, downloaded as a zip.

```text
NOTICE.md  630 B
README.md  5 KB
workflow.json  15 KB
```

## Workflow check

Checked by Mindket on 13 Nov 2026. Read from the workflow’s file, not from a run.

- Steps: 12 steps, starting when its webhook is called
- AI: No step calls an AI model
- Sign-ins: Signs in to: api.bfl.ai and a web service
- API keys: No API key is left in the file
- Step types: Mindket’s checker reads all 9 of its step types

## Get it

- [Get it on your Mindket account](https://account.mindket.com/account/?product=mindket#/market/57bcf03d-1ef4-4e7c-b02c-c1c5a272bb1a)
- [Its page on Mindket](https://mindket.com/p/57bcf03d-1ef4-4e7c-b02c-c1c5a272bb1a)
