> For the complete documentation index, see [llms.txt](https://docs.waterflai.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.waterflai.ai/studio/studio-builders/flow-components-nodes/dall-e-2-image-generation-node.md).

# 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
