ComfyUI Node Runs on cloud
OpenAI GPT Image 2
Generates images synchronously via OpenAI's GPT Image endpoint.
OpenAI GPT Image 2
- image
- mask
- IMAGE
◄prompt►
◄seed0►
◄qualitylow►
◄backgroundauto►
◄sizeauto►
◄n1►
◄modelgpt-image-2►
◄custom_width1024►
◄custom_height1024►
Categorypartner/image/OpenAI
Inputs (11)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | Text prompt for GPT Image | |
| seedopt | INT | 00–2147483647 | not implemented yet in backend |
| qualityopt | COMBO | low | Image quality, affects cost and generation time. |
| backgroundopt | COMBO | auto | Return image with or without background |
| sizeopt | COMBO | auto | Image size. Select 'Custom' to use the custom width and height (GPT Image 2 only). |
| nopt | INT | 11–8 | How many images to generate |
| imageopt | IMAGE | Optional reference image for image editing. | |
| maskopt | MASK | Optional mask for inpainting (white areas will be replaced) | |
| modelopt | COMBO | gpt-image-2 | 3 options: gpt-image-1, gpt-image-1.5, gpt-image-2 |
| custom_widthopt | INT | 10241024–3840 | Used only when `size` is 'Custom'. Must be a multiple of 16 (GPT Image 2 only). |
| custom_heightopt | INT | 10241024–3840 | Used only when `size` is 'Custom'. Must be a multiple of 16 (GPT Image 2 only). |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |