Extensions/DalleImageNodes - OpenAI DALL·E Nodes for ComfyUI
ComfyUI Extension

DalleImageNodes - OpenAI DALL·E Nodes for ComfyUI

DalleImageNodes is a custom extension for ComfyUI that integrates OpenAI's DALL·E 3 API for: Image generation, Inpainting (image editing), Image variation. This project supports the latest OpenAI Python SDK (v1.x) and automatically handles image resizing and format requirements (RGBA, fixed sizes) based on the examples from the offical Dall-E website.

By cleanlii·Created about a year ago·Updated about a year ago· 1
cleanlii/comfyui-dalle-integration
Nodes3
On cloudLocal install
CategoryOpenAI/Dalle
Stars1
Updatedabout a year ago
Readme

DalleImageNodes - OpenAI DALL·E Nodes for ComfyUI

Overview

DalleImageNodes is a custom extension for ComfyUI that integrates OpenAI's DALL·E 3 API for:

  • Image generation
  • Inpainting (image editing)
  • Image variation

This project supports the latest OpenAI Python SDK (v1.x) and automatically handles image resizing and format requirements (RGBA, fixed sizes) based on the examples from the offical Dall-E website.


Node Previews

Image Generation

generation-screenshot

Image Editing

edit-screenshot

Image Variation

variation-screenshot


Output Examples

Example 1

example-1

Example 2

example-2


Installation

  1. Copy DalleImageNodes_async_final.py into any folder under your ComfyUI/custom_nodes/ directory.
  2. Restart ComfyUI.

Configuration

Create a config.json file in the same folder as the .py node file:

{
  "openAI_API_Key": "your-api-key"
}

This file is required for authentication with OpenAI's API.


Features

  • Text-to-image generation using DALL·E 3
  • Inpainting with prompt and mask
  • Image variation support
  • Automatic RGBA conversion and resizing
  • Batch generation
  • Fully async (based on AsyncOpenAI)

License

MIT License.