AI Image Inpainting
Mark a rectangle over the part of a picture you want replaced, say what belongs there, and the model paints it in while everything outside the box stays as it was.
Inpainting repaints one part of a picture and leaves the rest of it alone. You drag a rectangle over the region you want replaced, describe what should appear inside it, and the model fills that region to match the picture around it. What comes back is the same photograph, with one area rebuilt.
Run the model
Your picture
The words the model works from. On this page it is what you want added, changed, or found in the picture.
Picture
Drop your images here
Up to 1 images per batch · Maximum 20.0 MB per image
Result
No result yet
Add a picture and press Run. The model runs on our server and the result comes back here.
Cost
This tool is switched off
This instance has no AI vendor configured, so none of the AI tools can run. The browser-only tools still work.Sign in to run this model
The model runs on our server, so a run needs an account. Sign in and this page picks up where you left off.How to repaint one region in 3 steps
- 01
Upload the picture and box the area
Add a JPG, PNG or WebP file of up to 20 MB, then drag a rectangle over the part you want replaced — a logo on a wall, a person in the background, a scratch across a face. Keep the box a little wider than the thing itself, so the model has room to blend the new pixels into their surroundings.
- 02
Say what belongs inside the box
Write the texture, the color or the object that should appear where the box is: plain brick, open water, a gray wall. The prompt describes the inside of the mask, not the whole picture. Leave it empty and the run still happens, because a short default sentence asks for a fill that matches the surroundings.
- 03
Pick a model and download the result
The page opens on the cheaper of the two models and shows what each one costs before you commit; the second one is the careful choice when the masked area has to hold an object and keep its shape. Press Run, the credits are charged once, and the finished picture is stored privately, ready to download before it is deleted within 24 hours.
Why a rectangle is enough to repaint a region
An inpainting model does not repaint a whole picture; it repaints a hole in one. You hand it the original, a black-and-white mask and a sentence about what belongs inside the masked area, and it returns that same picture with the area rebuilt. White marks the pixels to generate, black marks the pixels to keep, so everything outside the rectangle comes back untouched: the horizon, the light on the left of the frame, the hands holding the object. That is what makes a rectangle enough. A freehand selection asks you to trace the exact outline of an arm; an inpainting model needs a region described in words and a boundary with some slack, because it blends the new pixels into the ring of picture around them instead of cutting them out. Draw the box slightly larger than the thing you are removing and the model rebuilds the edge for you. The words carry more weight than the box: describe the surface that should appear, not the object that has to go, because a request for rough brick wall gives the model something to paint while a request to remove the sign gives it only a hole. The result is still a guess, constrained by the light and the grain of the picture itself. It cannot recover something the photograph never captured, and a mask over a face returns a plausible face rather than the face that was there.
Three things the rectangle buys you
Only the masked pixels are regenerated
The area outside the box comes through untouched, so a repair on one side of a photograph leaves the grain, the focus and the color on the other side as they were.
Two models, one rectangle
The cheaper model is the default for texture, sky and small patches; the second one is the careful choice when the masked area has to hold an object and keep its shape. Both take the same picture, the same mask and the same words, and the picker shows what each run costs before you press Run.
A mask drawn at the size of the picture
The rectangle becomes a mask at the resolution of the file you uploaded, so the region that gets repainted is the region you boxed. Nothing rescales the mask, and there is no second selection step to line up.
What happens to the picture you upload
This page uploads, so it is worth being exact. The picture and its mask leave your browser, go to our server and are forwarded to the AI vendor that runs the model, Replicate. The original is not kept: once a run finishes there is no readable copy of the file you sent on our side, and the mask goes with it. The only thing we keep is the result, written into our own storage, readable only through your signed-in session and deleted within 24 hours. Your pictures are never used to train a model, not by us and not by the vendor. This page takes JPG, PNG and WebP files of up to 20 MB.
Questions people ask
What happens outside the rectangle I draw?
Nothing. The mask is white inside the box and black everywhere else, so the black area is left as it was and the pixels outside keep their color, focus and grain. The model is not asked to redraw the whole photograph, which is why it cannot soften a part of the picture you did not mark.
Does the rectangle have to follow the edge of the object exactly?
No, and a slightly generous rectangle works better than a tight one. The model blends the new pixels into the ring of picture around the mask, so it needs a little of the surroundings to read the light and the texture. Trace the exact outline of an arm and you leave it nothing to blend against.
What should the prompt describe inside the box?
Describe what belongs in the rectangle, not the whole picture: a texture, a surface, a color, a simple object. A request for rough brick wall gives the model something to paint, while a request to remove the sign gives it only a hole to fill. Leave the box empty and a short default sentence is sent instead, so the run still works.
Do I need the second model for a small patch?
Usually not. The cheaper model, which the page opens on, handles a patch of texture or sky and leaves more of the surrounding picture visible. Switch to the second model when the masked area has to hold a recognizable object and keep its shape; it costs more, and the picker lists both prices before you start.
Why can a large repainted area look smooth and generic?
Inpainting reconstructs pixels that were not in the file, so the result is a guess that the surrounding picture constrains. A small region with plenty of context comes back convincing; a large region with little context comes back flat, because the model has almost nothing to copy from. Shrink the rectangle, or split one big removal into two runs.