Nodes/ERPK Collection/OpenAI Image Edit
ComfyUI Node

OpenAI Image Edit

A ComfyUI node in ERPK/OpenAI with 12 inputs and 1 output.

By eRepublik-Labs·Created 10 months ago·Updated about a month ago· 0
OpenAI Image Edit
  • image
  • client
  • mask
  • image
prompt
seed-1
modelgpt-image-2
size1024x1024
qualityauto
moderationauto
n1
backgroundauto
input_fidelityauto
CategoryERPK/OpenAI

Inputs (12)

NameTypeDefaultDescription
imageIMAGEInput image(s) to edit. A single image is the default. If you pass a batched IMAGE (e.g. from an Image Batch / Rebatch node), all N images are sent as reference images — gpt-image-2 uses this for character/scene continuity (up to 16 images). Mask (if provided) applies to the first.
promptSTRINGDescription of how to modify the image
seedINT-1-1–2147483647Seed for reproducible outputs (best-effort). Randomizes by default.
clientoptOPENAI_API_CLIENTOpenAI API client from OpenAI API Config node
maskoptMASKOptional mask indicating areas to edit (white = edit, black = keep)
modeloptCOMBOgpt-image-2Image editing model. gpt-image-2 is the latest flagship (multilingual text, character continuity across edits). gpt-image-1.5 / gpt-image-1 / gpt-image-1-mini remain available.
sizeoptCOMBO1024x1024Output image size. Options auto-filter based on the selected model. Edit endpoint supports the 1024-series sizes (and auto) across all GPT Image models.
qualityoptCOMBOautoImage quality (gpt-image-1 only)
moderationoptCOMBOautoContent moderation level. 'auto' uses OpenAI's default safety filters; 'low' relaxes them for permissive content.
noptINT11–10Number of edited image variants to return per call (OpenAI supports 1-10 for all GPT Image models).
backgroundoptCOMBOautoBackground type for the edited output (GPT Image models only). 'transparent' requires an output format that supports transparency.
input_fidelityoptCOMBOautoFidelity to the original input image(s). 'high' preserves details more aggressively; 'low' gives the model more creative freedom. Ignored by gpt-image-2 (always processes at high fidelity).

Outputs (1)

NameTypeDescription
imageIMAGE