# Image Generation

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

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

## I. Description <a href="#description" id="description"></a>

This component allows you to transform text descriptions into professional-grade images. It leverages advanced AI models to interpret your prompts and generate visuals in various styles and ratios. With Diaflow’s integrated Private Key, you can access these powerful models immediately without needing your own API subscriptions.

Currently, this node supports the following high-performance models:

* Gemini - 2.5 Flash Image (Nano banana)
* BytePlus - Seedream 4.5

## II. Component settings <a href="#description" id="description"></a>

| Parameter Name   | Description                                                                                                                                                                                                                                                                        |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Model            | <p>This parameter specifies that the component should use. </p><p></p><p>Available values:</p><p></p><p>Gemini:</p><ul><li>Flash 2.5 Image (Nano Banana)</li></ul><p></p><p>BytePlus:</p><ul><li>Seedream 4.5</li></ul>                                                            |
| Prompt           | <p>Describes how you want the component to respond. <br><br>For example, you can specify the role, manner and rules that component should adhere to. <br>Also mention the component ID to connect the components.</p>                                                              |
| Image source     | <p>This is used for "Image to Image."<br><br>You can refer to the image of the node before<br><br>\*\*Note: Only support image formats, such as .jpg and .png</p>                                                                                                                  |
| Aspect ratio     | <p>Defines the dimensions of the generated image.<br><br>Select the ratio that fits your needs (e.g., 16:9 for landscape, 1:1 for square, 9:16 for mobile/portrait).<br><br>List:<br>- 1:1<br>- 2:3<br>- 3:2<br>- 3:4<br>- 4:3<br>- 4:5<br>- 5:4<br>- 9:16<br>- 16:9<br>- 21:9</p> |
| Number of images | <p>Specify how many variations of the image you want to generate in a single run.<br><br></p><p>Available values:</p><p></p><p>Gemini:</p><ul><li>1</li></ul><p></p><p>BytePlus:</p><ul><li>1</li><li>2</li><li>3</li><li>4</li></ul>                                              |

## III. Use case <a href="#description" id="description"></a>

**Input:**

Set up the "Image Generation" node with:

* Model = BytePlus - Seedream 4.5
* Prompt = "A cute 3D render of a robot holding a flower, pastel colors, white background"
* Aspect ratio = 1:1
* Number of images = 1

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

**Output:**

Once the node executes successfully, it will return an Image URL (or a list of URLs if multiple images were requested). You can map this output to subsequent nodes

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


---

# 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.diaflow.io/workflow-builder/nodes/built-in-tools/image-generation.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.
