Skip to content

Image editing

What is inpainting?

Inpainting is filling a missing, damaged or unwanted area of an image with new content that blends in. AI models use it to remove objects, people or text and rebuild the background behind them, to repair damage, or to replace part of a picture with something new. The rest of the image stays as it was.

By the DreamBench team. Updated .

Inpainting at a glance

At a glance

Input
A picture and the area to fill: painted as a mask, or described in words.
Output
The same picture with that area replaced.
Keeps
Everything outside the area.
Used for
Removing objects, people and text; repairing damage; replacing one thing with another.
Struggles with
Large areas in busy scenes, faces, text, and shadows left behind.

Which edit do I need?

Take something out of the picture: Inpainting as a removal: the area is filled with the background that was probably behind it. The AI object remover does it from a description, no brush; name the shadow and reflection too.

How inpainting works

Inpainting works from a chosen area: you paint a mask over it, or describe it in words, such as “the lamp post on the right”, and the model finds it. The model then reads the pixels around the area and generates new ones to match their light, texture and perspective, so the join disappears. Small areas on plain backgrounds blend best.

Mask

Every pixel is in or out. Fine enough for a solid object, blocky on hair, smoke or motion blur.

Matte

Every pixel has a share of transparency, from 0 to 100%, so loose strands keep their softness.

Mask-based inpainting starts with a mask that marks the pixels to replace. A soft edge, like a matte’s, helps the fill blend into what surrounds it.

The hard part is the join. A small removal on a plain background is easy to hide. A large one in a busy scene asks the model to invent more, and the fill can look soft or repeat a texture.

A removal that overlaps the subject shows for a different reason: an arm across a person or a pole in front of a face makes the model rebuild part of the subject as well as the background, and a face is the thing it invents worst. Something standing apart from the subject, on a wall, a sky or a lawn, fills cleanly; a shadow or a reflection it cast stays behind unless you name it with the object.

Mask, brush or words

Three ways to tell an editor what to fill
You doGood for
MaskPaint over the area, then optionally describe what should go thereExact control over where the change goes
Healing brushBrush over a small flaw; the editor copies texture from nearbyDust, spots and small blemishes
InstructionWrite what to remove and where it isQuick removals, no drawing

A short history of inpainting

From restorers to diffusion models
How it workedIts limit
By handRestorers retouched damaged paintings and photos, matching the surrounding brushwork or grainSlow, and only as good as the restorer
Copying pixelsEarly software filled a gap by extending lines and copying patches from elsewhere in the pictureFine for skies and walls, poor where something new had to be invented
Learned modelsNeural networks, then diffusion models such as latent diffusion, learned what images contain and generate a fillThey invent: the fill is plausible, not recovered

Where people use inpainting

  • Removing people who walked into a shot.
  • Erasing power lines, signs, stains or clutter.
  • Taking a date stamp or a caption off a photo.
  • Replacing one object with another in a product shot.
  • Fixing hands, faces or text in an AI-generated image.
  • Repairing scratches, tears and stains in old photos.

How DreamBench does inpainting

The AI object remover works without a brush: you write what should go and where it is, and Nano Banana 2 removes it and fills the space with the surfaces, light and perspective around it. Two presets do the same for people and for text.

A removal starts at 7 credits. If a large one leaves a soft patch, run it again with a more precise description. To remove something from a clip instead, see video inpainting.

The AI object remover in figures
FigureWhat it means for your photo
InputJPEG, PNG, WebP or HEIC, up to 40 MBA picture over 2048 pixels on its long edge is scaled to 2048 before the run.
The areaA few words: what it is and where it sitsThe description is the selection. “The red trash can on the left” works; “the clutter” is vague and can remove too little or the wrong thing.
ModelNano Banana 2, an instruction editThe whole picture is drawn again with the object gone, instructed to keep everything else.
OutputA JPEG in your photo’s proportionsAt the model’s own size, so a large upload can come back with fewer pixels; the AI image upscaler adds them back without redrawing.
PriceFrom 7 credits a removalA larger photo is rendered at a larger size and costs more; the button shows the price before you press it, and a run that fails is refunded.
MarksNo visible watermarkThe model embeds SynthID, Google’s invisible mark that identifies a picture as made or edited by AI.
Your uploadRemoved from the tool’s storage after 7 days, with the resultNot used to train a model; upload only pictures you have the right to edit.

Questions

Is inpainting the same as removing an object?

Removing an object is the most common use of inpainting. Inpainting itself is broader: it fills any chosen area, so it can also replace an object or repair a damaged part of a photo.

Do I need to paint a mask?

Not with an instruction-based editor. DreamBench’s object remover takes a short description of what to remove and where it is. Mask-based tools ask you to paint over the area first.

How do I remove an object from a photo without Photoshop?

To remove an object from a photo without Photoshop, use an instruction-based remover: write what should go and where it is, including its shadow or reflection, and the model fills the space with the surfaces and light around it. DreamBench’s object remover works this way, with no brush, in a phone browser as well as on a computer; keep the area small and run it again if the fill looks soft.

Why does the inpainted area look blurry or smudged?

The model had too little to go on: a large area, a busy background or an imprecise description. Remove a large object in smaller steps, describe exactly what is there, and run the fill again rather than enlarging the area.

How big an object can inpainting remove?

The smaller the better: a removal that covers more than a small part of the picture asks the model to invent a scene, and the fill goes soft or repetitive. Remove a large object in pieces, or re-shoot if you can.

What is the difference between inpainting and outpainting?

Inpainting fills a region inside the picture. Outpainting adds new content outside its edges to make it larger. Both match what they add to what is already there.

Can inpainting be used on photographs as well as AI-generated images?

Yes. It works the same way on both: on photos to remove things or repair damage, and on generated images to fix a hand, a face or a word that came out wrong.

How do you get good results from inpainting?

Keep the area small, describe exactly what should go and where it is, and name shadows and reflections too. If a fill looks soft, run it again rather than enlarging the area.

Does inpainting lower the resolution of my photo?

It can, with an instruction-based editor. The picture is drawn again at the image model’s own size, so a large upload can come back with fewer pixels than it had, in the same proportions; a mask-based tool that regenerates only the painted area keeps the rest at full size. For a large print, enlarge the clean photo afterward with the AI image upscaler, which adds pixels without redrawing anything.

Does inpainting change the rest of the photo?

With a mask, no: only the painted area is regenerated and every other pixel is left as it was. With an instruction-based remover the whole picture is drawn again by the image model, which is told to keep the framing, colors and detail everywhere else; it comes back close to the original, but very small text and fine patterns can shift slightly, so compare the before and after before you download.

Can inpainting remove a watermark or a logo from a picture?

Technically it is a removal like any other: name the mark and where it sits, and the picture behind it is rebuilt from what surrounds it, cleanest over a plain area. Do it only on pictures you own or have the right to edit. A watermark or credit on someone else’s work is not what the tool is for, and removing it doesn’t change who owns the image.

Does inpainting cost anything?

Some apps include a basic eraser. On DreamBench you create a free account and choose a plan, and a removal starts at 7 credits.

More from Glossary

Sources

DreamBench is an independent platform and isn’t affiliated with or endorsed by the companies named on this page.