Nodes/Divergent Nodes/Divergent Gemini Node
ComfyUI Node

Divergent Gemini Node

Generate text using Google Gemini API with optional image input for multimodal models.

By thedivergentai·Created 2 years ago·Updated 8 months ago· 1
Divergent Gemini Node
  • image_optional
  • text
modelgemini-1.5-flash
promptDescribe the image.
temperature0.90
top_p1.00
top_k1
max_output_tokens2048
safety_harassmentBlock Medium & Above
safety_hate_speechBlock Medium & Above
safety_sexually_explicitBlock Medium & Above
safety_dangerous_contentBlock Medium & Above
api_key_override
max_retries3
retry_delay_seconds5
extended_thinkingtrue
thinking_token_budget-1
output_thoughtsfalse
CategoryDivergent Nodes 👽/Gemini

Inputs (17)

NameTypeDefaultDescription
modelCOMBOgemini-1.5-flashSelect the Gemini model to use
promptSTRINGDescribe the image.The text prompt for generation
temperatureFLOAT0.900–2Controls randomness. Higher = more creative
top_pFLOAT1.000–1Nucleus sampling probability threshold
top_kINT11–100Top-K sampling threshold
max_output_tokensINT20481–8192Maximum tokens to generate
safety_harassmentCOMBOBlock Medium & AboveSafety threshold for harassment
safety_hate_speechCOMBOBlock Medium & AboveSafety threshold for hate speech
safety_sexually_explicitCOMBOBlock Medium & AboveSafety threshold for sexual content
safety_dangerous_contentCOMBOBlock Medium & AboveSafety threshold for dangerous content
image_optionaloptIMAGEOptional image for multimodal models
api_key_overrideoptSTRINGOverride API key for this node
max_retriesoptINT30–10Maximum retry attempts
retry_delay_secondsoptINT51–60Delay between retries
extended_thinkingoptBOOLEANtrueEnable extended thinking if supported
thinking_token_budgetoptINT-1-1–8192Token budget for thinking (-1=auto)
output_thoughtsoptBOOLEANfalseInclude thought process in output

Outputs (1)

NameTypeDescription
textSTRING