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.

By amortegui84·Created 4 months ago·Updated 2 months ago· 3
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)

NameTypeDefaultDescription
promptSTRINGRetouch only the masked region. Preserve the rest of the image.
image_1IMAGE
api_keySTRING
api_key_env_varSTRINGFAL_KEY
openai_api_keySTRING
openai_api_key_env_varSTRINGOPENAI_API_KEY
image_2optIMAGE
image_3optIMAGE
image_4optIMAGE
image_5optIMAGE
image_6optIMAGE
mask_imageoptIMAGE
region_infooptSTRING
size_modeoptCOMBOpreset4 options: preset, aspect_ratio, custom, auto_from_region
image_sizeoptCOMBOauto7 options: auto, square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, +1
aspect_ratiooptCOMBO16:99 options: 1:1, 16:9, 9:16, 4:5, 5:4, 3:2, +3
resolutionoptCOMBO1K3 options: 1K, 2K, 4K
widthoptINT192016–4096
heightoptINT108016–4096
qualityoptCOMBOhigh3 options: low, medium, high
num_imagesoptINT11–4
output_formatoptCOMBOpng3 options: png, webp, jpeg
sync_modeoptBOOLEANfalse

Outputs (2)

NameTypeDescription
imagesIMAGE
infoSTRING