ONLINEAGENT_OPS 2026.Q3 HOME HUBSMODELSBUILDINGCOMPANIESFILMMAKINGSECURITYLIVING WITH ITSKILLSALL HUBS, ONE TERMINAL → ARTICLES CRAFT RECORD BLOG TOOLS SKILLS SEARCH /
HOME›AI MEANINGS›WHAT IS INPAINTING?
AI MEANINGS · MEANINGBEGINNER

What is inpainting? Editing or extending images

Inpainting lets AI change one part of an image; outpainting extends a picture past its edges. Here is what both mean in plain English, with examples.

READ6 min
WORDS1,258
SECTIONS7
TYPEMEANING
CHECKED1 OCT 26

Inpainting means using AI to change one chosen part of an image, such as removing a person or swapping a sky, while leaving the rest untouched. Outpainting means the opposite direction: the AI extends a picture beyond its edges, inventing what lies outside the frame.

◈ IN PLAIN TERMS

Think of a painting restorer. Inpainting is touching up one damaged patch so it blends with the rest. Outpainting is being handed a small painting and asked to make the canvas wider, painting new scenery around it in the same style. Both work on an existing picture rather than starting from nothing.

In a sentence: “A bin spoiled the street photo, so I used inpainting to paint it out and left the rest of the picture alone.”

What it means

You mark the area; the AI repaints only that area. The marked area is called a mask. Hugging Face, a site where AI models are shared, says in its guide for developers that inpainting “relies on a mask to determine which regions of an image to fill in”.1

Outpainting uses the same idea, with the mask placed around the outside of the picture instead of inside it. Google’s documentation for its Imagen image models, on Vertex AI pages Google now marks as no longer updated, defines it: “Outpainting is a mask-based editing method that expands the content of a base image to fit a larger or differently sized mask canvas.”2 Apps give these features their own names, so look for words like “fill”, “erase” or “expand” in the edit menu.

A simple example

A holiday photo, fixed and then widened. Say a stranger walked into your beach photo. With inpainting, you brush over the stranger and type “empty sand”; the AI paints sand where they stood. Hugging Face lists jobs like this, from “removing defects and artifacts” to “replacing an image area with something entirely new.”1

Now say the photo is tall but you need a wide banner. With outpainting, the AI adds more beach and sky to the left and right. None of that extra scenery existed; it is the AI’s invention, matched to the original.

INPAINTING VS OUTPAINTING · SAME IDEA, OPPOSITE DIRECTIONS
Both repaint a masked area of an existing picture. Where the mask sits is the difference.
INPAINTING
Note: Mask goes inside the picture
Note: Repaints only the marked area
Note: Example: brush out a stranger, get empty sand
No: Can still change parts you did not mark
OUTPAINTING
Note: Mask goes around the outside
Note: Extends the picture beyond its edges
Note: Example: widen a tall photo into a banner
No: The extra scenery is invented, not real
Reasoning, 1 Oct 2026 — summarises this page’s sections on what it means, the holiday-photo example and why it matters to you.

Why it matters to you

  • It saves starting again. Fixing one detail is often faster than generating a whole new image and hoping it comes out better. The iterative workflow shows this approach of refining rather than starting over.
  • It can change more than you marked. Hugging Face notes that models trained for inpainting blend edges well but “are more likely to change your unmasked area.” Compare the result with the original.1
  • Edited photos can mislead. Removing a person or adding an object changes what a photo shows. Be open about edits when it matters, and remember others can do the same; see deepfake meaning.
  • Ownership. If you plan to claim copyright in an edited AI image, who owns what you generate explains why your own editing choices matter in the United States.

Where the word comes from

The word comes from art conservation, where restorers “inpaint” damaged patches of old paintings. A 1977 article in the Journal of the American Institute for Conservation, on the methods of the restorer Helmut Ruhemann, says: “All inpainting is a process of selection, and one never can or should repair every minutest damage.”3 Image editing uses the word for the same idea: repairing one area so it blends with everything around it.

Often confused with

WordHow it differs
Image-to-image (img2img)Differs: reworks the whole picture from your prompt. Inpainting changes only the masked part. Hugging Face calls inpainting “a more precise tool”.1
UpscalingDiffers: makes the same picture bigger and sharper. Outpainting makes the scene wider. See AI upscaling meaning.
CroppingDiffers: cuts the picture smaller. Outpainting is roughly the reverse: it makes the canvas bigger.
Background removalDiffers: cuts the subject out, leaving the background empty or plain. Inpainting fills a space with new content. See how to remove a background with AI.

