Skip to main content
This node generates images using OpenAI’s GPT Image API. It supports five models — gpt-image-2.5-flare, gpt-image-2.5-sunburst, gpt-image-2, gpt-image-1.5, and gpt-image-1 — lets you attach reference images for image editing, and can use a mask to specify which parts of an image to replace.

Inputs

Common Inputs

These inputs are always visible.

gpt-image-2.5-flare and gpt-image-2.5-sunburst Inputs

These inputs appear when model is set to gpt-image-2.5-flare or gpt-image-2.5-sunburst. Both models share the same parameter set.

gpt-image-2 Inputs

These inputs appear when model is set to gpt-image-2.

gpt-image-1.5 and gpt-image-1 Inputs

These inputs appear when model is set to gpt-image-1.5 or gpt-image-1. Both models share the same parameter set.

Reference Inputs

Parameter Constraints and Limitations:
  • When model.size is “Custom” (gpt-image-2.5-flare, gpt-image-2.5-sunburst, and gpt-image-2 only), model.custom_width and model.custom_height must both be multiples of 16, the longest edge must not exceed 3840, the aspect ratio must not exceed 3:1, and the total pixel count must be between 655,360 and 8,294,400.
  • model.mask requires exactly one reference image in model.images: it cannot be used without an image, and it cannot be used with more than one image.
  • When model.mask is used, its height and width must match the height and width of the reference image.
  • When model.images is provided, the node runs in image editing mode; without model.images, it generates images from the prompt alone.
  • Reference images and the mask are downscaled before being sent to the API.
  • "xhigh" and "max" quality levels are only available for gpt-image-2.5-flare and gpt-image-2.5-sunburst.
  • The "transparent" background option is available for gpt-image-2.5-flare, gpt-image-2.5-sunburst, gpt-image-1.5, and gpt-image-1, but not for gpt-image-2.
  • seed is currently not implemented in the backend.

Outputs

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): 4f77b79f9f432a1f2e0fd814012aebe7cc42a8aa983ee9a61f3b32984bf65148