Gemini Nano Banana 2.1 is optimized for multimodal image generation and
editing and offers a balance of price and performance.

> [!NOTE]
> **Note:** The `seed`, `topK`, `logprobs`, `temperature`, and `topP` parameters aren't supported for Nano Banana 2.1. Setting any of these parameters returns an API error.


[Try in Agent Studio](https://console.cloud.google.com/agent-platform/studio/multimodal?model=gemini-nano-banana-2.1)
[View in Model Garden](https://console.cloud.google.com/agent-platform/publishers/google/model-garden/gemini-nano-banana-2.1)
[Deploy example app](https://console.cloud.google.com/agent-platform/studio/multimodal?suggestedPrompt=How+does+AI+work&deploy=true&model=gemini-nano-banana-2.1)

[Pricing](https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing)
Note: "Deploy example app" requires a Google Cloud project with billing and Agent Platform API enabled.

| Model ID | `gemini-nano-banana-2.1` ||
| Modalities | Text Input and output Image Input and output Audio Not supported Video Input only ||
| Token limits | Context window | 131,072 |
| Token limits | Maximum output tokens | 32,768 |
| Capabilities | - [Thinking](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/thinking.md.txt) Supported - [System instructions](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/prompts/system-instruction-introduction.md.txt) Supported - [Structured output](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/capabilities/control-generated-output.md.txt) Not supported - [Context caching](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/context-cache/context-cache-overview.md.txt) Implicit context caching Supported - [RAG Engine](https://docs.cloud.google.com/gemini-enterprise-agent-platform/build/rag-engine/rag-overview.md.txt) Not supported - [Tuning](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/tuning.md.txt) Not supported - [Image generation](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/capabilities/image-generation.md.txt) Image generation, Image generation from video input Supported - [Edit images](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/capabilities/gemini-edit-images.md.txt) Edit images, Multi-turn image editing Supported - [Interleaved images and text](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/capabilities/image-generation.md.txt#interleaved-images) Supported - [Content Credentials (C2PA)](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/content-credentials.md.txt) Supported - [Virtual try-on](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/capabilities/generate-virtual-try-on-images.md.txt) Supported - [Person generation](https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/PersonGeneration.md.txt) Supported ||
| Tools | - [Grounding](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/grounding/overview.md.txt) Google Search, Image search Supported - [Code execution](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/tools/code-execution.md.txt) Not supported - [Function calling](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/tools/function-calling.md.txt) Not supported - [URL context](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/url-context.md.txt) Not supported ||
| Consumption options | - [Provisioned Throughput](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/provisioned-throughput.md.txt) Supported - [Batch inference](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/capabilities/batch-inference.md.txt) Supported - [Pay-as-you-go](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/deploy/consumption-options.md.txt) Standard PayGo, Priority PayGo Supported - [Fixed quota](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/quotas.md.txt) Not supported ||
| Input size limit | 500 MiB compressed ||
| Technical specifications | **Image** | - Maximum images per prompt: 14 - Maximum inline part size: 256 MB - Maximum file size per file from Cloud Storage: 2 GiB minus 500 KiB - Maximum file size per file from public HTTP or HTTPS URLs: 15 MiB - Maximum file size per file for direct local uploads in the console: 7 MiB inline (up to 50 MiB staged to Cloud Storage) - Maximum file size per file for Google Drive imports in the console: 7 MB (10 MB total) - Maximum number of output images per prompt: Limited to 32,768 output tokens - Supported aspect ratios: 1:1, 3:2, 2:3, 3:4, 1:4, 4:1, 4:3, 4:5, 5:4, 1:8, 8:1, 9:16, 16:9, 21:9 - Supported resolutions: 1K, 2K, 4K - Supported MIME types: `image/png`, `image/jpeg`, `image/webp`, `image/heic`, `image/heif` |
| Technical specifications |
| Technical specifications |
| Technical specifications |
|---|---|---|
| **Text** | - Maximum number of files per prompt: As supported by the 128k token context window - Maximum number of pages per file: As supported by the 128k token context window - Maximum inline part size: 256 MB - Maximum file size per file from Cloud Storage: 2 GiB minus 500 KiB - Maximum file size per file from public HTTP or HTTPS URLs: 15 MiB - Maximum file size per file for direct local uploads in the console: 7 MiB inline (up to 50 MiB staged to Cloud Storage) - Maximum file size per file for Google Drive imports in the console: 7 MB (10 MB total) - Supported MIME types: `application/pdf`, `text/plain` |
| **Video** | - Maximum number of input video files per prompt: 10 - Maximum YouTube URLs per prompt: 1 - Maximum video length (without audio): As supported by the 128k token context window (approximately 25 minutes). - Maximum inline part size: 256 MB - Maximum file size per file from Cloud Storage: 2 GiB minus 500 KiB - Maximum file size per file from public HTTP or HTTPS URLs: 15 MiB - Supported MIME types: `video/x-flv`, `video/quicktime`, `video/mpeg`, `video/mpegs`, `video/mpg`, `video/mp4`, `video/webm`, `video/wmv`, `video/3gpp` |
| **Parameter defaults** | - candidateCount: 1 - Temperature, topP, topK, seed, logprobs: Not supported |
| **[Provisioned Throughput](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/provisioned-throughput/supported-models.md.txt)** | - Global: `global` |
| **[Standard PayGo](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/standard-paygo.md.txt)** | - Global: `global` |
| **[Priority PayGo](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/priority-paygo.md.txt)** | - Global: `global` |
| **Batch inference** | - Data residency - CMEK - VPC-SC - AXT |
| **Context caching** | - Data residency - CMEK - VPC-SC - AXT |
| See [Security controls](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/security-controls.md.txt) for more information. ||

### Image generation specifications

Nano Banana 2.1 consumes 1,120 tokens per input image.

Output image token consumption varies based on the generated image resolution:

| Output resolution | Approximate megapixels | Output image tokens |
|---|---|---|
| 1K | 1 | 1,120 |
| 2K | 4 | 1,680 |
| 4K | 16 | 3,780 |

> [!NOTE]
> **Note:** Additional charges apply for input and output tokens for other modalities, such as text and video. Refer to the [pricing page](https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing) for the latest.

For more information about image generation using
Nano Banana 2.1, see [Generate and edit images with
Gemini](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/capabilities/image-generation).