> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-router-model-page-pilot.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAI DALL·E 2 Node

> Learn how to use the OpenAI DALL·E 2 Partner node to generate images in ComfyUI

<img src="https://mintcdn.com/dripart-docs-router-model-page-pilot/KBNpjqmsAEcOOWtk/images/comfy_core/api_nodes/openai-dall-e-2.jpg?fit=max&auto=format&n=KBNpjqmsAEcOOWtk&q=85&s=876b90a936ce35a49dcaada8baea4234" alt="OpenAI DALL·E 2 node screenshot" width="1576" height="954" data-path="images/comfy_core/api_nodes/openai-dall-e-2.jpg" />

OpenAI DALL·E 2 is part of the ComfyUI Partner Nodes series, allowing users to generate images through OpenAI's **DALL·E 2** model.

The **OpenAI DALL·E 2** node generates images synchronously through OpenAI's image generation API. It receives text prompts and returns images that match the description.

## What DALL·E 2 is good at

* Text-to-image generation
* Image editing functionality (inpainting through masks)

## Example outputs

Text-to-image generation from a single text prompt:

![ComfyUI openai-dall-e-2 workflow](https://raw.githubusercontent.com/Comfy-Org/example_workflows/main/api_nodes/openai-dall-e-2/text2image.png)

Inpainting, replacing a masked area of an input image based on a text prompt:

![ComfyUI openai-dall-e-2 workflow](https://raw.githubusercontent.com/Comfy-Org/example_workflows/main/api_nodes/openai-dall-e-2/inpainting.png)

## Use it in ComfyUI

<Card title="DALL·E 2 workflows" icon="diagram-project" href="/tutorials/partner-nodes/openai/dall-e-2/workflow">
  Run the text-to-image and inpainting workflows in ComfyUI, locally or on Comfy Cloud
</Card>
