Nano Banana 2.1
gemini-nano-banana-2.1AvailableNano Banana 2.1. Google's image generation and editing model (an improved Nano Banana 2). Follows instructions more closely, renders text inside images better, and stays more consistent across successive edits. Creates images from 1K to 4K.
- Context
- 131.1K tokens
- Max output
- 32.8K tokens
- vs. official price
- 40% cheaper
Pricing (USD per 1M tokens)
How prices are calculated| Item | Official | Basic | Premium |
|---|---|---|---|
| Input | $1.50≈ ¥238 | $0.90≈ ¥144 | $0.75≈ ¥120 |
| Output | $30.00≈ ¥4,759 | $18.00≈ ¥2,880 | $15.00≈ ¥2,400 |
| Cache read | — | $0.90≈ ¥144 | $0.75≈ ¥120 |
Notes
Output is charged at the official image output price ($30 per 1M tokens). Text output uses the same rate. One image is 1,120 tokens at 1K, 1,680 at 2K and 3,780 at 4K.
How to call
POST/v1/chat/completions
import os
from openai import OpenAI
client = OpenAI(
base_url="https://token.echohub.io/v1",
api_key=os.environ["ECHO_API_KEY"],
)
res = client.chat.completions.create(
model="gemini-nano-banana-2.1",
messages=[{"role": "user", "content": "Hello"}],
)
print(res.choices[0].message.content)import os
from anthropic import Anthropic
# The Anthropic SDK adds /v1 at the end automatically
client = Anthropic(
base_url="https://token.echohub.io",
api_key=os.environ["ECHO_API_KEY"],
)
msg = client.messages.create(
model="gemini-nano-banana-2.1",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}],
)
print(msg.content[0].text)curl https://token.echohub.io/v1/chat/completions \
-H "Authorization: Bearer $ECHO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-nano-banana-2.1",
"messages": [{"role": "user", "content": "Hello"}]
}'