> For the complete documentation index, see [llms.txt](https://artroomai.gitbook.io/tutorials/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://artroomai.gitbook.io/tutorials/resources/settings-tutorials/base-image-img2img.md).

# Base Image (img2img)

<figure><img src="/files/zZZFwALiqtGbKog87N8b" alt="" width="209"><figcaption></figcaption></figure>

Sometimes using just a prompt isn't enough to get the image you want. Adding in a base image can help guide the AI to getting the desired results.

[Variation Strength](/tutorials/resources/settings-tutorials/variation-strength.md) plays a large role in the amount of changes when using img2img

<details>

<summary>Settings used in examples</summary>

{% code overflow="wrap" %}

```
"text_prompts": "close up, cute bunny, tall trees, shadows, high noon, god rays",
"negative_prompts": "nude, nsfw, purple, mutated, deformed, amateur drawing, lowres, text, error, signature, watermark, username, blurry, censorship, sketch, monochrome",
"strength": 0.21,
"init_image": "...",
"width": 768,
"height": 768,
"models_dir": "C:\\models\\Artroom",
"ckpt": "Models\\aZovyaPhotorealUltra2GB_v10-fixed.safetensors",
"vae": "mse.vae.pt",
"loras": [],
"controlnet": "none",
"use_preprocessed_controlnet": false,
"remove_background": "face",
"use_removed_background": false,
"sampler": "euler_a",
"steps": 30,
"cfg_scale": 7,
"clip_skip": 1,
"seed": 82413648,
"mask_image": "...",
"invert": false,
"palette_fix": false,
"image_save_path": "C:\\ArtroomOutputs\\img2img",
"n_iter": 1,
"save_grid": false,
"speed": "High",
"long_save_path": false,
"highres_fix": true,
"show_intermediates": true,
"id": "3318777549530247"
```

{% endcode %}

</details>

Without any starting image this is the output image

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

\
But placing this starting image in the space provided,&#x20;

<figure><img src="/files/mWFRFJxL5ZSkIKJvYHil" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/FOTnXWgeFUZLiKGqQcKA" alt=""><figcaption></figcaption></figure>

These are the outputs it generates at different variation strengths.

<figure><img src="/files/9URaFEYcKAHvyw5Etm8z" alt=""><figcaption></figcaption></figure>

Keeping that starting image and other settings but changing the prompt to \
"space ship, red nebula, large star, vibrant" \
will yield this result.

<figure><img src="/files/l0tTwR240c1ffmXgsFAz" alt=""><figcaption></figcaption></figure>

\
[ControlNet](/tutorials/resources/extra-features-tutorials/controlnet.md) Is anther method for copying details from a base image that follows certain details more accurately.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://artroomai.gitbook.io/tutorials/resources/settings-tutorials/base-image-img2img.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
