← ABUZ8 BLOG

AI Image Inpainting: Erase, Replace, and Repair Photos in the Browser

TOOLSJUNE 1, 20265 MIN READ

AI image inpainting is the quiet workhorse behind most "magic eraser" features you've used in the last two years. You paint over a part of an image, and the model invents new pixels to fill the hole so convincingly that nobody can tell something was there. Remove a photobomber, erase a watermark you have the rights to remove, repair a scratched scan, swap a sky. This post is how inpainting actually works under the hood, the three failure modes that ruin amateur edits, and the masking workflow we use to get clean results every time.

Our free image inpainting tool runs the model stack described below, in your browser, with no account.

What inpainting actually does

Most people think inpainting "removes" an object. It doesn't. It does the opposite — it generates a brand new object: whatever the model predicts should be behind the thing you erased. You hand it a masked region (the hole) and the surrounding pixels (the context), and a diffusion model paints the hole back in, conditioned on what it sees around the edges.

That distinction matters because it explains every failure you'll ever hit. The model is guessing. If the context is rich and unambiguous — a person standing in front of a plain wall — the guess is perfect. If the context is ambiguous — a person standing in front of a detailed bookshelf — the model has to invent book spines that never existed, and the seams show.

The three ways inpainting goes wrong

  1. The ghost. A faint outline of the removed object stays behind. Cause: your mask was too tight. The model preserved a few edge pixels of the original because you didn't paint over them. Fix: always over-mask by 8-15 pixels past the object's silhouette.
  2. The blur smear. The filled region looks soft and low-detail next to a sharp background. Cause: weak model, or denoise strength set too low, so it averaged instead of generating. Fix: a stronger base model and a higher denoise on the masked region only.
  3. The hallucinated nonsense. You erase a hand and the model paints a sixth finger, or fills a removed sign with garbled fake text. Cause: ambiguous context plus too large a hole. Fix: shrink the job — inpaint in two or three smaller passes instead of one giant mask.

The model we use

Our pipeline runs a Flux-based inpainting model with a dedicated fill checkpoint. Compared to the older Stable Diffusion 1.5 inpainting models that powered the first wave of magic-eraser apps, the newer fill models hold structure far better — straight lines stay straight, brick stays aligned, and text-adjacent regions stop producing the melted-letters look that gave AI edits away in 2023.

For surgical "remove this one object, keep everything else" jobs, we pair the fill model with a segment-anything mask so you can click the object instead of hand-painting it. The model traces the exact silhouette, we auto-expand the mask, and the fill runs only inside it.

The masking workflow that actually works

Step 1: Mask the object plus its shadow and any reflection. People forget shadows. A removed person with their shadow still on the floor looks haunted.

Step 2: Over-mask the edges by ~10 pixels so no original pixels survive.

Step 3: If the hole is large, split it. Inpaint the left half, then the right half. Smaller holes mean better context and fewer hallucinations.

Step 4: Run it twice with different seeds and keep the better result. Inpainting is probabilistic — the second roll is often cleaner.

Inpainting vs background removal vs object removal

These three get confused constantly:

Real use cases that pay for themselves

The honest limitation

Inpainting cannot recover information that was never captured. If a face is half hidden behind a removed object, the model invents the hidden half — it does not reconstruct the real one. For creative work that's fine. For anything where accuracy is a legal or factual matter (evidence, journalism, ID photos), inpainting is the wrong tool, and you should treat any filled region as a fabrication, because that's exactly what it is.

Try the free tool

The ABUZ8 inpainting tool runs a Flux fill model with click-to-mask segmentation. Paint or click, optionally add a prompt for what should replace the region, and download the result. No upload to a third party, no watermark, no credits.

Join Early Access

ABUZ8 is rolling out 100 AI tools behind one login. Get in early and lock your spot.

Join Early Access