Skip to the content
FilDocs

Edit part of an image (inpaint)

Inpaint with AI in Fil. Brush, lasso or box the areas to change, describe each change, and GPT Image 2.5 redraws only those areas while the rest stays.

Inpaint changes part of a picture and leaves the rest alone. Paint over what should change, say what it should become, and GPT Image 2.5 redraws the marked areas. Fil then puts everything outside them back from the original, so the rest of the picture stays as it was. Use it to recolour a product, swap an object, fix a hand or put new words on a sign, several changes at once if you like.

Mark it, say what changes, and only that part is redrawn

Edit part of an image with inpainting

  1. On a canvas, point at the picture and click the brush at its top right (Edit), then Inpaint. The picture opens full screen, and the bar at the top says "Mark what to change".
    • Already in the full view? Click the Edit tab, then Inpaint in the rail on the left.
  2. Paint over what should change. The Brush is picked to start. Go a little past the edges: the model blends the marked area into what's around it. Or pick Select (W) and click the thing to change, and it's marked for you (see below).
  3. When you let go, a box beside the mark asks "What should change here?". Type the change, such as "Make the sphere butter yellow", and press Enter or click the tick.
  4. Check the model chip under the picture. The editor opens on Nano Banana 2.1 (or the image model you last picked), and once you mark an area it moves to GPT Image 2.5 Sunburst, which changes only the marked areas. The line beside the chips says "Switched to GPT Image 2.5 Sunburst, which changes only the marked areas."
    • Undo or clear every mark and it goes back to the model it opened on. A model you pick while areas are marked stays. See Choose a model.
  5. Click Generate (8 credits here), or press Enter in the text box.

The full view stays open: the picture dims and says Making Edit 2…, and the edit usually lands in under a minute. Then the editor moves onto it, with Original and Edit 2 down the left, so you can mark the next change or click Compare to see what changed. See Keep editing the result. The original stays as it was.

On a canvas, each edit is also a new Image node, named Edit 2 or similar, beside the original with a link from it. Outside a canvas, in the Image view or the Library, open the picture with View full size and click Edit; each edit is also a run at the top of the Image view.

Mark the areas to change: Brush, Select, Lasso, Box and Eraser

The marking tools are in the bar at the top of the full view.

The bar above the picture: the title and 2 zones marked, the Brush, Lasso, Box and Eraser buttons, the brush size slider, undo, redo and Clear; the sphere is brushed as zone 1 and the phone's screen is boxed as zone 2
Two zones: the sphere brushed, the screen boxed
ToolKeyWhat it does
BrushBPaints the area to change. The slider beside the tools sets its size, as do [ and ]
SelectWClick a thing in the picture, and all of it is marked. ⌥-click takes one out
LassoLDraw round a shape, and the inside is marked
BoxMDrag a rectangle
EraserETakes marks back where you paint

⌘Z undoes a mark, and ⇧⌘Z or ⌘Y redoes it. Clear takes every mark away.

Each mark away from the others starts a numbered zone, and a mark that touches a zone joins it. Click a zone's number, on the picture or in the list below it, to change what it says. In the list, the ✕ beside a zone removes it.

Zoom in to mark small things

⌘ and scroll, or pinch, to zoom in where the pointer is. The brush stays the same size on screen, so it marks finer the closer you are. The 100% button in the bar shows how far in you are; click it to zoom in or out, go to 100% or 200%, or Fit the picture again (⌘0).

Once you're in, scroll to move around, or hold Space and drag. The Hand (H) drags too, and on a phone or tablet two fingers pinch and move while one finger marks. Marks stay in place however you move, and when an edit is made it lands at the same zoom, so you can check that small thing straight away.

Select an object with a click

With Select (W), click a person, a product, a card or the sky, and the whole of it is marked, its outline found for you. It joins a zone it touches or starts a new one, like any mark. ⌥-click something to take it out of the marks, and use the Eraser or the Brush to tidy the edge.

One click can mean more than one thing: the knight, or the card he's on. Select finds up to three sizes. Click the same spot again for the next one, or use Smaller and Larger in the bar ([ and ]).

