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.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | — | |
| image_1opt | IMAGE | Optional image to edit/transform. Omit for text-to-image. Can be a batch. | |
| image_2opt | IMAGE | — | |
| image_3opt | IMAGE | — | |
| image_4opt | IMAGE | — | |
| number_of_imagesopt | INT | 11–10 | — |
| aspect_ratioopt | COMBO | 19 options: default, 1:1, 3:2, 2:3, 4:3, 3:4, +13 | |
| qualityopt | COMBO | 5 options: default, low, medium, high, auto | |
| backgroundopt | COMBO | 4 options: default, auto, transparent, opaque | |
| output_formatopt | COMBO | 4 options: default, png, jpeg, webp | |
| moderationopt | COMBO | 3 options: default, auto, low | |
| api_tokenopt | STRING | Replicate API token (optional). Blank = use REPLICATE_API_TOKEN from the environment or a .env file. | |
| timeout_secondsopt | INT | 00–86400 | Max seconds to wait for the model. 0 = wait indefinitely. |
| force_rerunopt | BOOLEAN | false | Re-call the API even if inputs are unchanged. |
| run_modeopt | COMBO | ComfyUI 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_concurrentopt | INT | 20–32 | Only 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. |
| settingsopt | ARK_IMAGE_SETTINGS | Optional: 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)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |