# Inpainting

> AI redraws one part of a picture that you mark, and leaves the rest the same.

**Field:** Artificial Intelligence  
**Category:** Multimodal  
**Also known as:** AI Inpainting, Generative Fill, Outpainting

## Think of it like

It is like fixing a hole in a painting. You paint just the hole so it fits the rest.

## Definition

Inpainting is AI that redraws one marked part of a picture. The rest is left alone. You paint a mask over the area to change, and can add a prompt to say what should go there. The model fills the mask so that it matches the light, colors and lines around it. It is used to remove things, such as a stranger in the back of a photo, or to add or swap them. Outpainting is the same idea outside the frame, to make a picture bigger.

## Example

Lucy has a great street photo, but a parked car blocks the shop sign. She masks the car, and inpainting fills the space with road and shop front that match the rest.

## Why it matters

It fixes one part without starting over. Everything you liked about the picture stays.

## Common mistake

Making the mask too tight around the object. Leave a small margin, so the fill blends into its edges.

## Three principles

- **Mask an area.** Only that changes.
- **Matches around it.** Light and lines.
- **Remove, add, extend.** Outpainting too.

## Related terms

- [Image-to-Image](https://learn.benibix.com/term/ai/image-to-image)
- [Text-to-Image](https://learn.benibix.com/term/ai/text-to-image)
- [Diffusion Model](https://learn.benibix.com/term/ai/diffusion-model)
- [AI Background Removal](https://learn.benibix.com/term/ai/background-removal)
- [Clone Stamp Tool](https://learn.benibix.com/term/design/clone-stamp-tool)

## Told apart from

- [Inpainting vs Image-to-Image](https://learn.benibix.com/compare/inpainting-vs-image-to-image): People think inpainting and image-to-image are the same edit. They are not. Image-to-image redraws the whole picture in a new style, so faces and text can shift too. Inpainting redraws only the part you mask, and leaves the rest as it was.

![A photo of a street with a mask painted over a parked car. The model fills only the masked area, and the car is gone while the rest stays the same.](https://learn.benibix.com/diagrams/mm-inpainting.svg)

---

Source: https://learn.benibix.com/term/ai/inpainting
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