Inpaint with Select picked: a click on a holographic card marks all of it, and the box above it asks what should change, Silver frame, blue-steel knight
One click marks the whole card

Select runs in your browser and costs nothing; nothing is uploaded. It loads the first time you pick it and reads each new picture once, which takes a few seconds ("Getting Select ready…"); after that it answers at once.

Keep what's marked and change the rest

Invert (I) in the bar turns the marks round: what you've marked stays as it is, and everything else changes. Mark a product or a person, click Invert, and say what the rest becomes in the box under the picture ("What should everything else become?"), such as "a misty blue forest at dawn". The zones read Kept as it is, and no box asks about each one. Click Invert again to change the marked areas instead.

Soften the edges

The Soften slider beside Invert fades the change out past the edge of what changes, so there's no line where the new meets the old. The picture shows how far as a soft glow round the marks (or, inverted, round what's kept). Leave it at the left for a change that stops at the edge, with just a few pixels of fade.

Invert on, the card kept and everything round it tinted, Soften halfway, and A misty blue forest at dawn in the box under the picture
Keep the card, change the rest, with a soft edge

Describe each change

Under the picture, each zone is listed with where it is and what should change there. The text box below them takes anything for the whole picture, such as "keep the soft studio light".

Under the picture: zone 1, Bottom Left, Make the sphere butter yellow, and zone 2, Center, Show a sunrise photo on the screen; the box for anything else; and Only the marked areas change, beside GPT Image 2.5 Sunburst, Original, 2K, Medium, ×1 and Generate for 8 credits
Each zone and its change, then anything for the whole image

Fil sends the model one prompt: "Change only the marked areas, and keep anything new wholly inside them." (on a model that redraws the whole picture, "Make these changes, keeping the rest of the image as it is."), then a line for each zone ("1. Bottom left: Make the sphere butter yellow"), then your words for the whole picture. The new node shows that prompt.

To change the whole picture without marking anything, type the change in the box ("Describe the change, or mark where it goes first") and click Generate. The line beside the chips says "Nothing marked: the whole image is edited."

New background

To put your subject somewhere else, click New background in the box under the picture. Select finds what's in the middle of the picture, keeps it exactly as it is, and marks everything else to change, so you only say what the rest becomes, such as "a rainy street at night". Faces, hair and hands stay your own pixels.

If it took too much or too little, click Smaller or Larger, click something else to add it, or ⌥-click to take it out. The new background doesn't change the light on your subject: Relight it afterwards if it needs to match.

Remove something

To take something out of the picture, mark it and click Remove in the box beside the mark. With one zone marked, the button shows its price and runs straight away. With several, it fills in that zone, and Generate runs them together. Typing just "remove" does the same.

Mark a little wider than the thing itself: anything it casts on what's around it, like a shadow or a glow, stays unless it's marked too, and so does an edge the mark stops short of.

A removal's mark grows a little past where you drew it, so no rim of what's removed is left behind. Run a removal on its own. Alongside other changes, the model can keep what you marked; to be sure, name it, as in "Remove the sword".

Put another picture in a marked area

To put a logo, a product or a face into the picture, mark where it goes and click Add picture in the box beside the mark, then pick one of the newest pictures, search your library or upload one, or paste a picture there. Say anything else about it in the same box, such as "Engraved into the steel". The model fits it inside the marked area, in the picture's own light and style, so mark a little more room than it needs.

Each zone takes one picture, up to six in all. On a canvas, the picture is kept in the library and wired into the edit, so running it again uses it too.

Choose a model: marked areas or the whole image

The model chip opens a menu headed Edit with. Each model says "marked areas" or "whole image" under its name.

The Edit with menu: GPT Image 2.5 Sunburst and GPT Image 2.5 Flare marked areas, then Ideogram 4.5, MAI-Image-2.6, FLUX 3 Image, Muse Image, Qwen Image 3, Nano Banana 2.1 and others whole image
Only GPT Image 2.5 keeps to the marked areas

