Skip to main content
Generates images synchronously through OpenAI’s GPT Image endpoint. It can create new images from a text prompt or edit existing images when an input image and optional mask are provided. The node supports the gpt-image-1.5 and gpt-image-2 models and is marked as deprecated.

Inputs

Parameter Constraints:
  • When image is provided, the node uses the image editing endpoint.
  • 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.
  • Custom resolution (size = “Custom”) is only supported by the gpt-image-2 model.
  • Custom width and height must be multiples of 16.
  • The longest edge of a custom resolution must be 3840 or less.
  • Custom resolution aspect ratio must not exceed 3:1.
  • Custom resolution total pixels must be between 655,360 and 8,294,400.
  • The gpt-image-1.5 model only supports the sizes auto, 1024x1024, 1024x1536, and 1536x1024. Other sizes are only supported by the gpt-image-2 model.

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): e3aaa8ecbc75c200614d278ed6f8a844e35a24c82bd16acbed0ef520e068500f