gemini-nano-banana-2.1 — price, context and performance

gemini-nano-banana-2.1 is a Google model billed per request at $0.13 each.

Overview

VendorGoogle
API formatsopenai

Pricing

Per request$0.13

Performance

API endpointhttps://api.airai.cc/v1
OpenAI-compatibleOpenAI-compatible

FAQ

How much does gemini-nano-banana-2.1 cost?
gemini-nano-banana-2.1 is billed per request at $0.13 each.
What is the context window of gemini-nano-banana-2.1?
gemini-nano-banana-2.1 has a not specified context window: the combined token limit for input and output in a single request.
How do I call gemini-nano-banana-2.1 from code?
Point base_url to https://api.airai.cc/v1 and set model to gemini-nano-banana-2.1. The API is fully OpenAI compatible.
Why does gemini-nano-banana-2.1 return error 429?
429 is a rate limit response. Lower your concurrency, retry with backoff, or switch to a plan with a larger quota.

Model comparison

ModelVendorInputOutputContext
gemini-nano-banana-2.1GooglePer request $0.13—not specified
gemini-3.8-flashGoogle$0.75$3.751M
gemini-3.5-flash-liteGoogle$0.30$2.501M
gemini-2.5-flash-imageGoogle$0.30$30.0032.8K
gemini-3-flash-previewGoogle$0.50$3.001M
gemini-3.6-flashGoogle$0.75$3.751M
gemini-4-hydrogenGoogle$1.50$7.50not specified
gemini-3.5-flashGoogle$1.50$9.001M
gemini-embedding-2-previewGoogle$0.20$0.80not specified
gemini-3.1-flash-lite-imageGoogle$0.25$30.0065.5K
gemini-4-carbonGoogle$2.00$10.00not specified
gemini-4-argonGoogle$2.00$10.001M
gemini-4-argon-highGooglePrice not published—not specified

Troubleshooting

429 is a rate limit response. Lower your concurrency, retry with backoff, or switch to a plan with a larger quota.

Common causes

  • Too many concurrent requests
  • Quota of the current plan exhausted
  • Retrying immediately without backoff

How to fix

  • Limit concurrency and retry with exponential backoff
  • Switch to a plan with a larger quota
  • Cache repeated requests

How to connect

curl https://api.airai.cc/v1/chat/completions \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-nano-banana-2.1",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
from openai import OpenAI

client = OpenAI(
    api_key="<YOUR_API_KEY>",
    base_url="https://api.airai.cc/v1"
)

response = client.chat.completions.create(
    model="gemini-nano-banana-2.1",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: "<YOUR_API_KEY>",
  baseURL: "https://api.airai.cc/v1"
});

const response = await client.chat.completions.create({
  model: "gemini-nano-banana-2.1",
  messages: [{ role: "user", content: "Hello" }]
});
console.log(response.choices[0].message.content);
const OpenAI = require("openai");

const client = new OpenAI({
  apiKey: "<YOUR_API_KEY>",
  baseURL: "https://api.airai.cc/v1"
});

client.chat.completions.create({
  model: "gemini-nano-banana-2.1",
  messages: [{ role: "user", content: "Hello" }]
}).then((r) => console.log(r.choices[0].message.content));

Replace <YOUR_API_KEY> with the API Key from your token settings.

Compatible endpoints

openaiopenai-responseopenai-response-compactanthropicgeminiopenai-alpha-search

Gemini SDK · TypeScript

import { GoogleGenerativeAI } from "@google/generative-ai";

const genAI = new GoogleGenerativeAI("<YOUR_API_KEY>");
const model = genAI.getGenerativeModel({ model: "gemini-nano-banana-2.1" });

const result = await model.generateContent(
  "Explain quantum entanglement in one paragraph."
);
console.log(result.response.text());

Authentication

All requests must include the Authorization: Bearer <TOKEN> header. Anthropic-format endpoints also accept the x-api-key header. Generate your API Key on the Tokens page, where you can scope access by model, group, IP, and rate limits.

Supported parameters

ParameterTypeDefaultRangeDescription
temperaturefloat10–2Sampling temperature; lower is more stable
top_pfloat10–1Nucleus sampling cumulative probability
max_tokensinteger——Maximum tokens in the response
frequency_penaltyfloat0−2–2Penalizes repeated high-frequency tokens
presence_penaltyfloat0−2–2Encourages introducing new topics
stopstring[]null≤ 4Up to 4 strings that stop generation
seedintegernull—Seed for more reproducible sampling
ninteger1—Number of candidate completions
streambooleanfalse—Stream tokens via SSE
response_formatobject——Force JSON output or schema-conformant results
toolsarray——Function/tool declarations the model can call
tool_choicestring | objectauto—Tool selection strategy or specific tool name
logprobsbooleanfalse—Return log probabilities for each token
top_logprobsintegernull0–20Number of top probabilities returned per token
logit_biasmap——Logit bias mapping per token
userstring——End-user identifier for risk auditing

Rate limits

TierRPMTPMRPD
Eco990398K20K
Test980393K20K

Data updated: 2026-11-26 17:40

Technical SupportLive Support
Back to Top