Gemini

Gemini Nano Banana 2.1

GoogleToken-based
Alias:gemini-nano-banana-2.1
Create API Key

Compare gemini-nano-banana-2.1 API pricing, supported endpoints, capabilities and access options on Modelsell.

文生图对话式修图主体一致性文字渲染
Starting price
Input / Output · 1M
Context
131.1K
Maximum input window
Max output
32.8K
Maximum tokens per response
Modalities
→

Pricing by Supplier

Google AI Studio
-50%
谷歌官方接口
Input$1.5$0.75/ 1M
Output$30$15/ 1M

Capabilities / Supported modalities

ReasoningWeb search
Input
Output

Provider & data privacy

Provider
GoogleDocs
Tokenizer
SentencePiece (Gemini)
License
Proprietary (commercial)Proprietary
Data retention26 daysNot used for upstream training by default

Performance

Benchmarks

Scores on standardized evaluations. Higher percentages are better — and rank percentile shows

Metrics sourced fromArtificial Analysis 2026-09-30·Gemini Nano Banana 2.1

This model is not included in the current benchmark snapshot.

Missing models or measurements are not zero scores.

Benchmark charts preserve the source model selection and reasoning settings. Missing models or measurements are not zero scores, and benchmark cost or speed is not this site’s service commitment.

About Gemini Nano Banana 2.1

一张图生成出来以后,真正费心的往往是修改:换个背景,保留人物;改一句标题,别把构图一起推翻。Nano Banana 2.1 把这类反复沟通的设计过程放进对话里,既能从文字生成画面,也能理解参考图并继续调整细节。它在 Nano Banana 2 的基础上改进了视觉质量、指令遵循、文字呈现和多轮角色一致性,适合需要持续打磨的日常设计。

让参考图各司其职

可以把商品外观、角色形象和场景风格分别交代清楚,再让模型组合成新画面。最多支持 14 张参考图,适合围绕同一品牌做系列视觉,或把多件商品放进统一场景。相比只写“参考这些图片”,说明每张图负责什么,更容易保住重要的颜色、材质和身份特征。

图片里的文字也是设计的一部分

海报标题、信息图和活动卡片,需要文字内容与版式一起考虑。Nano Banana 2.1 能按提示安排文字层级、图文位置与留白,也适合在后续对话中更换文案、调整配色。中文标题、长段文字和品牌标识仍值得逐字检查;先确定布局,再精修文字,通常比一次加入所有信息更容易控制。

提供 1K、2K、4K 输出,适合从概念草图逐步推进到较清晰的展示素材。宽幅与全景构图也可以用于横幅、长条封面或空间氛围图。需要真实背景知识的主题创作时,模型还支持搜索辅助理解。生成结果依然需要检查人物、商品细节和事实表达,尤其不要把漂亮的信息图直接当成已经验证的数据结论。

Use cases and prompting

咖啡店周末活动海报

图一是我们的咖啡杯,请保留杯型、米白色杯身和绿色标识。图二只参考窗边的光线。制作竖版海报:杯子放在画面下半部,背景为浅绿色,上方清晰写“周末来一杯”,下方留出添加日期的位置。画面温暖、干净,不增加其他品牌文字。

下一轮可以只要求“标题保持不变,把桌面换成浅木色,杯子位置与大小不变”,观察局部修改是否符合预期。

多张图怎样用才有效? 标明商品图、人物图、构图图或风格图各自的用途,避免相互冲突。

适合直接做带文字的海报吗? 适合先完成图文设计,再检查文字准确性和发布尺寸;长说明文字可留给排版工具补充。

API access

API documentation

Code samples

RequestPOST/v1beta/models/gemini-nano-banana-2.1:generateContent
Example request
Parameters
ParameterTypeDefault / rangeDescription
temperature
number
=10 ~ 2
Sampling temperature; lower is more deterministic
top_p
number
=10 ~ 1
Nucleus sampling probability mass
max_tokens
integer>= 1Maximum number of tokens in the response
frequency_penalty
number
=0-2 ~ 2
Penalises repetition of frequent tokens
presence_penalty
number
=0-2 ~ 2
Encourages introducing new topics
stop
array—Up to 4 strings that stop generation
seed
integer—Deterministic sampling seed (best-effort)
n
integer
=1>= 1
Number of completions to generate
stream
boolean
=false
Stream tokens via Server-Sent Events
response_format
object—Force JSON object or schema-conforming output
tools
array—Tool / function declarations the model may call
tool_choice
string
autononerequired
Tool-choice policy or specific tool name
logprobs
boolean
=false
Return per-token log probabilities
top_logprobs
integer0 ~ 20Number of top log probabilities returned per token
logit_bias
object—Per-token logit bias map
user
string—End-user identifier for abuse monitoring

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

Authentication

All requests must include Authorization: Bearer <TOKEN> header. Anthropic-formatted endpoints accept the x-api-key header instead.

Generate tokens from the Tokens page; you can scope them to specific models, groups, IPs, and rate-limits.

Supported parameters

Generation parameters
ParameterTypeDefault / rangeDescription
temperature
number
=10 ~ 2
Sampling temperature; lower is more deterministic
top_p
number
=10 ~ 1
Nucleus sampling probability mass
max_tokens
integer>= 1Maximum number of tokens in the response
frequency_penalty
number
=0-2 ~ 2
Penalises repetition of frequent tokens
presence_penalty
number
=0-2 ~ 2
Encourages introducing new topics
stop
array—Up to 4 strings that stop generation
seed
integer—Deterministic sampling seed (best-effort)
n
integer
=1>= 1
Number of completions to generate
stream
boolean
=false
Stream tokens via Server-Sent Events
response_format
object—Force JSON object or schema-conforming output
tools
array—Tool / function declarations the model may call
tool_choice
string
autononerequired
Tool-choice policy or specific tool name
logprobs
boolean
=false
Return per-token log probabilities
top_logprobs
integer0 ~ 20Number of top log probabilities returned per token
logit_bias
object—Per-token logit bias map
user
string—End-user identifier for abuse monitoring

Rate limits

SupplierRPMTPMRPD
Google AI StudioUnlimitedUnlimitedUnlimited

No restriction

Frequently asked questions about gemini-nano-banana-2.1

What is gemini-nano-banana-2.1?

Compare gemini-nano-banana-2.1 API pricing, supported endpoints, capabilities and access options on Modelsell.

How do I call gemini-nano-banana-2.1?

Create an API key with access to gemini-nano-banana-2.1, then use the exact model ID and a supported endpoint from the API access section. Request fields depend on the selected endpoint.

How is gemini-nano-banana-2.1 priced?

Pricing depends on the selected provider group and the model billing unit. The current input, output, request, or media prices are shown on this page before sign-up.

What is the context window of gemini-nano-banana-2.1?

The model catalog lists a context window of 131072 tokens. Check the selected endpoint for request limits.

What is the maximum output of gemini-nano-banana-2.1?

The model catalog lists a maximum output of 32768 tokens. Your request settings may set a lower limit.

How should I evaluate gemini-nano-banana-2.1 for my project?

Start with the use cases and prompting guidance on this page, then evaluate the model with representative inputs from your project.