Nodes/ComfyUI-nhknodes/🍌 Gemini API (nhk)
ComfyUI Node

🍌 Gemini API (nhk)

Generate images or analyze images with Gemini

By EnashkaΒ·Created 11 months agoΒ·Updated about a month agoΒ· 22
🍌 Gemini API (nhk)
  • image_1
  • image_2
  • image_3
  • image_4
  • image
  • text
β—„system_promptβ–Ί
β—„user_promptβ–Ί
β—„modelgemini-3.1-flash-imageβ–Ί
β—„aspect_ratio3:4β–Ί
β—„image_size2Kβ–Ί
β—„output_modetext_and_imageβ–Ί
β—„temperature1.00β–Ί
β—„seed0β–Ί
Categorynhk/ai

Inputs (12)

NameTypeDefaultDescription
system_promptSTRINGSystem instructions to guide model behavior
user_promptSTRINGMain prompt for generation or image analysis
modeloptCOMBOgemini-3.1-flash-imageGemini model (Image models generate/edit images; 3.5 Flash analyzes images and returns text)
image_1optIMAGEFirst optional input image
image_2optIMAGESecond optional input image
image_3optIMAGEThird optional input image
image_4optIMAGEFourth optional input image
aspect_ratiooptCOMBO3:4Aspect ratio for generated image
image_sizeoptCOMBO2KOutput image resolution (4K for higher quality)
output_modeoptCOMBOtext_and_imageWhat type of output to request from the model
temperatureoptFLOAT1.000–2Temperature controls randomness (0=deterministic, 2=very random)
seedoptINT00–2147483647Random seed for reproducibility (0=random)

Outputs (2)

NameTypeDescription
imageIMAGEβ€”
textSTRINGβ€”