# Google Nano Banana 2.1 (Gemini Nano Banana 2.1) API

> Nano Banana 2.1 (Gemini Nano Banana 2.1) is Google's Flash-tier image generation and editing model, succeeding Nano Banana 2 and producing images alongside text through the native Gemini generateContent API. It improves prompt adherence, text rendering, product recontextualization and multi-turn editing consistency, supports extreme aspect ratios and 1K to 4K output, and can ground generation with Google web and image search. Pick Nano Banana Pro instead for the most demanding professional design work.

Source: https://www.sandbase.ai/models/google/gemini-nano-banana-2.1
API reference: https://www.sandbase.ai/models/google/gemini-nano-banana-2.1/docs

## Facts

- Provider: Google
- Type: Language model
- Model ID: `google/gemini-nano-banana-2.1`
- Price: $1.50 per 1M input tokens, $7.50 per 1M output tokens
- Context window: 65.5K tokens, up to 32.8K output tokens
- Capabilities: chat, vision, reasoning
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Gemini generateContent API: `POST https://api.sandbase.ai/v1beta/models/google/gemini-nano-banana-2.1:generateContent`

```bash
curl -X POST https://api.sandbase.ai/v1beta/models/google/gemini-nano-banana-2.1:generateContent \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "contents": [
    {
      "role": "user",
      "parts": [
        {
          "text": "A watercolor illustration of a fox in a snowy forest"
        }
      ]
    }
  ],
  "generationConfig": {
    "responseModalities": [
      "TEXT",
      "IMAGE"
    ]
  }
}'
```

## FAQ

### How do I call Google Nano Banana 2.1 (Gemini Nano Banana 2.1) through SandBase?

Create a SandBase API key, then send requests with the model ID "google/gemini-nano-banana-2.1" to Gemini generateContent API (/v1beta/models/google/gemini-nano-banana-2.1:generateContent) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### How much does Google Nano Banana 2.1 (Gemini Nano Banana 2.1) cost?

$1.50 per 1M input tokens and $7.50 per 1M output tokens, billed per request from your SandBase balance. Discounts, when available, are shown in the pricing on this page.

### What is the context window of Google Nano Banana 2.1 (Gemini Nano Banana 2.1)?

65.5K tokens of context, with up to 32.8K output tokens per response.

### Which features does Google Nano Banana 2.1 (Gemini Nano Banana 2.1) support?

Google Nano Banana 2.1 (Gemini Nano Banana 2.1) supports vision (image input), reasoning. See Specifications above for the full list.

### Do I need a separate Google account?

No. One SandBase API key and balance gives you access to Google Nano Banana 2.1 (Gemini Nano Banana 2.1) and the other models in the catalog; you do not need to sign up with Google separately.
