Inpainting changes a part inside a picture: you mark an area, and the AI repaints only that area, for example to remove a person or swap a sky. Outpainting adds to the outside of a picture: the AI makes the canvas bigger and invents what lies beyond the old edges. Both work on a picture you already have, and both use a mask to say where the AI may paint.
| Question | Inpainting | Outpainting |
|---|---|---|
| Where the AI paints | Inside the picture, in the area you mark. | Outside the picture, in new space around the edges. |
| Picture size | Stays the same. | Gets bigger, or changes shape. |
| Typical jobs | Remove an object, fix a flaw, change clothes or a sky. | Turn a tall photo into a wide banner, add room around a subject, uncrop. |
| Names in apps | Fill, erase, select-and-edit, generative fill. | Expand, extend, zoom out, uncrop. |
| Watch out for | Changes that leak past the area you marked. | Everything added is invented, not recovered. |
The table is this site’s summary of the sources quoted below; app names vary, so check your tool’s menu.
Think of a painting restorer. Inpainting is touching up one damaged patch so it blends in. Outpainting is being handed a small painting and asked to make the canvas wider, painting new scenery round it in the same style. One works inside the frame; the other works outside it.
What is inpainting?
The plain point: you paint over the part you want changed, and the AI repaints only that part. The area you mark is called a mask.
Hugging Face, a site where AI models are shared, says in its guide for developers: “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”.1 It lists jobs from “removing defects and artifacts” to “replacing an image area with something entirely new.”2
The word is older than AI. Art restorers “inpaint” damaged patches of old paintings, and a 1977 conservation journal article says: “All inpainting is a process of selection, and one never can or should repair every minutest damage.”3 See inpainting and outpainting meaning for more.
What is outpainting?
The plain point: the AI makes the picture bigger and fills the new space so it matches the original.
Hugging Face’s outpainting guide puts it in one line: “Outpainting extends an image beyond its original boundaries, allowing you to add, replace, or modify visual elements in an image while preserving the original image.”4 Google’s documentation for its Imagen image models, on Vertex AI pages Google now marks as no longer updated, calls it “a mask-based editing method that expands the content of a base image to fit a larger or differently sized mask canvas.”5
The extra scenery never existed. In this site’s reading, that is the one thing to remember about outpainting: it does not recover what was outside the camera’s view, it imagines something that fits.
Inpainting works inside the frame and keeps the size. Outpainting works outside the frame and makes it bigger. Both invent what they paint.
Are they really the same thing?
The plain point: under the hood, mostly yes. Outpainting is inpainting with the mask on the outside.
Hugging Face says so directly: “Like inpainting, you want to fill the white area (in this case, the area outside of the original image) with new visual elements while keeping the original image (represented by a mask of black pixels).” Its own outpainting example uses an inpainting model.4 That is why many apps put both in the same edit menu. Midjourney, for example, listed both side by side when it opened its V8.2 edit model for testing on 27 Aug 2026: “Changing specific areas of your images (inpainting) or expand your canvas (outpainting)”.6
How do you do each one in an app?
The plain point: for inpainting, select the area and say what goes there; for outpainting, drag the edges out and let the AI fill the gap.
- Inpainting by selection. In Photoshop’s Generative Fill you select the area with any selection tool, then type what should appear, or leave it blank to fill from the surroundings.7
- Inpainting by words. Google’s Nano Banana lets you name the part to change instead of drawing it: “Conversationally define a ‘mask’ to edit a specific part of an image while leaving the rest untouched.”8 Image edit prompts that change only one thing has prompts for this.
- Outpainting. Look for “expand”, “extend” or “zoom out”. In this site’s use, the steps are nearly always the same: pick the new shape or drag the canvas edges, add a short prompt for what should fill the space (or leave it blank), and generate a few versions. Choosing the shape first is easier with aspect ratio, resolution and format to hand.
Here are two prompts of this site’s own.
What can go wrong?
The plain point: inpainting can change more than you marked, and outpainting can invent things that look real but never were.
- The mask is a guide, not a wall. Hugging Face notes that models trained for inpainting “are more likely to change your unmasked area.”9 OpenAI says its models use a mask “as guidance, but may not follow its exact shape with complete precision.”10 Compare the result with the original.
- Outpainted edges are made up. A widened news photo or a property picture with an invented garden can mislead. Be open about it when it matters.
- Edits change what a photo shows. Removing a person or adding an object makes a different picture. Done to fool people about a real person or event, it becomes a deepfake.
After any inpaint or outpaint, put the result next to the original and check the parts you did not mean to change.
Questions people ask
Is outpainting the same as upscaling?
No. Upscaling makes the same picture bigger and sharper; outpainting makes the scene wider by adding new content around it. See AI upscaling meaning.
Is inpainting the same as image-to-image?
No. Image-to-image reworks the whole picture; inpainting changes only the part you mark. Hugging Face calls inpainting “a more precise tool”.11 See img2img meaning.
Does outpainting show what was really outside the photo?
No. It invents new content that matches the original; nothing outside the frame was ever captured. Hugging Face describes it as filling the area outside the original image “with new visual elements” (source above).
Is generative fill the same as inpainting?
Generative Fill is Adobe’s name for a tool that does the inpainting job: you select an area and the AI fills it (source above). Other apps use their own names for the same idea, so look for “fill”, “erase” or “edit area”.
Where to go next
- “I want to change one thing without ruining the rest.” Use image edit prompts that change only one thing.
- “Which image tool takes a mask?” See which image model.
- “I just need the background gone.” Try how to remove a background with AI.
- “I want to repair an old photo.” Use old photo restoration prompts.
- “What do the words mean?” See inpainting and outpainting, img2img, upscaling and ControlNet.
QUICK CHECK · 3 QUESTIONS
Pick an answer to see if you got it. Nothing is recorded.
1. What does outpainting do that inpainting does not?
- It makes the picture bigger by adding new content past the old edges
- It removes the background from a photo
- It sharpens the picture without changing it
Show the answer
Answer: It makes the picture bigger by adding new content past the old edges. The page says inpainting works inside the frame and keeps the size, while outpainting extends the picture beyond its original edges.
2. What is a mask in inpainting?
- A filter that hides faces
- The area you mark to tell the AI where it may paint
- A watermark added to the finished picture
Show the answer
Answer: The area you mark to tell the AI where it may paint. The page explains that the marked area is called a mask, and the AI repaints only that area.
3. Does outpainting show what was really outside the original photo?
- Yes, it recovers the hidden part of the scene
- Only if the photo was taken with a phone
- No, it invents new content that matches the original
Show the answer
Answer: No, it invents new content that matches the original. The page says nothing outside the frame was ever captured, so outpainting imagines something that fits.
- 1Hugging Face, Inpainting, Diffusers documentation, undated, read at source 1 Oct 2026 (as cited on this site’s inpainting meaning page): “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”.↑
- 2Hugging Face, Inpainting, Diffusers documentation, undated, read at source 1 Oct 2026 (as cited on this site’s inpainting meaning page): “This makes it a useful tool for image restoration like removing defects and artifacts, or even replacing an image area with something entirely new.”↑
- 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 (as cited on this site’s inpainting meaning page): “All inpainting is a process of selection, and one never can or should repair every minutest damage.”↑
- 4Hugging Face, Outpainting, Diffusers documentation, undated, read at source 19 Oct 2026“Outpainting extends an image beyond its original boundaries, allowing you to add, replace, or modify visual elements in an image while preserving the original image.” ↑a“Like inpainting, you want to fill the white area (in this case, the area outside of the original image) with new visual elements while keeping the original image (represented by a mask of black pixels).” and “This guide will show you how to outpaint with an inpainting model, ControlNet, and a ZoeDepth estimator.” ↑b
- 5Google 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 (as cited on this site’s inpainting meaning page): “Outpainting is a mask-based editing method that expands the content of a base image to fit a larger or differently sized mask canvas.”↑
- 6Midjourney, Edit Model for V8, 27 Aug 2026, read at source 19 Oct 2026“Changing specific areas of your images (inpainting) or expand your canvas (outpainting)”; first read at source 13 Oct 2026 as cited on this site’s which image model page: “start letting everyone test our first V8.2 image edit model”. ↑
- 7Adobe, How to use Generative Fill in Photoshop, undated, read at source 12 Oct 2026 (as cited on this site’s image edit prompts page): “Use the Selection Brush tool, or any other selection tool, to select an object or area in your image.” and “Or leave it blank and Photoshop will fill in the selection based on the surroundings.”↑
- 8Google AI for Developers, Nano Banana image generation, undated, read at source 12 Oct 2026 (as cited on this site’s image edit prompts page): “Conversationally define a ‘mask’ to edit a specific part of an image while leaving the rest untouched.”↑
- 9Hugging Face, Inpainting, Diffusers documentation, undated, read at source 1 Oct 2026 (as cited on this site’s inpainting meaning page): “As a result, these checkpoints are more likely to change your unmasked area.”↑
- 10OpenAI, Image generation, undated, read at source 12 Oct 2026 (as cited on this site’s image edit prompts page): “The model uses the mask as guidance, but may not follow its exact shape with complete precision.”↑
- 11Hugging Face, Inpainting, Diffusers documentation, undated, read at source 1 Oct 2026 (as cited on this site’s inpainting meaning page): “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.”↑
Read at source 19 Oct 2026: Hugging Face, Outpainting, Diffusers documentation; Midjourney, Edit Model for V8.
Reused from this site’s inpainting, image edit prompts and which image model pages, with the read dates recorded there: Hugging Face’s inpainting guide, Google’s Vertex AI outpaint page and Nano Banana docs, the 1977 conservation article, Adobe’s Generative Fill how-to and OpenAI’s image generation guide.
The comparison table, the restorer comparison, the two prompts and the advice marked as this site’s reading or use are this site’s own, 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