Free | No tracking | Every fact with a source|German and English

Glossary / Image and video

Inpainting – explained simply

With inpainting, you paint a mask over part of an image, and only that area is regenerated by the AI.

Also: Inpaint, Inpainting mask

You mark the area that should change, for example a hand or a background. White areas of the mask are repainted, black areas stay the same. The prompt describes what should appear in that spot.

So the transition does not look harsh, the mask can be blurred. For fine details, it helps to edit only the masked crop at a larger size and then put it back in; diffusers offers the padding_mask_crop option for this. There are also specially trained inpainting models that create especially clean transitions.

What does that mean for you? For small corrections like hands or faces, inpainting is usually faster than rerolling the whole image.

Related terms

Sources