ComfyUI Node
OpenAI GPT Image Edit
Simple GPT Image 2 edit payload through FAL. Supports reference images, optional mask_image_url, preset/aspect/custom sizes, and external per-node API key inputs.
OpenAI GPT Image Edit
- image_1
- image_2
- image_3
- image_4
- image_5
- image_6
- mask_image
- images
- info
◄promptRetouch only the masked region. Preserve the rest of the image.►
◄api_key►
◄api_key_env_varFAL_KEY►
◄openai_api_key►
◄openai_api_key_env_varOPENAI_API_KEY►
◄region_info—►
◄size_modepreset►
◄image_sizeauto►
◄aspect_ratio16:9►
◄resolution1K►
◄width1920►
◄height1080►
◄qualityhigh►
◄num_images1►
◄output_formatpng►
◄sync_modefalse►
Categoryinpaint/api
Inputs (23)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | Retouch only the masked region. Preserve the rest of the image. | — |
| image_1 | IMAGE | — | |
| api_key | STRING | — | |
| api_key_env_var | STRING | FAL_KEY | — |
| openai_api_key | STRING | — | |
| openai_api_key_env_var | STRING | OPENAI_API_KEY | — |
| image_2opt | IMAGE | — | |
| image_3opt | IMAGE | — | |
| image_4opt | IMAGE | — | |
| image_5opt | IMAGE | — | |
| image_6opt | IMAGE | — | |
| mask_imageopt | IMAGE | — | |
| region_infoopt | STRING | — | |
| size_modeopt | COMBO | preset | 4 options: preset, aspect_ratio, custom, auto_from_region |
| image_sizeopt | COMBO | auto | 7 options: auto, square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, +1 |
| aspect_ratioopt | COMBO | 16:9 | 9 options: 1:1, 16:9, 9:16, 4:5, 5:4, 3:2, +3 |
| resolutionopt | COMBO | 1K | 3 options: 1K, 2K, 4K |
| widthopt | INT | 192016–4096 | — |
| heightopt | INT | 108016–4096 | — |
| qualityopt | COMBO | high | 3 options: low, medium, high |
| num_imagesopt | INT | 11–4 | — |
| output_formatopt | COMBO | png | 3 options: png, webp, jpeg |
| sync_modeopt | BOOLEAN | false | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| images | IMAGE | — |
| info | STRING | — |