# Dall-E 2 (image generation) Node

### Overview&#x20;

The DALL-E 2 Node enables your flow to generate images using **OpenAI's** DALL-E 2 model. This node transforms text descriptions into high-quality images, making it ideal for applications requiring automated image generation, creative content production, or visual asset creation.

Usage cost: 2 credits

### Configuration Settings

1. **Model Selection**
   * Model\*: Select OpenAI's DALL-E 2 model from available providers
   * Note: Only OpenAI provider is supported for DALL-E 2
2. **Image Generation**
   * Prompt\*: Text description of the image to generate
   * Image Size\*: Select output resolution
     * 256x256: Small size, faster generation
     * 512x512: Medium size, balanced option
     * 1024x1024: Large size, highest detail

### Outputs

* `image` (Image): Generated image object for use in subsequent nodes
* `base64_image` (string): Base64-encoded image data

### Best Practices

1. **Prompt Engineering**
   * Be specific and detailed in descriptions
   * Include key visual elements:
     * Style (e.g., "photorealistic", "oil painting", "3D render")
     * Composition (e.g., "close-up", "wide angle", "overhead view")
     * Lighting (e.g., "bright", "moody", "natural lighting")
     * Colors (e.g., "vibrant", "pastel", "monochromatic")
   * Maintain prompt clarity and coherence
2. **Size Selection**
   * Choose 256x256 for:
     * Thumbnails and previews
     * Quick iterations and testing
     * Resource-efficient generation
   * Choose 512x512 for:
     * Medium-quality assets
     * Social media content
     * Balance between quality and speed
   * Choose 1024x1024 for:
     * High-quality visuals
     * Detailed illustrations
     * Professional content

### Common Issues

* API rate limiting
* Network timeouts during image fetching


---

# 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.waterflai.ai/studio/studio-builders/flow-components-nodes/dall-e-2-image-generation-node.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.
