> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mage.space/llms.txt
> Use this file to discover all available pages before exploring further.

# Inpaint

> Edit specific areas of any image with a mask and prompt. Paint over the region you want to change and describe what should replace it.

Edit specific areas of any image with a mask and prompt. Paint over the region you want to change and describe what should replace it. It runs on Mango, Guava, GPT Image 2, or Nano Banana 2.

## Overview

| Detail   |                                                                |
| -------- | -------------------------------------------------------------- |
| Category | Edit                                                           |
| Inputs   | 1 image plus a mask and a prompt                               |
| Accepts  | image                                                          |
| Runs on  | Mango, Guava, GPT Image 2, or Nano Banana 2                    |
| Open     | [mage.space/apps/inpaint](https://www.mage.space/apps/inpaint) |

## What Inpaint is for

* Fixing hands, which is where image models fail most often
* Removing an object without recomposing the shot
* Changing one element while a set stays consistent
* Adding something the original prompt missed

## How to use Inpaint

1. Open Inpaint and upload your image.
2. Mask the region you want changed. Mask slightly wider than the object itself, so the model has room to blend.
3. Describe what should be there. An empty wooden table works better than remove the cup.
4. Run it. If the join shows, re-mask a little wider and try again.

## Limitations

* Masking too tightly is the most common mistake. The model needs surrounding context to match lighting and texture.
* It edits, it does not restructure. A change to the composition or the perspective needs a new generation.
