ComfyUI Node
Gemini Image API
This node uses the Google Gemini Image API to generate or modify images.
Gemini Image API
- images
- config_options
- proxy_options
- IMAGE
- STRING
◄prompt—►
◄modelgemini-2.5-flash-image►
◄aspectRatioauto►
◄imageSize1K►
◄enableSearchfalse►
◄seed0►
CategoryYCYY/API/image
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | — | |
| model | COMBO | gemini-2.5-flash-image | 1 options: gemini-2.5-flash-image |
| aspectRatio | COMBO | auto | The model defaults to matching the output image size to that of your input image, or otherwise generates 1:1 squares. You can control the aspect ratio of the output image using the aspect ratio |
| imageSize | COMBO | 1K | Control the resolution of the output image. 1K is approximately 1024x1024, 2K is approximately 2048x2048, 4K is approximately 4096x4096(Only effective for the gemini-3 model). |
| enableSearch | BOOLEAN | false | Use the Google Search tool to generate images based on real-time information(Only effective for the gemini-3 model) |
| seed | INT | 00–18446744073709550000 | — |
| imagesopt | IMAGE | Optional image(s) to use as context for the model | |
| config_optionsopt | * | Optional configuration override from YCYY API Config Options | |
| proxy_optionsopt | * | Optional proxy configuration override from YCYY API Proxy Options |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |
| STRING | STRING | — |