# Gemini Nano Banana 2.1

> An update to Nano Banana 2 for image generation and conversational editing, with improved visual quality, multi-turn character consistency, accurate text rendering, and search-grounded generation at 1K, 2K, and 4K.

Agent resources: the index of everything machine-readable is https://www.ohmygpt.com/llms.txt; the integration skill (endpoints, auth, SDK and coding-tool setup) is https://www.ohmygpt.com/skill.md.

- Model ID: `google/gemini-nano-banana-2.1`
- Status: available
- Released: 2026-10-06
- Context: 131K tokens
- Max output: 33K tokens
- Input: text, image, video, pdf; output: text, image

## Prices (USD)

| Item | Price | Unit |
| --- | --- | --- |
| Input | $1.35 | per 1M tokens |
| Output | $6.75 | per 1M tokens |
| Cache read | $0.135–$1.35 | per 1M tokens |
| Reasoning output | $6.75 | per 1M tokens |
| Image input | $1.35 | per 1M tokens |
| Image output | $27.00 | per 1M tokens |
| Web search | $0.0126 | per request |

## Providers

Without a prefix each request goes to the best-priced healthy provider. To pin one, send the model as `<provider>:google/gemini-nano-banana-2.1`.

| Provider | Pinned model ID | Location | Input | Output | Trains on your data |
| --- | --- | --- | --- | --- | --- |
| Google (Gemini) | `google:google/gemini-nano-banana-2.1` | United States | $1.35 | $6.75 | no |
| Google Vertex AI | `vertex:google/gemini-nano-banana-2.1` | Global | $1.35 | $6.75 | no |

## Endpoints

| API | Request | model |
| --- | --- | --- |
| OpenAI Chat | POST https://api.ohmygpt.com/v1/chat/completions | `google/gemini-nano-banana-2.1` |
| OpenAI Responses | POST https://api.ohmygpt.com/v1/responses | `google/gemini-nano-banana-2.1` |
| Anthropic Messages | POST https://api.ohmygpt.com/v1/messages | `google/gemini-nano-banana-2.1` |
| Google Gemini | POST https://api.ohmygpt.com/v1/models/google/gemini-nano-banana-2.1:generateContent | `google/gemini-nano-banana-2.1` |

## Example

```bash
curl https://api.ohmygpt.com/v1/models/google/gemini-nano-banana-2.1:generateContent \
  -H "x-goog-api-key: $OHMYGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [
      {
        "parts": [
          {
            "text": "Hello"
          }
        ]
      }
    ]
  }'
```

Web page: https://www.ohmygpt.com/models/google/gemini-nano-banana-2.1
