API Free WeekHundreds of APIs are free to call this week.Browse free APIs

Nano Banana 2.1 (Gemini Nano Banana 2.1)

15% OFFgoogle/gemini-nano-banana-2.1

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.

Input price
$1.27$1.50USD / 1M tokens
Output price
$6.38$7.50USD / 1M tokens
Context window
65.5K
Max output
32.8K
Production route

Try the model

Gemini-native API

This model generates images through the Gemini generateContent API and is not available on Chat Completions or in the Playground. Use the request example below with your SandBase API key.

Model card

Specifications

Pricing

Input
$1.27 / 1M tokens
Output
$6.38 / 1M tokens
Cache read
$1.27 / 1M tokens

Context & modalities

Context window
65,536 tokens
Max output
32,768 tokens
Input
Text, image
Output
Text

Capabilities

Chat
Supported
Vision
Supported
Reasoning
Supported
Structured output
Not supported
Function calling
Not supported
Audio input
Not supported

Access

Provider
Google
Model ID
google/gemini-nano-banana-2.1
Execution
sync
Base URL
https://api.sandbase.ai
API
Gemini generateContent API
Endpoint
/v1beta/models/google/gemini-nano-banana-2.1:generateContent

Start building

Send your first request

Gemini-native endpoint with SandBase API key authentication and usage tracking.

Production API
Gemini generateContent API endpoint
https://api.sandbase.ai/v1beta/models/google/gemini-nano-banana-2.1:generateContent
Model ID
google/gemini-nano-banana-2.1
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -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" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "contents": [
    {
      "role": "user",
      "parts": [
        {
          "text": "A watercolor illustration of a fox in a snowy forest"
        }
      ]
    }
  ],
  "generationConfig": {
    "responseModalities": [
      "TEXT",
      "IMAGE"
    ]
  }
}
SANDBASE_JSON
)
printf '%s\n' "$result"

Choose your model

Compare models

All language models
ModelContextInput / 1MOutput / 1MReleased
Google64K$1.27$6.38Oct 8, 2026
Google—Coming soonComing soonComing soon
Google1M$1.50$7.50Sep 2, 2026
Google1M$1.50$7.50Aug 13, 2026
Google1M$0.30$2.50Jul 21, 2026
Google1M$0.75$3.75Jul 21, 2026

Questions

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.27 per 1M input tokens and $6.38 per 1M output tokens with the current 15% discount (list price $1.50 / $7.50), billed per request from your SandBase balance.

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.