Which to pick:

  • GPT Image 2.5 Sunburst, made for precise edits: changes only the marked areas, and keeps the picture's exact shape. The editor moves to it when you mark an area.
  • GPT Image 2.5 Flare: also keeps to the marked areas, and makes four versions a run to start with. Set Images to ×1 for one.
  • Any other model redraws the whole picture from your words, keeping the rest as close as it can. Use one for changes all over, such as a new style or light. Picked while areas are marked, it stays, and the line says "Nano Banana 2.1 can't use marked areas: the whole image is edited, as described."

The chips after the model offer what that model has:

  • Aspect ratio starts on Original, the picture's own shape. Pick another and the whole picture is redrawn, since the original no longer lines up to be put back. Other models than GPT Image 2.5 take the nearest shape they make; its menu says which ("The image's own shape · 16:9").
  • Resolution (1K, 2K, 4K), Quality (Low, Medium, High), Images (×1, ×2, ×4) and Effort, where the model has them. With marks on Original, the edit comes back at your picture's own size (up to 20 megapixels), and everything outside the marks is unchanged, pixel for pixel; Resolution sets how finely the marked part is drawn. With nothing marked the whole picture is redrawn at that resolution, and the hint says when it comes back smaller than your picture.
  • The globe or lock: whether the edit is public or private. On a canvas it follows the picture's node; see Image editing.

What inpainting costs

The price is on Generate before you start. It's what the model costs to make a picture from one reference, at the settings you pick:

Model16:9Square
GPT Image 2.5 Sunburst812
GPT Image 2.5 Flare, ×42442
Nano Banana 2.177

These are at 2K and Medium quality; Nano Banana 2.1 redraws the whole image. On GPT Image 2.5 Sunburst, a 16:9 edit costs:

SettingCredits
Quality: Low, Medium, High3, 8, 24
Resolution: 1K, 2K, 4K5, 8, 12
Images: ×1, ×28, 13 for both

Those are the most each can cost. A run holds that much and settles at what it used, which on GPT Image is usually about half, and the rest comes back, so the button shows the likely range. If it fails, or the model's provider blocks it, its credits come back.

See what you asked for

The edit's node keeps what you asked for. Select it, and the panel on the right shows Asked for: the picture with each zone outlined and numbered in pink, and each change with where it is. In the full view, the same panel sits beside the edit.

The Asked for block in the edit's panel: the picture with zone 1 outlined in pink round the sphere, and 1, Bottom Left, Make the sphere butter yellow
The marks and the words, kept with the edit

The node keeps the marks too. Click Add on it for another take of the same edit, on the same areas. To change something else, edit the new picture: its Edit menu opens Inpaint on it.

Edit an SVG

An SVG that a Code node made opens with Inpaint alone, and it's edited as code rather than redrawn as a picture. Mark the areas and describe each change as above. The model chip lists the Code models, starting on the one that made the SVG, and the line beside it says what happens, such as "Made again as SVG code with Claude Sonnet 5.5, each change where it's marked."

On a canvas, Generate adds a Code node that makes the new SVG, with the marked copy wired into it as a picture so the model sees where each change goes. Outside a canvas, the new SVG runs at the top of the Code view. See Code generation.

Inpainting keys

KeysWhat they do
[, ]A smaller or larger brush
⌘Z, ⇧⌘Z or ⌘YUndo, redo a mark
⌘ and scroll, ⌘+, ⌘−Zoom in and out
⌘0, ⌘1Fit the picture, 100%
Space and drag, HMove around
EnterKeep a zone's change; in the text box, Generate (⇧Enter for a new line)
IInvert: keep what's marked, change the rest
EscClose a zone's box, then the full view

The tools' letter keys are in the table above; they and the bracket keys work while you're not typing in a box.

Tips

  • Mark a little more than the object, or nudge Soften: its shadow and edges change with it.
  • One change a zone reads best. For three changes, mark three zones.
  • Everything outside the marks is put back from the original, so anything drawn past them is cut off, and a glow or shadow outside them stays. For something tall, or a thing whose light falls on what's round it, mark a little wider.
  • Text in a picture: mark the words, and give the new words in quotes.
  • For a big change of style or light all over, skip the marks and use a model that redraws the whole picture.

What's next