Questions people ask

What is a mask in inpainting?

It is the area you paint over to tell the AI which part to change. Hugging Face’s guide says “Inpainting relies on a mask to determine which regions of an image to fill in”.1 Everything outside the mask is meant to stay as it was.

What is the difference between inpainting and image-to-image?

Image-to-image reworks the whole picture; inpainting changes only the part you mark. Hugging Face puts it this way: “You can think of inpainting as a more precise tool for making specific changes and image-to-image has a broader scope for making more sweeping changes.”1 See img2img meaning.

Why did inpainting change parts I didn’t mark?

Some models blend the edges by repainting a little beyond the mask. Hugging Face warns that models trained for inpainting “are more likely to change your unmasked area.”1 Compare the result with the original before you use it.

Learn more on this site

Related on this site: Image Edit Prompts That Change Only One Thing · Old Photo Restoration Prompts · Inpainting vs Outpainting

QUICK CHECK · 3 QUESTIONS

Pick an answer to see if you got it. Nothing is recorded.

1. What does inpainting do?

  • Changes one chosen part of an image and leaves the rest alone
  • Makes the whole picture bigger and sharper
  • Turns a picture into a moving clip
Show the answer

Answer: Changes one chosen part of an image and leaves the rest alone. You mark an area, called a mask, and the AI repaints only that area.

2. What is outpainting?

  • Removing the background from a picture
  • Cutting a picture down to a smaller size
  • Extending a picture beyond its edges with invented scenery
Show the answer

Answer: Extending a picture beyond its edges with invented scenery. Outpainting puts the mask around the outside, so the AI adds new scenery matched to the original.

3. Why should you compare an inpainted result with the original?

  • Inpainting always makes the colours darker
  • Some models change parts you did not mark
  • The file name changes after editing
Show the answer

Answer: Some models change parts you did not mark. Models trained for inpainting blend edges well but may repaint a little beyond the mask.

Related terms: Diffusion model · Image-to-video · Img2img (image-to-image) · Keyframe · Lip sync · LoRA

SOURCES
  1. 1Hugging Face, Inpainting, Diffusers documentation, undated, read at source 1 Oct 2026“Inpainting replaces or edits specific areas of an image.” and “Inpainting relies on a mask to determine which regions of an image to fill in”. ↑a“This makes it a useful tool for image restoration like removing defects and artifacts, or even replacing an image area with something entirely new.” ↑b“As a result, these checkpoints are more likely to change your unmasked area.” ↑c“You can think of inpainting as a more precise tool for making specific changes and image-to-image has a broader scope for making more sweeping changes.” ↑d“Inpainting relies on a mask to determine which regions of an image to fill in”. ↑e“You can think of inpainting as a more precise tool for making specific changes and image-to-image has a broader scope for making more sweeping changes.” ↑f“As a result, these checkpoints are more likely to change your unmasked area.” ↑g
  2. 2Google Cloud, Expand the content of an image using outpaint (Vertex AI documentation; the page carries the banner “Vertex AI documentation is no longer being updated”), read at source 13 Oct 2026“Outpainting is a mask-based editing method that expands the content of a base image to fit a larger or differently sized mask canvas.” ↑
  3. 3Bettina Jessell, Journal of the American Institute for Conservation, Helmut Ruhemann’s Inpainting Techniques, 1977, vol. 17 no. 1, read at source 12 Oct 2026“All inpainting is a process of selection, and one never can or should repair every minutest damage.” ↑

The comparisons and examples on this page (the painting restorer, the beach photo and banner) are this site’s own ways of explaining, not claims from these sources.

Free printable AI cheat sheets, and AI news every week.

Sixteen one-page AI guides and checklists in one free PDF, no sign-up. And if you want to keep up, the newsletter covers what changed in AI each week, in plain English, with the sources.

SUBSCRIBE FREE ↗ GET THE CHEAT SHEET PACK
aipromptgeneer://$ about this siteAI PROMPT GENEERAI explained in plain English. Every claim links to its source, with the date it was checked.NEWSLETTERWhat changed in AI each week, in plain English.SUBSCRIBE FREE ↗AI PROMPT GENEER · MACHINE ASSISTANCE DISCLOSEDEVERY ARTICLE CARRIES ITS OWN CHECKED DATE