# Image Generation In-Chat

You can generate images in-chat while chatting with a character on Tavern!

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

To generate images in chat, click on the image button on the right side of the text box.

Below are the four options and a description of what each command does:

1. **Yourself**: Request the character to generate their own image.
2. **Your Face**: Ask for a close-up picture of the character.
3. **Last message**: Instruct the chatbot to generate the last message.
4. **Raw Last message**: Generate an image based on the raw, unedited message.

### Video Guide

Prefer a visual guide? Check out the video guide below from our YouTube channel!

{% embed url="<https://youtu.be/njUVSnk71_Y?si=33exrgYQ86aIddXi>" %}


---

# 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.moescape.ai/tavern-chatbot-guide/image-generation-in-chat.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.
