# Regional Prompt with Reference Image

You may want to have more control while using a regional prompt. Here, we bring you a demonstration of using a reference image to draw a color map and using the reference image in the control layer.

<mark style="background-color:orange;">**How does it work?**</mark>

In this example, we want to generate an image of a woman with half white hair and half black hair.

First, open the color map drawing canvas. Click the "Background" button to select a reference image.

<figure><img src="/files/nZDvyIBrSGFW9gv0UPRG" alt="" width="375"><figcaption></figcaption></figure>

Now, let's draw a color map on the reference image. We want the woman to have half white hair on the left and half black hair on the right. We'll use the color <mark style="color:red;">red</mark> for the left part of her hair and <mark style="color:yellow;">yellow</mark> for the right part.

<figure><img src="/files/FQ4boKU1VHGadW0rbqTR" alt="" width="375"><figcaption></figcaption></figure>

Here is a final color map we have. Next step is to write prompts for each area.&#x20;

<div align="left"><figure><img src="/files/9TQzJGD6vNaaAFOWhCU8" alt="" width="375"><figcaption></figcaption></figure> <figure><img src="/files/7BPb3sPQ8vbM5uatPcIe" alt="" width="375"><figcaption></figcaption></figure></div>

Don't forget to add a control layer with the reference image. We used a depth control here.

<figure><img src="/files/BQP8X9T1HopaJf7fBv11" alt="" width="375"><figcaption></figcaption></figure>

Okay, now we can click a button to generate images! Below are the resulting images of this configuration in both the realistic model and anime model.

<figure><img src="/files/7keqNbwvC83RkI9mp7ia" alt=""><figcaption><p>Dreamer photoreal V2 model</p></figcaption></figure>

<figure><img src="/files/XtvvNehS7acQjA4yir9H" alt=""><figcaption><p>Anime Diffusion V2 model</p></figcaption></figure>


---

# 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.dreamerland.ai/image/regional_prompt/regional-prompt-with-reference-image.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.
