---
title: "Nano Banana 2 Text-to-Image API & Playground - Comfy"
description: "Nano Banana 2 Text-to-Image by Google: Generates or edits images at up to 4K with up to 14 reference images and adjustable thinking (Nano Banana 2 / Gemini 3.1 Flash…"
canonical: https://comfy.org/hub/models/nano-banana-2-text-to-image/
lang: en
index: https://comfy.org/llms.txt
---

[Back to all models](https://comfy.org/hub/models/)

Google

[Generate images](https://comfy.org/hub/models/?useCase=generate-images)

# Nano Banana 2 Text-to-Image

Generates or edits images at up to 4K with up to 14 reference images and adjustable thinking (Nano Banana 2 / Gemini 3.1 Flash Image).

Cost depends on your settings.

- [thinking](https://comfy.org/hub/models/?q=thinking)
- [edit](https://comfy.org/hub/models/?q=edit)
- [multimodal](https://comfy.org/hub/models/?q=multimodal)
-

[Read docs](https://docs.comfy.org/development/comfy-router/models#google)

Input

Prompt

Aspect ratio

Resolution

Advanced settings

Temperature

Adjust the randomness of generated text.

Top P

Top K

Default: 40

Max Output Tokens

Output

![Nano Banana 2 Text-to-Image: Helical staircase from above](https://media.comfy.org/website/workshop/vertexai/gemini-nano-banana-2/helical-staircase-from-above.png)

Example

## Try an example

- A cinematic, moody top-down shot of a winding helical staircase from a high vantage point, the perspective creating a dizzying vortex effect. Figures in dark, indistinct clothing are scattered at intervals along the spiral steps, silhouetted against the muted, high-contrast grey stone architecture. The lighting is dark and atmospheric, focusing on the rhythmic pattern of the stairs as they descend into a central void. Gritty, high-contrast black and white noir style, emphasising geometric repetition and architectural depth, no text.

## More from Google

[Browse all Browse all models](https://comfy.org/hub/models/)

- [Google

  ### Nano Banana 2 Image Edit

  Image to Image

  gemini google nano-banana thinking edit multimodal image text-to-image image-edit](https://comfy.org/hub/models/nano-banana-2-image-edit/)
- [Google

  ### Nano Banana Image Edit

  Image to Image

  gemini google edit fast multimodal nano-banana image text-to-image image-edit](https://comfy.org/hub/models/nano-banana-image-edit/)
- [Google

  ### Nano Banana Pro Image Edit

  Image to Image

  gemini google pro high-quality edit multimodal image text-to-image image-edit](https://comfy.org/hub/models/nano-banana-pro-image-edit/)
- [Google

  ### Gemini Omni 1.1 Flash

  Image to Video

  gemini omni omni-1.1 video generation edit text-to-video video-edit](https://comfy.org/hub/models/gemini-omni-1-1-flash-image-to-video/)
