Nodes/ComfyUI/OpenAI GPT Image 2
ComfyUI Node Runs on cloud

OpenAI GPT Image 2

Generates images synchronously via OpenAI's GPT Image endpoint.

By Comfy-Org·Created 4 years ago·Updated 15 days ago· 121,575
OpenAI GPT Image 2
  • image
  • mask
  • IMAGE
prompt
seed0
qualitylow
backgroundauto
sizeauto
n1
modelgpt-image-2
custom_width1024
custom_height1024
Categorypartner/image/OpenAI

Inputs (11)

NameTypeDefaultDescription
promptSTRINGText prompt for GPT Image
seedoptINT00–2147483647not implemented yet in backend
qualityoptCOMBOlowImage quality, affects cost and generation time.
backgroundoptCOMBOautoReturn image with or without background
sizeoptCOMBOautoImage size. Select 'Custom' to use the custom width and height (GPT Image 2 only).
noptINT11–8How many images to generate
imageoptIMAGEOptional reference image for image editing.
maskoptMASKOptional mask for inpainting (white areas will be replaced)
modeloptCOMBOgpt-image-23 options: gpt-image-1, gpt-image-1.5, gpt-image-2
custom_widthoptINT10241024–3840Used only when `size` is 'Custom'. Must be a multiple of 16 (GPT Image 2 only).
custom_heightoptINT10241024–3840Used only when `size` is 'Custom'. Must be a multiple of 16 (GPT Image 2 only).

Outputs (1)

NameTypeDescription
IMAGEIMAGE