Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.comfy.org/llms.txt

Use this file to discover all available pages before exploring further.

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

OpenAIDalle2

Generates images synchronously via OpenAI’s DALL·E 2 endpoint.

How It Works

This node connects to OpenAI’s DALL·E 2 API to create images based on text descriptions. When you provide a text prompt, the node sends it to OpenAI’s servers which generate corresponding images and return them to ComfyUI. The node can operate in two modes: standard image generation using just a text prompt, or image editing mode when both an image and mask are provided. In editing mode, it uses the mask to determine which parts of the original image should be modified while keeping other areas unchanged.

Inputs

ParameterData TypeInput TypeDefaultRangeDescription
promptSTRINGrequired""-Text prompt for DALL·E
seedINToptional00 to 2147483647not implemented yet in backend
sizeCOMBOoptional”1024x1024""256x256”, “512x512”, “1024x1024”Image size
nINToptional11 to 8How many images to generate
imageIMAGEoptionalNone-Optional reference image for image editing.
maskMASKoptionalNone-Optional mask for inpainting (white areas will be replaced)

Outputs

Output NameData TypeDescription
IMAGEIMAGEThe generated or edited image(s) from DALL·E 2

Source fingerprint (SHA-256): ad10b149ac28559ad18c09e0f071286509680603d953833106ad6a2d578f7efe