Inpainting is spot repair. You mask the one broken area, let the model redraw only that patch, and keep every good thing about the rest of the image untouched.
You finally got the pose, the light, and the mood perfect, and one hand has six fingers. Here is how to fix just that spot instead of re-rolling the whole thing and losing the magic.
Hey friends. Let me describe a specific heartbreak, because I know you have lived it. You generate the one. The composition sings, the light is exactly what you pictured, the expression is alive, the whole thing just works. Then your eye drifts to the left hand and it has an extra finger, or the earring on one side melted into the jaw, or there is a weird smudge in the background that used to be a chair. And your instinct is to hit generate again and pray the next roll fixes the flaw without breaking everything you love. It almost never does. You trade one problem for three new ones.
There is a much better way, and it is the single most underused tool for people trying to level up: inpainting. Instead of throwing away a great image over one bad patch, you mask just the broken area and ask the model to redraw only that spot while leaving the rest of the pixels completely alone. Today we walk through what inpainting actually is, how to mask a region, how denoise strength decides how bold or gentle the repair is, why you should re-prompt for each mask, how to hide the seam so the fix is invisible, and when a spot is honestly too far gone and you should regenerate instead.
Inpainting is targeted regeneration. You give the model an existing image plus a mask, which is simply a painted region that says "only touch here." The model regenerates the pixels inside that region while reading the surrounding pixels as context, so the new patch tries to blend into what is already there. Everything outside the mask is preserved exactly, down to the pixel. That is the whole magic: you get to keep a finished image and surgically replace only the part that failed.
Almost every serious tool has it. In the popular local interfaces it is a dedicated inpaint tab where you brush over the flaw. In web tools it is often a "generative fill" or "edit region" brush. The names differ but the idea is identical everywhere: paint the problem, prompt the fix, and only that area changes.
The mask is the whole game, and most bad inpaints come from a bad mask. A few habits make it work:
Denoise strength, sometimes called denoising or just "strength," controls how much of the original masked area the model is allowed to throw away. It runs from a light touch to a full rebuild, and getting it right is the difference between an invisible fix and an obvious patch.
| Denoise level | What it does, and when to use it |
|---|---|
| Low (a gentle nudge) | Keeps most of the original and only cleans it up. Great for a small smudge, a soft artifact, or nudging a slightly-off edge. Too weak to rebuild a mangled hand. |
| Medium (a real revision) | The everyday sweet spot for most repairs. Enough freedom to redraw a hand or an eye, but still anchored to the existing shape, pose, and color so the fix stays coherent. |
| High (a full redraw) | Nearly ignores what was there and generates fresh. Use it when the area is truly broken, but expect it to invent new content that you will have to match back to the scene. |
The practical move is to start in the medium range, look at the result, and only push higher if the flaw survives. Cranking straight to a full redraw on a minor blemish is how you turn a tiny fix into a patch that no longer matches the lighting around it.
Here is a mistake almost everyone makes at first: they leave the original full-image prompt in place while inpainting a tiny region. Do not do that. When you mask a hand, the model is only painting inside that mask, so your prompt should describe what belongs in that mask specifically. Swap the sprawling scene prompt for something tight and local like a relaxed natural hand, five fingers, resting, soft realistic skin. When you fix an eye, prompt a clear detailed eye, natural catchlight, matching gaze direction. A focused prompt aimed at the masked content gives you dramatically cleaner results than the whole scene description competing for a two-inch patch.
This is exactly the kind of precision that makes prompting powerful in general, and it pairs naturally with a tight negative prompt for the region too. If you want a refresher on aiming negatives at one specific failure, our walkthrough on using negative prompts as a precise eraser applies perfectly here: add extra fingers, deformed, fused to the negative while fixing a hand and you tilt the odds hard in your favor.
An inpaint fails when the new patch does not belong to the same scene. The eye is very good at catching a repair that has slightly wrong lighting, a different color temperature, or too-clean detail against a softer original. A few ways to keep the seam invisible:
Getting light to agree across the seam is really the same skill as lighting a whole portrait well, so if the mood ever drifts during a repair, our lighting and mood guide is the best companion for describing the exact light your patch needs to match.
Inpainting is a scalpel, not a cure-all. It is the right call when the image is mostly great and the problems are local and contained: a bad hand, a wonky eye, a floating earring, a background artifact, a soft edge that needs sharpening. It is the wrong call when the trouble is structural, like a pose that is fundamentally twisted, anatomy that is broken across the whole figure, or a composition you never really liked. No amount of patching saves a base image whose bones are wrong, and you will spend more time fighting it than a fresh roll would cost.
A simple rule of thumb: if you can circle every problem with two or three small masks, inpaint. If the problems are everywhere or the whole layout is off, take the good ideas back to the prompt and regenerate from scratch. Knowing which one you are looking at saves an enormous amount of frustration.
Put it all together and every fix follows the same calm loop:
The habit that changes everything: stop treating a flawed masterpiece as a failed roll. The next time one great image has one bad hand, do not hit generate. Mask the hand, write a five-word local prompt, set a medium denoise, and repair it. You will keep the shot you fell in love with instead of gambling it away.
Inpainting is the quiet skill that separates people who reroll a hundred times hoping for a clean image from people who make a great image and then finish it. Mask the problem, prompt for just that patch, dial denoise to rebuild without inventing a mismatch, and match the light at the seam. Do that and a six-fingered hand or a melted earring stops being a reason to start over and becomes a two-minute repair.
Repair work pairs beautifully with a final resolution boost, so once your fixes are clean, run the whole thing through the ideas in our upscaling and resolution guide, and you can see the kind of finished, detail-rich results this care produces across our character galleries. Now go rescue that image you almost deleted.
Happy generating, and send me the picture you saved instead of scrapping!