Skip to main content
This node generates images using OpenAI’s GPT Image API. It supports multiple models (gpt-image-2, gpt-image-1.5, and gpt-image-1), allows you to provide reference images for editing, and can use a mask to specify which parts of an image to modify.

Inputs

Common Inputs

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 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 dimensions must match the dimensions 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 are downscaled before being sent to the API.
  • 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): fb3491f949151fbd3f5825ec9f9ae124019767d083f56966ef34af278aef50c0