Issue 13 · Nov 2–8, 2026Editions · Glossary · Archive · Method · RSS · HU / ENG

News of the AI era, curated weekly

Glossary › Generative media

inpainting

basicwidespread

Inpainting is an image editing process where artificial intelligence fills or replaces a selected part of an image with new content that fits the surroundings.

In plain terms

Imagine a restorer filling in a chipped spot on an old painting: they look at the surrounding colors and brushstrokes and paint in the gap so that it cannot be noticed. Inpainting does the same on digital images, but in seconds, and instead of a restorer, an image generation model does the work.

It is used for two things. One is removal: you take the tourist who wandered into the shot, the power line or the stain out of the image, and a plausible background takes its place. The other is replacement or addition: you select an area, describe in text what you want there (for example, "red sofa" or "cloudy sky"), and the model paints it in.

It differs from full image generation in that most of the image remains untouched, with only the selected part changing. It is like a very smart eraser and brush combined: you do not get a new image, but you correct the existing one.

How it works

  1. You select the area to modify: paint over it with a brush, or let the tool automatically recognize the object. This selection is called a mask.
  2. If you want to change or add something, you specify in text what should go there. If you only want to remove something, the description can be omitted.
  3. The model examines the mask's surroundings: colors, lights, shadows, perspective, and patterns.
  4. It redraws the selected area so that the content fits the remaining parts of the image and your request. The most widespread diffusion models today do this step by step starting from noise, but other methods also exist.
  5. The new detail blends with the original at the edges. If you dislike the result, you can request a new version, as each run produces slightly different output.

An everyday example

On your vacation photo, a stranger stands in the background on the beach. In your phone's gallery, you circle them, press the delete button, and sand and waves appear in their place, as if they were never there.

Who is affected

everyoneThis technique powers the 'magic eraser' function in phones and photo apps, allowing anyone to alter a photo with a few gestures.
marketerOn product photos, you can change the background, remove distracting details, or create variations without a new photoshoot. → Marketing
lawyer, citizenPartial rewriting of a real photo can be used for deception and falsifying evidence, making verification of image origins increasingly important. → Law
entrepreneur, executiveWhen posting real estate ads, running a webshop, or creating branding materials, it makes image editing cheaper and faster, but you are responsible for misleading modifications.

A common misconception

MythInpainting restores what was originally behind the masked area.
In realityThe model cannot see behind the object; it only invents a plausible continuation based on the surroundings. What you get is realistic, but not reality.

Limits and risks

Similar, but not the same

Related concepts

Broader

generative AI, image generation, image editing

Narrower

generative fill, object removal, video inpainting

On the edge

outpainting, diffusion model, maszk, deepfake, watermarking

A brief history

The word originates from painting restoration, where it denotes the filling of damaged or missing parts. In digital image processing, it was made famous by Marcelo Bertalmío and co-authors in their 2000 study titled "Image Inpainting." The generative version controlled by text instructions spread in the early 2020s with diffusion models.

Where things stand

By the end of 2026, it will be a basic function of phone gallery apps, photo editing programs, and image generation services. It works increasingly on videos too, and in many devices it is already accessible with plain text requests, without selection. In such cases, however, the model may reconstruct the entire image, so the rest of the image may also change slightly.

Status: 2026 November

Also known as

inpainting · image inpainting · generative fill · generative fill · image inpainting · AI inpainting · magic eraser · object removal

Sources

This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.