Nodes/Artha-Gemini/πŸ”± Gemini Imagen
ComfyUI Node

πŸ”± Gemini Imagen

Gemini Imagen node is for image generation and modification.

By CyrostarΒ·Created about a year agoΒ·Updated 12 months agoΒ· 1
πŸ”± Gemini Imagen
  • system_instruction
  • image
  • response
β—„text_promptA cat with a hatβ–Ί
β—„api_keyβ–Ί
β—„modelgemini-2.0-flash-preview-image-generationβ–Ί
β—„max_tokens5000β–Ί
β—„temperature0.7β–Ί
β—„modify_imagefalseβ–Ί
β—„imageβ–Ύβ–Ί
CategoryArtha/LLM/GEMINI

Inputs (8)

NameTypeDefaultDescription
text_promptSTRINGA cat with a hatβ€”
api_keySTRINGAPI key will be visible in plain text. Consider adding your api to the api.json located inside this custom node folder.
modelCOMBOgemini-2.0-flash-preview-image-generation2 options: gemini-2.5-flash-image-preview, gemini-2.0-flash-preview-image-generation
max_tokensINT50001–8192For Gemini models, a token is equivalent to about 4 characters. 100 tokens is equal to about 60-80 English words.
temperatureFLOAT0.70–2A temperature of 0 means only the most likely tokens are selected, and there's no randomness. Conversely, a high temperature injects a high degree of randomness into the tokens selected by the model, leading to more unexpected, surprising model responses.
modify_imageBOOLEANfalseβ€”
imageCOMBO1 options: example.png
system_instructionoptARTHAINSTRUCTβ€”

Outputs (2)

NameTypeDescription
imageIMAGEβ€”
responseSTRINGβ€”