Nodes/ComfyUI-YCYY-API/Gemini Image API
ComfyUI Node

Gemini Image API

This node uses the Google Gemini Image API to generate or modify images.

By ycyy·Created 10 months ago·Updated 20 days ago· 10
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)

NameTypeDefaultDescription
promptSTRING
modelCOMBOgemini-2.5-flash-image1 options: gemini-2.5-flash-image
aspectRatioCOMBOautoThe 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
imageSizeCOMBO1KControl 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).
enableSearchBOOLEANfalseUse the Google Search tool to generate images based on real-time information(Only effective for the gemini-3 model)
seedINT00–18446744073709550000
imagesoptIMAGEOptional 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)

NameTypeDescription
IMAGEIMAGE
STRINGSTRING