Mindket

Image inpainting editor in n8n with FLUX.1 Fill

Newversion 1 · updated

Overview

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 . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.

At a glance

Runs in
  • 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

Platform

Connects 1 app

How it works

Trigger

Webhook

It starts when a browser opens the webhook’s address, and again each time the editor posts an edit:

  • The image
  • The mask painted over it
  • A prompt, with steps, guidance and a prompt-upsampling choice

Actions

  1. Opening the address builds the editor page with your image list and returns it to the browser
  2. Generate sends the image, the mask and the prompt to Black Forest Labs’ FLUX.1 Fill
  3. The workflow checks every three seconds until the edit is ready
  4. It downloads the edited image and returns it to the page

Result

An edited copy of your image, shown in the browser beside the original, with the painted area redrawn to match your prompt

Integrations

What you need before you start.

Black Forest Labs

Image inpainting

Redraws the painted area of the image from your prompt with FLUX.1 Fill.

NeedsA Black Forest Labs API key, kept in a Header Auth credential

Workflow check

Checked by Mindket on 13 Nov 2026

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

Read from the workflow’s file, not from a run.

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
IndustryWho uses itHow they use itExample
E-commerceProduct marketersChange the scene behind a product photoA shop owner paints the plain backdrop of a mug photo and asks for a wooden table.
DesignDesignersTry variants of a mockupA designer paints one wall of a room mockup and asks for green paint.
Social mediaContent creatorsRemove or swap an object in a pictureA creator paints over a stray sign and asks for a clear sky.
SoftwareDevelopersUse the workflow as the back end of their own editorA 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

Setup

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
NeedDetail
n8nOn n8n Cloud or on a server of your own
Black Forest LabsAn API key, kept in a Header Auth credential
ImagesOptional 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 changeWhere
The images in the listMockups
The model’s outputoutput_format and safety_tolerance in FLUX Fill, and the Steps and Guidance sliders on the page
Where results goAdd nodes after Get Fill Image
The pageThe HTML in Editor page

Example

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

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
NodeWhat it doesWhat to know
WebhookWebhook 2 on the path flux-fill, GET and POST, answered by a Respond to Webhook nodeIts first output draws the page, the second runs the edit
Editor pageHTML node that fills in the image list and the page’s own addressThe script and style load from jsDelivr at a fixed commit
FLUX FillPOST to api.bfl.ai/v1/flux-pro-1.0-fill, PNG, safety tolerance 2The image and mask go in without their data-URL header
Check FLUX statusGET on the polling_url from the first callBlack Forest Labs asks for the returned address
Is Ready?Passes on only when the status equals ReadyAny 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 and files

README

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.
Files
NOTICE.md  630 B
README.md  5 KB
workflow.json  15 KB

3 files, 21 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Nanosaur2-670M

well9472 · Kit

Makes illustrations from text prompts with a small 670M-parameter diffusion model, run through ComfyUI. Built as a low-budget research model for people who wan…

New

Reads handwritten Arabic text from images and returns it as text. A fine-tuned PaddleOCR-VL model for people digitizing Arabic handwriting.

New

Makes video clips from a text prompt or an image plus text, at up to 720P and 24 frames per second, in the Diffusers format for a single consumer GPU.

New

Similar in Marketing & SEO

See all in Marketing & SEO

Flux.2-Klein-9B-MatchingPose

nhathoangfoto · Kit

A LoRA for FLUX.2 Klein 9B that puts a character into the pose shown by a mannequin reference while keeping the character's face and style. For artists and des…

New

Generates images from text on modest GPUs, using quantized Z-Image-Turbo files made for stable-diffusion.cpp. For people who run image models on their own comp…

New

HiDream-I1-Full

HiDream-ai · Kit

Generates images from text prompts with a 17B-parameter open model that scores at the top of the card's prompt-following tables. For designers, marketers and d…

New