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

# Image Node

### What is an Image Node?

The Image node allows you to generate visual content from text prompts using AI image generation models such as OpenAI’s DALL·E 3 or Stable Diffusion.

Use this node to turn descriptions into visuals. Ideal for creative tools, content generation, or enhancing user engagement with dynamic imagery.

Common applications include:

* Illustrating chatbot responses
* Creating product mockups or concept art
* Generating visual assets on-the-fly for user interfaces

### How to use it?

To use the Image node:

* **Input:** Accepts a text string (prompt), often from a user or LLM node.
* **Output:** Returns a generated image that can be previewed or used downstream.

The model processes the prompt and returns a generated image in the specified size and style.

### Settings

#### Configuration Options

* **Model:** Choose between available image generation models:
  * `OpenAI DALL·E 3`
  * `Stable Diffusion 3.5`
* **Image size:** Select the resolution for the generated image:
  * `1024×1024` (square)
  * `1024×1792` (portrait)
  * `1792×1024` (landscape)
* **API Key:** (Optional) Provide your own key to use a custom instance or higher tier of the selected model.

By adjusting the model and size, you can tailor visual outputs to match your product’s design or artistic needs.

### How to expose Images externally?

To allow users to see the generated images:

1. Go to the **Export** tab.
2. Enable the Image node in the **Outputs** section under **Fields**.
3. Click **Save Interface**.
4. The image result will now be rendered in your external interface when the flow is triggered.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.stackai.com/workflow-builder/outputs/image-node.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
