ComfyUI Node
Divergent Gemini Node
Generate text using Google Gemini API with optional image input for multimodal models.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| model | COMBO | gemini-1.5-flash | Select the Gemini model to use |
| prompt | STRING | Describe the image. | The text prompt for generation |
| temperature | FLOAT | 0.900–2 | Controls randomness. Higher = more creative |
| top_p | FLOAT | 1.000–1 | Nucleus sampling probability threshold |
| top_k | INT | 11–100 | Top-K sampling threshold |
| max_output_tokens | INT | 20481–8192 | Maximum tokens to generate |
| safety_harassment | COMBO | Block Medium & Above | Safety threshold for harassment |
| safety_hate_speech | COMBO | Block Medium & Above | Safety threshold for hate speech |
| safety_sexually_explicit | COMBO | Block Medium & Above | Safety threshold for sexual content |
| safety_dangerous_content | COMBO | Block Medium & Above | Safety threshold for dangerous content |
| image_optionalopt | IMAGE | Optional image for multimodal models | |
| api_key_overrideopt | STRING | Override API key for this node | |
| max_retriesopt | INT | 30–10 | Maximum retry attempts |
| retry_delay_secondsopt | INT | 51–60 | Delay between retries |
| extended_thinkingopt | BOOLEAN | true | Enable extended thinking if supported |
| thinking_token_budgetopt | INT | -1-1–8192 | Token budget for thinking (-1=auto) |
| output_thoughtsopt | BOOLEAN | false | Include thought process in output |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |