ComfyUI Node
arkennemasis fal · GPT Image 2 Edit · $0.01-0.41/image
GPT Image 2, OpenAI's latest image model, is capable of making fine-grained, detailed edits to images. Pricing (from fal, 2026-09-29): Text tokens (per 1M): $5.00 input, $1.25 cached, $10.00 output. Image tokens (per 1M): $8.00 input, $2.00 cached, $30.00 output. Changing the quality parameter significantly affects cost; by default we use high. Adjust it to your preference. See the description at the bottom of this page for more details on how much canonical image sizes cost. Total cost is rounded up to the closest hundredth of a cent ($0.0001). Model page: https://fal.ai/models/openai/gpt-image-2/edit Key: FAL_KEY in the .env next to run_nvidia_gpu.bat. Results are saved in output/fal/openai_gpt-image-2_edit/.
arkennemasis fal · GPT Image 2 Edit · $0.01-0.41/image
- image_1
- image_2
- image_3
- image_4
- image_5
- image_6
- mask
- images
- image_paths
- info
◄prompt►
◄image_sizeauto►
◄image_size_width1024►
◄image_size_height1024►
◄backgroundauto►
◄qualityhigh►
◄num_images1►
◄output_formatpng►
◄max_cost_usd20.0►
◄reuse_identical_runtrue►
◄extra_json►
◄max_concurrent1►
Categoryarkennemasis/fal/Image/OpenAI
Inputs (19)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | The prompt for image generation | |
| image_1 | IMAGE | The URLs of the images to use as a reference for the generation. A maximum of 16 images are allowed. Each socket may carry a batch; they are sent in socket order (the first picture of socket 1 is number 1). | |
| image_size | COMBO | auto | The size of the generated image. Use 'auto' to infer from input images. 'custom' uses the width and height below. |
| image_size_width | INT | 102416–14142 | Width in pixels when image_size is 'custom'. |
| image_size_height | INT | 102416–14142 | Height in pixels when image_size is 'custom'. |
| background | COMBO | auto | Background for the generated image |
| quality | COMBO | high | Quality for the generated image. Use 'auto' to let the model pick the best quality for the prompt. |
| num_images | INT | 11–4 | Number of images to generate |
| output_format | COMBO | png | Output format for the images |
| image_2opt | IMAGE | The URLs of the images to use as a reference for the generation. A maximum of 16 images are allowed. Each socket may carry a batch; they are sent in socket order (the first picture of socket 1 is number 1). | |
| image_3opt | IMAGE | The URLs of the images to use as a reference for the generation. A maximum of 16 images are allowed. Each socket may carry a batch; they are sent in socket order (the first picture of socket 1 is number 1). | |
| image_4opt | IMAGE | The URLs of the images to use as a reference for the generation. A maximum of 16 images are allowed. Each socket may carry a batch; they are sent in socket order (the first picture of socket 1 is number 1). | |
| image_5opt | IMAGE | The URLs of the images to use as a reference for the generation. A maximum of 16 images are allowed. Each socket may carry a batch; they are sent in socket order (the first picture of socket 1 is number 1). | |
| image_6opt | IMAGE | The URLs of the images to use as a reference for the generation. A maximum of 16 images are allowed. Each socket may carry a batch; they are sent in socket order (the first picture of socket 1 is number 1). | |
| maskopt | MASK | The URL of the mask image to use for the generation. This indicates what part of the image to edit. | |
| max_cost_usdopt | FLOAT | 20.00–100000 | Safety cap. If the estimated cost of this run is above this many US dollars the node stops BEFORE sending anything to fal. 0 = no cap. |
| reuse_identical_runopt | BOOLEAN | true | If these exact inputs (the settings AND the same pictures/clips/audio) were already paid for and the files are still in output/fal, return them instead of paying again - also after a ComfyUI restart. Turn off for a fresh take with the same settings. |
| extra_jsonopt | STRING | Advanced: a JSON object merged into the request last, for any fal field this node has no box for. Example: {"seed": 7}. Leave empty normally. | |
| max_concurrentopt | INT | 11–32 | How many paid fal calls may run at the same time in one run, across every fal node. 1 (default) = one after another. This node starts its paid part only while fewer than this many fal calls are running. Once any fal node fails, the ones still waiting are not started, so nothing more is billed. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| images | IMAGE | — |
| image_paths | STRING | — |
| info | STRING | JSON: request id, cost estimate, saved files and fal's full answer. |