Skip to main content

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

ParameterDescriptionData TypeInput TypeDefaultRange
promptText prompt for DALL·ESTRINGrequired""-
seednot implemented yet in backendINToptional00 to 2147483647
sizeImage sizeCOMBOoptional”1024x1024""256x256”, “512x512”, “1024x1024”
nHow many images to generateINToptional11 to 8
imageOptional reference image for image editing.IMAGEoptionalNone-
maskOptional mask for inpainting (white areas will be replaced)MASKoptionalNone-

Outputs

Output NameDescriptionData Type
IMAGEThe generated or edited image(s) from DALL·E 2IMAGE
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): ad10b149ac28559ad18c09e0f071286509680603d953833106ad6a2d578f7efe