Inputs
| Parameter | Description | Data Type | Required | Range |
|---|---|---|---|---|
prompt | Text prompt for GPT Image (default: "") | STRING | Yes | - |
seed | Random seed for generation (default: 0) - not implemented yet in backend | INT | No | 0 to 2147483647 |
quality | Image quality, affects cost and generation time (default: “low”) | COMBO | No | ”low" "medium" "high” |
background | Return image with or without background (default: “auto”) | COMBO | No | ”auto" "opaque" "transparent” |
size | Image size. Select “Custom” to use the custom width and height (GPT Image 2 only) (default: “auto”) | COMBO | No | ”auto" "1024x1024" "1024x1536" "1536x1024" "2048x2048" "2048x1152" "1152x2048" "3840x2160" "2160x3840" "Custom” |
n | How many images to generate (default: 1) | INT | No | 1 to 8 |
image | Optional reference image for image editing | IMAGE | No | - |
mask | Optional mask for inpainting (white areas will be replaced) | MASK | No | - |
model | GPT Image model to use (default: “gpt-image-2”) | COMBO | No | ”gpt-image-1" "gpt-image-1.5" "gpt-image-2” |
custom_width | Used only when size is “Custom”. Must be a multiple of 16 (GPT Image 2 only) (default: 1024) | INT | No | 1024 to 3840 |
custom_height | Used only when size is “Custom”. Must be a multiple of 16 (GPT Image 2 only) (default: 1024) | INT | No | 1024 to 3840 |
- When
imageis provided, the node switches to image editing mode maskcan only be used whenimageis provided- When using
mask, only single images are supported (batch size must be 1) maskandimagemust 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
- Custom resolution aspect ratio must not exceed 3:1
- Custom resolution total pixels must be between 655,360 and 8,294,400
- Transparent background is not supported for the gpt-image-2 model
- Sizes larger than 1536x1024 (e.g., 2048x2048, 3840x2160) are only supported by the gpt-image-2 model
Outputs
| Output Name | Description | Data Type |
|---|---|---|
IMAGE | Generated or edited image(s) | IMAGE |
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):
826d393831ee38e97dad3ea238877d0aeb5bf16778612c51cdc0ca4816efead2