# Text to Image

Webring.AI Agents support the use of `Text to Image` commands, which take a user prompt and invoke a predefined text-to-image template to produce an output image.

To configure a new `Text-to-Image` command, navigate to your agent's Content Generation page and click "`Create Command`"

<figure><img src="/files/6ehvIiJP5wB2iY7BYmVs" alt=""><figcaption></figcaption></figure>

Select **Text to Image** as the Command Type and enter a name for the command.

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

{% hint style="info" %}
Note: The Model you choose will greatly affect the outputs of the image generation command. See the [models page](/webringai/media-generation/image-and-video-models.md) for more information.
{% endhint %}

### Advanced Mode

Advanced Mode opens up a number of Optional parameters for image generation.

* **Trigger Phrases**
  * Specific phrases that will trigger the command to run when the agent is monitoring messages from a social messaging platform such as Twitter, Telegram, or the Webring.AI Live chat.
* **CFG Scale**
  * The CFG scale controls how much the image generation process follows the text prompt. Higher values lead to more adherence to the prompt.
* **Steps**
  * Using more steps can improve the image quality, but there's no need to always max them out. The optimal number depends on the specific results you're aiming for.
  * Around 20 sampling steps are usually enough to achieve high-quality images. The more steps you'll use, the more time it will take to generate an image.
* **Width**
  * The width of the generated image, in pixels.
* **Height**
  * The height of the generated image, in pixels.
* **Overlay Image**
  * If provided, this image will be pasted on top of the final image after it is generated. This is useful for placing a watermark or logo on top of generated images, but should have a transparent background to allow the underlying image to show through.
* **Prompt Prefix**
  * Prompts provided by users will always be prepended with the Positive Prompt Prefix if it is provided. This is useful to achieve consistency with outputs, or pad user-provided prompts with a consistent set of words.
* **Prompt Suffix**
  * Prompts provided by users will always be appended with the Positive Prompt Suffix if it is provided. This is useful to achieve consistency with outputs, or pad user-provided prompts with a consistent set of words.
* **Negative Prompt**
  * A negative prompt is a parameter that tells the image generation model what you don't want to see in the generated images.
* **Custom Queued Message**
  * When an image is queued with this command, the agent will reply with this custom message instead of the default.


---

# 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://radbro-webring.gitbook.io/webringai/media-generation/text-to-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.
