> For the complete documentation index, see [llms.txt](https://radbro-webring.gitbook.io/webringai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://radbro-webring.gitbook.io/webringai/media-generation/text-to-image.md).

# 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.
