ComfyUI Node
NanoBanana Full API
Generate or edit images with Gemini 3.1 Flash Image or Gemini 3 Pro Image at 1K, 2K, or 4K resolution.
NanoBanana Full API
- mask
- image_1
- image_2
- image_3
- image_4
- image_5
- image_batch
- text_output
◄api_key►
◄model_versiongemini-3.1-flash-image►
◄promptA majestic golden retriever, watercolor style►
◄system_promptYou are a helpful image generation assistant.►
◄aspect_ratio1:1►
◄seed0►
◄temperature1.0►
◄top_p0.95►
◄candidate_count1►
◄safety_harassmentBLOCK_DEFAULT►
◄safety_hate_speechBLOCK_DEFAULT►
◄safety_sexualBLOCK_DEFAULT►
◄safety_dangerousBLOCK_DEFAULT►
◄edit_mode_enabledno►
◄resolution4K►
◄timeout_seconds120►
◄show_thoughtstrue►
◄thinking_levelhigh►
CategoryWorkflowX/API
Inputs (24)
| Name | Type | Default | Description |
|---|---|---|---|
| api_key | STRING | Google Gemini API key. When blank, GEMINI_API_KEY then GOOGLE_API_KEY are checked. | |
| model_version | COMBO | gemini-3.1-flash-image | 2 options: gemini-3.1-flash-image, gemini-3-pro-image |
| prompt | STRING | A majestic golden retriever, watercolor style | — |
| system_prompt | STRING | You are a helpful image generation assistant. | — |
| aspect_ratio | COMBO | 1:1 | 10 options: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, +4 |
| seed | INT | 00–2147483647 | — |
| temperature | FLOAT | 1.00–2 | — |
| top_p | FLOAT | 0.950–1 | — |
| candidate_count | INT | 11–10 | — |
| safety_harassment | COMBO | BLOCK_DEFAULT | 5 options: BLOCK_DEFAULT, BLOCK_NONE, BLOCK_LOW_AND_ABOVE, BLOCK_MEDIUM_AND_ABOVE, BLOCK_ONLY_HIGH |
| safety_hate_speech | COMBO | BLOCK_DEFAULT | 5 options: BLOCK_DEFAULT, BLOCK_NONE, BLOCK_LOW_AND_ABOVE, BLOCK_MEDIUM_AND_ABOVE, BLOCK_ONLY_HIGH |
| safety_sexual | COMBO | BLOCK_DEFAULT | 5 options: BLOCK_DEFAULT, BLOCK_NONE, BLOCK_LOW_AND_ABOVE, BLOCK_MEDIUM_AND_ABOVE, BLOCK_ONLY_HIGH |
| safety_dangerous | COMBO | BLOCK_DEFAULT | 5 options: BLOCK_DEFAULT, BLOCK_NONE, BLOCK_LOW_AND_ABOVE, BLOCK_MEDIUM_AND_ABOVE, BLOCK_ONLY_HIGH |
| edit_mode_enabled | COMBO | no | 2 options: no, yes |
| resolution | COMBO | 4K | 3 options: 1K, 2K, 4K |
| timeout_seconds | INT | 1201–3600 | Maximum time to wait for the Google API response. |
| show_thoughts | BOOLEAN | true | Request and include model thought text in text_output. |
| thinking_level | COMBO | high | Gemini 3.1 Flash Image only. Gemini 3 Pro Image uses its model-managed thinking level. |
| maskopt | MASK | — | |
| image_1opt | IMAGE | — | |
| image_2opt | IMAGE | — | |
| image_3opt | IMAGE | — | |
| image_4opt | IMAGE | — | |
| image_5opt | IMAGE | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image_batch | IMAGE | — |
| text_output | STRING | — |