Skip to main content
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
Generates images synchronously via OpenAI’s GPT Image 1 endpoint. This node can create new images from text prompts or edit existing images when provided with an input image and optional mask.

Inputs

ParameterData TypeRequiredRangeDescription
promptSTRINGYes-Text prompt for GPT Image 1 (default: "")
seedINTNo0 to 2147483647Random seed for generation (default: 0) - not implemented yet in backend
qualityCOMBONo”low"
"medium"
"high”
Image quality, affects cost and generation time (default: “low”)
backgroundCOMBONo”opaque"
"transparent”
Return image with or without background (default: “opaque”)
sizeCOMBONo”auto"
"1024x1024"
"1024x1536"
"1536x1024”
Image size (default: “auto”)
nINTNo1 to 8How many images to generate (default: 1)
imageIMAGENo-Optional reference image for image editing (default: None)
maskMASKNo-Optional mask for inpainting (white areas will be replaced) (default: None)
Parameter Constraints:
  • When image is provided, the node switches to image editing mode
  • mask can only be used when image is provided
  • When using mask, only single images are supported (batch size must be 1)
  • mask and image must be the same size

Outputs

Output NameData TypeDescription
IMAGEIMAGEGenerated or edited image(s)