> For the complete documentation index, see [llms.txt](https://docs.diaflow.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.diaflow.io/agent-builder/agent-builder/image-generation.md).

# Image Generation

## Quick Start

What you can do:

\- Generate 1 – 10 images from text prompts

\- Upload reference images to guide generation

\- Use the Enhance Prompt to improve AI understanding

<br>

Quick Start Steps:

1\. Navigate to Dashboard: Go to the Diaflow Homepage

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

2\. Select Image Mode: Choose the "**Image**" tag or type \`@\` and select "**Image generation.**"

<figure><img src="/files/5zdiePE6c4V9MEwlH8Ij" alt=""><figcaption></figcaption></figure>

3\. Choose a Sample Prompt (Optional): Click a template prompt to get started quickly

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

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

4\. Configure Settings (Optional):

&#x20;  \- Enable Enhance Prompt: Toggle ON to automatically improve your prompt (default: ON)

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

&#x20;  \- Upload Reference Image via 3 ways:&#x20;

a. Click the \`+\` icon to upload from “your device” or “Diaflow Drive”

b. Drag and drop the image into the chat frame

c. Copy and paste a screenshot.

5\. Type Your Prompt: Enter your image description (e.g., "create a 3D-style image of a city at night")

6\. Send: Click the Send button or press Enter

7\. View Results: Generated images appear in the conversation panel with download options

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

<br>

## Common Uses

### 1. Text to Image

Create images from text descriptions. Perfect for:

\- Concept art and mockups

\- Marketing banners and social media graphics

\- Product visualization

\- Creative illustrations

<br>

**How to use:**

\- Type \`@\` in the chatbox and choose "Image generation"

\- Enter your prompt describing the image you want

\- Click Send

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

<br>

### 2. Text to Multiple Images (Up to 10)

Generate multiple variations from one prompt. Ideal for:

\- Exploring different creative directions

\- A/B testing visual concepts

\- Creating image sets for campaigns

<br>

**How to use:**

\- Mention \`@Image generation\`

\- Enter your prompt with the number of images (e.g., "Create 4 images of a futuristic office space")

\- Click Send

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

<br>

### 3. Image to Image

Transform existing images while preserving core elements. Use for:

\- Style transfers (e.g., photo to watercolor)

\- Restyling and variations

\- Enhancing or modifying specific elements

<br>

**How to use:**

\- Choose "Image" tag

\- Click the \`+\` icon and upload an image from your device

\- Type additional instructions describing desired changes

\- Click Send

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

<br>

### 4. Image to Multiple Images

Generate multiple variations from a single reference image. Great for:

\- Creating style variations

\- Exploring different compositions

\- Generating options for client review

<br>

**How to use:**

\- Upload a reference image using the \`+\` icon

\- Enter instructions with the desired number of images

\- Click Send

<figure><img src="/files/2SJvj9te9jKYJ8azfpIN" alt=""><figcaption></figcaption></figure>

<br>

### 5. Enhanced Prompt Generation

Improve your prompts automatically before generation. Benefits:

\- Better image quality and accuracy

\- More detailed and expressive results

\- Less need for manual prompt refinement

<br>

**How to use:**

\- Enable "Enhance prompt" toggle (default: ON)

\- Enter your basic idea

\- Review the enhanced version (read-only) before sending

\- Click Send

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

<br>

## Tips for Better Images

### 1. Writing Effective Prompts

\- Be specific: Include subject, style, composition, lighting, mood, and technical details

* Good: "A serene mountain landscape at sunset, cinematic lighting, 4K quality, photorealistic style"
* Vague: "A nice picture"

\- Specify composition: Include camera angles, framing, and perspective details

\- Add technical details: Mention resolution preferences, color schemes, and visual effects

<br>

### 2. Using Enhance Prompt

\- When to use: Enable for simple ideas that need expansion or when you want richer descriptions

\- When to disable: Turn OFF if you need exact wording or have already crafted a detailed prompt

\- Review before sending: Always check the enhanced version to ensure it matches your intent

<br>

### 3. Uploading Reference Images

\- Supported formats: JPG, JPEG, PNG, WEBP

\- File size limit: Maximum 50 MB

\- Best practices:

* Use high-quality reference images for better results
* Upload images that match your desired composition or style
* Combine reference images with detailed text instructions

<br>

### 4. Using Mention Tools for Image Generation

\- Quick Access: Type \`@\` in the chatbox or click the \`@\` icon

\- Select "Image generation": The tool is inserted as a highlighted chip/tag

\- Sample Prompts: On the Home screen, selecting Image generation shows up to sample prompts

\- Direct Routing: AI skips intent prediction and routes directly to the image generation agent

<br>

### 5. Managing Generated Images

\- Download: Click the download button on individual images

\- Feedback: Click Like/Dislike to provide feedback and improve future results

\- Copy: Click on the image, right-click, and select "Copy image”

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

### 6. Troubleshooting Common Issues

\- "Not enough credit": Go to the Account tab on the sidebar -> Usage & Billing -> Buy Credits → Select package → Continue purchase

\- No image returned: Check internet connection, ensure prompt doesn't violate content policies, verify model supports selected resolution

\- Upload failed: Verify image type (JPG, JPEG, PNG, WEBP), check file size (max 50 MB), ensure permissions are granted

\- Enhanced prompt not visible: Make sure Enhance Prompt toggle is ON
