ComfyUI Node
NanoBanana - Image Generation (Nano Banana)
A ComfyUI node in NanoBanana2/Image with 17 inputs and 1 output.
NanoBanana - Image Generation (Nano Banana)
- ref_image_1
- ref_image_2
- ref_image_3
- ref_image_4
- network
- image
◄api_key►
◄modelgemini-3.1-flash-image-preview►
◄custom_model►
◄prompt►
◄aspect_ratio16:9►
◄image_size4K►
◄system_instruction►
◄thinking_levelNONE►
◄temperature1.00►
◄seed-1►
◄candidate_count1►
◄safety_settings_json►
CategoryNanoBanana2/Image
Inputs (17)
| Name | Type | Default | Description |
|---|---|---|---|
| api_key | STRING | NanoBanana - API key. Leave blank to use GEMINI_API_KEY env var. | |
| model | COMBO | gemini-3.1-flash-image-preview | NanoBanana - image model. For Imagen models, use the dedicated Imagen Image Generation node instead. |
| custom_model | STRING | Override with a custom model ID. | |
| prompt | STRING | Image generation prompt. Use [Reference Image N] to refer to inputs. | |
| aspect_ratio | COMBO | 16:9 | Output image aspect ratio. |
| image_size | COMBO | 4K | Output image resolution. |
| system_instructionopt | STRING | System instruction for the image generation model. | |
| thinking_levelopt | COMBO | NONE | How much the model should reason before generating. |
| temperatureopt | FLOAT | 1.000–2 | Controls randomness in generation. |
| seedopt | INT | -1-1–2147483647 | Random seed for reproducibility (-1 = random). |
| candidate_countopt | INT | 11–4 | Number of image candidates to generate. All are returned as a batch — wire into Preview Image or save the lot. |
| ref_image_1opt | IMAGE | First reference image. | |
| ref_image_2opt | IMAGE | Second reference image. | |
| ref_image_3opt | IMAGE | Third reference image. | |
| ref_image_4opt | IMAGE | Fourth reference image. | |
| safety_settings_jsonopt | STRING | JSON safety settings from Safety Settings node. | |
| networkopt | NB_NETWORK | Optional. Wire a NanoBanana - Network Route node here to route this request through that proxy (e.g. US egress). |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |