# AI Image Generation

You can create custom visual assets instantly using the integrated AI Generation tool, available within any flow action that supports images

Follow these steps to transform a text description into an image.

1. **Open the AI Tool**: Navigate to the Generate with AI tab.

<figure><img src="https://2532694803-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvGYwUmVjfELEiJzfmWLC%2Fuploads%2FGwzpX5V3oo8l7w3AfoEN%2Fgenerate%20ai%20settings.png?alt=media&#x26;token=a63dc676-20bf-4fb8-a97d-b199ca396682" alt=""><figcaption></figcaption></figure>

2. **Launch the Dialog**: Click on the empty image placeholder to open the generation interface.

<figure><img src="https://2532694803-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvGYwUmVjfELEiJzfmWLC%2Fuploads%2FgvB7zgT0g23fvT5vqSE9%2Fai%20image%20dialog.png?alt=media&#x26;token=84829a59-3dd5-47e8-be63-1f4182f79ad9" alt=""><figcaption></figcaption></figure>

3. **Enter a Prompt**: In the description field, type a detailed explanation of the image you want to create.
4. **Generate**: Click the Generate Image button.
5. **Review**: Your generated image will appear in the right-hand panel. Take a moment to review the quality and composition.
6. **Apply**: If you are satisfied, press the Apply button to confirm your selection.
7. **Final Save**: The image is now in your Xenioo storage. To finalize the process and attach it to your current action, you must click the Save button on the action itself.

{% hint style="info" %}
When generating an image with the AI you will consume some of the account's tokens. You can check the consumed tokens in the AI dialog.
{% endhint %}
