Nodes/comfyui-arkennemasis/arkennemasis Replicate Image Gen (GPT-Image-2)
ComfyUI Node

arkennemasis Replicate Image Gen (GPT-Image-2)

Generate or edit images with openai/gpt-image-2 on Replicate. Optional input images enable editing.

By Hishamahmer·Created about a month ago·Updated 9 days ago· 5
arkennemasis Replicate Image Gen (GPT-Image-2)
  • image_1
  • image_2
  • image_3
  • image_4
  • settings
  • image
prompt
number_of_images1
aspect_ratio
quality
background
output_format
moderation
api_token
timeout_seconds0
force_rerunfalse
run_mode
max_concurrent2
Categoryarkennemasis/Image Gen

Inputs (17)

NameTypeDefaultDescription
promptSTRING
image_1optIMAGEOptional image to edit/transform. Omit for text-to-image. Can be a batch.
image_2optIMAGE
image_3optIMAGE
image_4optIMAGE
number_of_imagesoptINT11–10
aspect_ratiooptCOMBO19 options: default, 1:1, 3:2, 2:3, 4:3, 3:4, +13
qualityoptCOMBO5 options: default, low, medium, high, auto
backgroundoptCOMBO4 options: default, auto, transparent, opaque
output_formatoptCOMBO4 options: default, png, jpeg, webp
moderationoptCOMBO3 options: default, auto, low
api_tokenoptSTRINGReplicate API token (optional). Blank = use REPLICATE_API_TOKEN from the environment or a .env file.
timeout_secondsoptINT00–86400Max seconds to wait for the model. 0 = wait indefinitely.
force_rerunoptBOOLEANfalseRe-call the API even if inputs are unchanged.
run_modeoptCOMBOComfyUI runs async nodes concurrently. 'one at a time' serialises every arkennemasis API node in the graph — use it when the provider throttles bursts (Replicate allows a burst of 1 under $5 credit). 'all at once' is faster when your rate limit allows it.
max_concurrentoptINT20–32Only used when run_mode is 'all at once': how many arkennemasis API calls may be in flight together. 0 = no cap. 2 is a safe default for a 24-shot batch.
settingsoptARK_IMAGE_SETTINGSOptional: wire one 'Image Gen Settings (shared)' node in here to drive this and every other Image Gen node from a single place. Any field it leaves on "use node's own" falls back to the widgets above.

Outputs (1)

NameTypeDescription
imageIMAGE