# Inpainting and CleanUp

Qolaba's image editing tools include a powerful "Inpainting" and "CleanUp" feature, which allows you to remove or replace specific parts of an image.

### Accessing the Inpainting Tool

To use the Inpainting tool, first go to the Qolaba dashboard and navigate to the "Image Editing" section. In the tools dropdown, you'll find the "Inpainting" and "CleanUp" options.

<figure><img src="https://2623503699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPYWrOrU7drWieMmcpAgk%2Fuploads%2F2LvR6rJZu0OrnfeshG9P%2FScreenshot%202024-05-03%20183147.png?alt=media&#x26;token=bec1d8dd-8f0c-4881-b53a-b8989fdf4c4f" alt="" width="56"><figcaption></figcaption></figure>

<figure><img src="https://2623503699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPYWrOrU7drWieMmcpAgk%2Fuploads%2FdP4KwwAU1qdPMTRwXQKu%2FScreenshot%202024-05-02%20194723.png?alt=media&#x26;token=14c742b6-af2a-4885-95f2-80264312ead4" alt=""><figcaption></figcaption></figure>

### Uploading the Image and Providing a Prompt

To get started, upload an image using the option on the left panel. After uploading the image, you can enter a prompt in the prompt section. For more information on advanced prompting techniques, such as magic prompts, keywords, negative prompts, and style presets, please refer to the [prompt-advancement](https://docs.qolaba.ai/extra-resources/prompt-advancement "mention") Guide.

<figure><img src="https://2623503699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPYWrOrU7drWieMmcpAgk%2Fuploads%2FNmckayStqlOh0eOz5fVk%2FScreenshot%202024-03-28%20195733.png?alt=media&#x26;token=5c5dde19-40ac-4d6e-9405-5f7515e97c1d" alt="" width="183"><figcaption></figcaption></figure>

### Drawing the Mask

Once you've uploaded the image and (optionally) entered a prompt, you can draw a mask over the area you want to remove or replace. The model will then generate a new version of the image, with the masked area either removed or replaced with suitable content.

<figure><img src="https://2623503699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPYWrOrU7drWieMmcpAgk%2Fuploads%2FqpG74yMmARQolZsk5Mk5%2FScreenshot%202024-05-02%20195102.png?alt=media&#x26;token=b46e2d66-2d45-4ae6-93af-5a45cc517a62" alt=""><figcaption></figcaption></figure>

### Generating the Inpainted Image

After drawing the mask, click the "Generate" button to see the inpainted image. The model will use the provided prompt (if any) and the masked area to generate the new image.

### Generating without a Prompt

Alternatively, you can generate an inpainted image without providing a prompt using CleanUp tool. In this case, the model will remove the masked area and replace it with a suitable background or content, based on the surrounding context of the image.

### Resetting the Process

If you need to start over or make changes to your settings, you can find a "Reset" button at the bottom of the right panel.

<figure><img src="https://2623503699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPYWrOrU7drWieMmcpAgk%2Fuploads%2FAohGPYD5hhSNkwHBdfhw%2FScreenshot%202024-03-28%20220026.png?alt=media&#x26;token=f0806670-cd9d-4ff9-9bc6-8a1cbb3bc473" alt="" width="189"><figcaption></figcaption></figure>

### Image Editing and Private Content

After generating the inpainted image, you can access the image editing tools by clicking the hamburger menu. For more details on the available editing features, please consult the [image-editing-options](https://docs.qolaba.ai/extra-resources/image-editing-options "mention") Guide.

<figure><img src="https://2623503699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPYWrOrU7drWieMmcpAgk%2Fuploads%2F8Q5kRYegseL7SD6bJrG8%2FScreenshot%202024-05-02%20200245.png?alt=media&#x26;token=afb952f8-2387-479c-a665-379ba9c2ccbd" alt=""><figcaption></figcaption></figure>

Additionally, Qolaba AI offers a "Private Content" option, which allows you to keep your generated and edited images secure and hidden from others. For more information on this feature, refer to the [private-session](https://docs.qolaba.ai/extra-resources/private-session "mention") Guide.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.qolaba.ai/image-editing/inpainting-and-cleanup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
