ComfyUI Node
π Gemini API (nhk)
Generate images or analyze images with Gemini
π 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)
| Name | Type | Default | Description |
|---|---|---|---|
| system_prompt | STRING | System instructions to guide model behavior | |
| user_prompt | STRING | Main prompt for generation or image analysis | |
| modelopt | COMBO | gemini-3.1-flash-image | Gemini model (Image models generate/edit images; 3.5 Flash analyzes images and returns text) |
| image_1opt | IMAGE | First optional input image | |
| image_2opt | IMAGE | Second optional input image | |
| image_3opt | IMAGE | Third optional input image | |
| image_4opt | IMAGE | Fourth optional input image | |
| aspect_ratioopt | COMBO | 3:4 | Aspect ratio for generated image |
| image_sizeopt | COMBO | 2K | Output image resolution (4K for higher quality) |
| output_modeopt | COMBO | text_and_image | What type of output to request from the model |
| temperatureopt | FLOAT | 1.000β2 | Temperature controls randomness (0=deterministic, 2=very random) |
| seedopt | INT | 00β2147483647 | Random seed for reproducibility (0=random) |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | β |
| text | STRING | β |