> For the complete documentation index, see [llms.txt](https://docs.dreamerland.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dreamerland.ai/image/inpainting.md).

# Inpainting

Inpainting is a technique used to modify or restore masked areas in an image. Depending on the strength of inpainting, it can serve two purposes. Firstly, it can be employed to create entirely new content within any region of an existing picture. Secondly, it can be used to subtly restore deformed parts of an image.

Let's look at a simple example of inpainting. We will use this image as a base image.&#x20;

<figure><img src="/files/PgCYTfjd9dluoJgwY2LQ" alt="" width="375"><figcaption><p>A girl with black hair, wearing school uniform, in classroom</p></figcaption></figure>

We will try to change her hair color by inpainting function. Follow the steps below:

1. Choose Inpaint Mode
2. Select a source image from your phone
3. Mask the hair area in the image
4. Enter "1girl, pink hair" in prompt

<div><figure><img src="/files/ViKln2k27N5G8hguHAoR" alt="" width="375"><figcaption><p>Select inpaint mode</p></figcaption></figure> <figure><img src="/files/iiVngZR5AopgbWk5JwRI" alt="" width="375"><figcaption><p>Mask hair area</p></figcaption></figure></div>

Now we can hit Start drawing button to see the result. The final output is absolutely awesome.

<figure><img src="/files/4GKyNQ7qlc5anDNKTI9B" alt=""><figcaption></figcaption></figure>
