← All docs

Docs

Mask & inpaint

Paint one region of a render and regenerate only that area with Regional Edit, using the brush, lasso, rectangle, and click-to-select mask tools.

Regional Edit lets you change one part of a render instead of the whole thing: paint the area you want reworked, then Generate — only the masked region changes, and it blends back into the original.

When to use

  • You like a render but want to fix or restyle a single element — a facade, a window, a piece of furniture, the sky.
  • You want to remove an object and let the AI fill the gap to match its surroundings.
  • You want to apply a reference’s material or mood to just one area, leaving everything else untouched.

This is different from a layer mask, which non-destructively hides or reveals parts of a layer for compositing. Regional Edit regenerates pixels and bakes the result into a new layer; a layer mask never changes the underlying image. For layer masks, see Layer masks.

Paint a region and regenerate

  1. Select a single image layer on the canvas.
  2. Click the Edit image regions button on the prompt bar (the dashed square-with-cursor icon). A Regional Edit toolbar appears, docked above the prompt bar with a green outline.
  3. Paint the area you want to change with any mask tool (see below). The painted region shows as an amber overlay.
  4. Optionally type a prompt describing the change. You can leave it blank — a blank prompt defaults to removing the marked object, or to a reference-led edit when you have a reference attached.
  5. Click Generate. Only the masked area is rendered; the result arrives as a new layer so your original stays intact.

Regional Edit works with the image models in the picker — Seedream, FLUX, Nano Banana, and GPT Image 2. It is not available for video layers. Each generation costs credits like any render — see Plans & Credits.

Regional Edit belongs to one image at a time. If you zoom to a different image — by double-clicking its thumbnail in the Layers panel, or with the Previous/Next image buttons — the mode closes and a Regional Edit Mode deactivated toast confirms it. Your painted region is kept, so returning to that image and re-entering Regional Edit picks up where you left off. Re-centring the image you’re already painting doesn’t close anything.

Mask tools

The Regional Edit toolbar gives you several ways to mark the region:

  • Brush — paint freely. A size slider sets the brush diameter; the Arrow Up / Down keys nudge it by one, and Shift + Arrow Up / Down changes its softness. Right-click anywhere on the canvas to open the brush panel at your cursor — Size and Softness together, with a live preview of the stamp — so you can adjust without breaking off to reach the toolbar. Click away and that same click paints with the new setting; press Esc to close the panel without painting.
  • Freehand lasso — drag a loose outline; the shape closes into a filled selection.
  • Polygon lasso — click point-to-point for straight-edged selections.
  • Rectangle selection — drag a clean rectangular region.
  • Segment selection — appears when the layer has a colour map. Click an element and its exact shape is selected; hovering highlights the element under your cursor. Revit imports arrive with a map, and you can upload one to any other image.

Every painting tool has two modes: Add (grow the selection) and Subtract (carve it back). Press X to toggle between them; the brush panel shows which mode is live.

With the brush, right-click opens the brush panel rather than painting. The lasso, freehand and rectangle tools keep right-click as a shortcut for Subtract.

For AI-assisted selection on any image, Smart Select (SAM) — click an object and the AI traces its shape for you, no drawing required — is part of the layer-mask editing tools rather than the Regional Edit toolbar. See Layer masks.

Refine the mask

  • Invert — swap masked and unmasked areas.
  • Clear — wipe the selection and start over.
  • Undo / Redo — step back and forward through your strokes (Ctrl+Z / Ctrl+Shift+Z).
  • Copy / paste a mask between layers — from the sidebar, copy one layer’s mask and paste it onto another; it adapts to fit the target layer. (This applies to persistent layer masks, not the Regional Edit selection.)

Masks are painted at the image’s native pixel resolution, so a brush “size 1” equals one real pixel of the source image, and that precision survives any layer resize — the mask never softens or drifts when you scale the layer.

How the edit blends back

Regional Edit changes your selection plus a feathered blending margin around it. The rendered patch is colour-matched to its surroundings and composited into the original; pixels outside that blending area stay unchanged.

Focus frames a close-up around the selection and its surroundings. The frame uses an aspect ratio supported by the selected model. When needed, padding extends the frame beyond the image edges; that padding is removed when the result is placed back. Edge selections, small images, and whole-image selections are valid. A selection that needs the whole image simply has no tighter close-up available.

Choosing the render scope

When you hit Generate in Regional Edit, the Regional edit panel opens before rendering. It previews the framing: amber shows your selection, the outline shows what the model sees, and stripes show any added padding.

  • Focus (default) — a close-up around your selection for finer detail. Increase Surrounding context when the model should see more of the nearby scene.
  • Full image — keeps the whole scene visible, useful when the edit depends on distant parts of the image.
  • Both — one render of each framing for comparison, replacing the batch setting for that click. The action shows the result count. When both framings show the whole image, only one image is rendered. On devices with limited memory, the two renders run sequentially.

The selected resolution tier applies to regional edits too. Your scope and context preference are remembered while the prompt bar remains mounted. Cancel, Escape, or clicking outside closes the panel without rendering. Each result’s info panel records whether Focus or Full image produced it.

Tips

  • Paint a little past the edges of what you want changed. The feathered margin needs room to blend, and a too-tight selection can leave a visible border.
  • Start with Focus, adjust Surrounding context for a wider view, or use Both to compare with Full image.
  • Spread-out paint needs a wider frame to contain all selected areas. Edit areas separately for a tighter close-up, or choose Full image to retain the scene.
  • Removing something? Leave the prompt blank and paint over the object — the AI fills the gap to match its surroundings.
  • Use Subtract to trim overspray rather than clearing and restarting.