Gemini Nano Banana 2.1
Fast image generation and editing with sharper 4K output.
Nano Banana 2.1 is Google's fast image model for generating and editing from a conversation, with sharper 1K to 4K output, better text in images, and characters that stay consistent across turns.
- Image editing
- Text in images
- Consistent characters
Model details
- Context window
- 131K tokens
- Max output
- 33K tokens
- Input
- Text, images
- Output
- Text, images
- Capabilities
- Vision, Streaming
- Interfaces
- OpenAI-style Image Generation, Image editing, OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses
Pricing
What each generation costs. The Cloakray price is what you are charged — no gateway fee is added on top of it.
| Resolution | Price |
|---|---|
| 1K / image | $0.0336 |
| 2K / image | $0.0504 |
| 4K / image | $0.0756 |
| / 1M input tokens | $1.5 |
| / 1M output tokens | $7.5 |
| / 1M image input tokens | $1.5 |
| / web search | $0.014 |
Why teams pick it
- Sharper output at 1K, 2K, and 4K
- Better text rendering inside images
- Keeps characters consistent across edits
Call Gemini Nano Banana 2.1
Gemini Nano Banana 2.1 answers on any of the APIs below — pick the one your code already speaks and just swap in your Cloakray key.
/v1/images/generationsOpenAI-style Image Generation · openai SDK or plain HTTP
curl https://api.cloakray.com/v1/images/generations \
-H "Authorization: Bearer ckr_..." \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-nano-banana-2.1",
"prompt": "A quartz crystal on a workbench"
}'/v1/images/editsImage editing · openai SDK or plain HTTP
curl https://api.cloakray.com/v1/images/edits \ -H "Authorization: Bearer ckr_..." \ -F 'model=gemini-nano-banana-2.1' \ -F 'prompt=Make the background blue' \ -F 'image=@input.png'
/v1/chat/completionsOpenAI-style Chat Completions · openai SDK or plain HTTP
curl https://api.cloakray.com/v1/chat/completions \
-H "Authorization: Bearer ckr_..." \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-nano-banana-2.1",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}'/v1/messagesAnthropic-style Messages · @anthropic-ai/sdk SDK or plain HTTP
curl https://api.cloakray.com/v1/messages \
-H "Authorization: Bearer ckr_..." \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-nano-banana-2.1",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}'/v1/responsesOpenAI-style Responses · openai SDK or plain HTTP
curl https://api.cloakray.com/v1/responses \
-H "Authorization: Bearer ckr_..." \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-nano-banana-2.1",
"input": "Hello"
}'Conversation compaction is also available at POST /v1/responses/compact.