Two image-editing nodes that change an existing image: AI Editor toggles between Remove BG and Brush Edit, while Brush Edit is the dedicated inpainting node — paint a mask, connect a text prompt, and regenerate only the painted region with Gemini image.
Where: canvas → left rail → Add → Image → Brush Edit — Connect an image (+ prompt), paint a mask, click Generate Edit
Key ideas
- Mode tabs: AI Editor has Remove BG and Brush Edit tabs; in Remove BG it just runs the local cutout, in Brush Edit it inpaints. Brush Edit node is locked to inpaint mode and always shows a Prompt input handle.
- Mask painting: Open the fullscreen Mask Editor to paint the region to change with a sizeable brush; Invert Mask protects the painted area instead. If you skip the mask, the whole image is edited based on the prompt.
- Prompt + Gemini image: Inpainting requires a connected Text node (the edit instruction); the image, mask, and prompt are sent to a Gemini image model (Nano Banana 2 / gemini-3.1-flash-image) and the result is persisted to Storage.
- Brush Edit card: BrushEditNode uses the generic shared-card path. Edit a selected/masked region of an image using a chosen model and mask-aware controls.
- Properties sidebar: editNodes.tsx
- Opened surfaces: MaskEditorModal; image lightbox
Steps
- Add an AI Editor (or Brush Edit) node and connect an image to the Image handle; for inpainting also connect a Text node to the Prompt handle.
- On AI Editor, choose the Brush Edit tab (Brush Edit node is already in inpaint mode).
- Click Paint Mask to open the fullscreen Mask Editor, set the brush size, paint the area to change (or toggle Invert Mask), and Save Mask.
- Confirm the badge reads “Mask Ready” and the Connected Prompt shows your instruction, then click Generate Edit.
- Hover the result for Add to canvas / Paste to Replace / Download, or chain image_out onward.
Brush Edit controls and presets
- Add path: Flowgen → Add → Image & Vector → Brush Edit.
- Card: BrushEditNode.
- Properties: editNodes.tsx.
- Controls: Source image; model; edit mode; mask; negative prompt; count; person controls.
- Opened surfaces: MaskEditorModal; image lightbox.
FAQ
Do I have to paint a mask?
No — the mask is optional. Without one the model edits the whole image from your prompt; with one, only the painted (or, if inverted, the unpainted) region changes.
Why is Generate Edit asking for a prompt?
Inpainting needs an instruction. Connect a Text node to the Prompt handle; the node shows a pulsing “Missing Prompt” warning until one is wired in.
What does Invert Mask do?
It flips the mask so the area you painted becomes the protected (unchanged) region and everything else is edited.