Gemini

Gemini Nano Banana 2.1

Google按量收費
Alias:gemini-nano-banana-2.1

Gemini Nano Banana 2.1 (gemini-nano-banana-2.1) 是最新的高效图片生成和对话式智能修图模型。Nano Banana 2(Gemini 3.1 Flash Image)的更新版本,在保持 Flash 级速度和成本效益的同时,在视觉质量、提示遵循度、多轮对话角色一致性和文本呈现方面实现了显著改进。它是 Gemini 3 Pro Image (Nano Banana Pro) 的更高效版本。

起始價格
輸入 / 輸出 · 1M
上下文
—
最大輸入窗口
模態
→

Pricing by Supplier

Google AI Studio
省50%
谷歌官方接口
輸入$1.5$0.75/ 1M
輸出$30$15/ 1M

能力 / 支援的模態

函數呼叫工具JSON 模式結構化輸出視覺
輸入
輸出

廠商與數據私隱

供應商
Google文件
分詞器
SentencePiece (Gemini)
許可證
Proprietary (commercial)商業閉源
數據保留26 日預設不會用於上游訓練

效能

基準測試

標準化評測得分。百分比越高越好,並展示排名百分位。

指標來源:Artificial Analysis 2026-09-30·Gemini Nano Banana 2.1

目前基準快照不包含此模型。

缺少模型或測量值不代表零分。

基準圖表保留來源中的模型選擇和推理設定。缺少模型或測量值不代表零分,基準成本或速度也不是本站的服務承諾。

About Gemini Nano Banana 2.1

提升了 1K、2K 和 4K 输出分辨率(默认 1K)下的视觉质量和真实感 修复了在 2K 和 4K 分辨率下,宽屏和全景宽高比(1:4、4:1、1:8、8:1)的平铺伪影 增强了文本渲染和信息图布局准确性 支持多图融合,最多可使用 14 张参考图片(最多可保持 4 个角色的一致性,最多可保持 10 个对象的逼真度) 依托 Google 网页搜索和图片搜索进行接地 可配置的思考等级(minimal、medium [默认] 和 high)

Use cases and prompting

Starting points for evaluation; supported inputs and options are listed in API access.

Use cases to explore

  • Explore product visuals, campaign concepts and illustration drafts.
  • Compare composition and visual style across several prompt variations.

Practical tips

Specify the subject, composition, lighting and style. Only include reference images or editing parameters when the endpoint supports them.

Example prompt

A minimalist product photograph of a ceramic cup on pale stone, soft window light, ample empty space on the right, warm neutral colors.

API access

API 介面文件

呼叫示例

請求POST/v1beta/models/gemini-nano-banana-2.1:generateContent
請求範例
參數
參數類型預設值 / 範圍說明資訊
temperature
number
=10 ~ 2
採樣溫度;越低越穩定
top_p
number
=10 ~ 1
核採樣累積概率
max_tokens
integer>= 1回應中最大 token 數
frequency_penalty
number
=0-2 ~ 2
懲罰高頻 token 的重複出現
presence_penalty
number
=0-2 ~ 2
鼓勵引入新話題
stop
array—最多 4 個停止生成的字串
seed
integer—盡量保證可復現的採樣種子
n
integer
=1>= 1
生成的候選條數
stream
boolean
=false
透過 SSE 串流返回 token
response_format
object—強制輸出 JSON 物件或符合 Schema 的結果
tools
array—模型可呼叫的工具 / 函數聲明
tool_choice
string
autononerequired
工具選擇策略或具體工具名
logprobs
boolean
=false
返回每個 token 的對數概率
top_logprobs
integer0 ~ 20每個 token 返回的 top 概率數量
logit_bias
object—按 token 的 logit 偏置映射
user
string—用於風險審計的終端用戶標識

替換 <YOUR_API_KEY> 替換為令牌設定中的 API Key。

身份驗證

所有請求必須攜帶 Authorization: Bearer <TOKEN> 請求頭。Anthropic 格式的端點也接受 x-api-key 請求頭。

在「令牌」頁面生成 API Key,可以按模型、分組、IP、速率等維度精細化授權。

支援的參數

Generation parameters
參數類型預設值 / 範圍說明資訊
temperature
number
=10 ~ 2
採樣溫度;越低越穩定
top_p
number
=10 ~ 1
核採樣累積概率
max_tokens
integer>= 1回應中最大 token 數
frequency_penalty
number
=0-2 ~ 2
懲罰高頻 token 的重複出現
presence_penalty
number
=0-2 ~ 2
鼓勵引入新話題
stop
array—最多 4 個停止生成的字串
seed
integer—盡量保證可復現的採樣種子
n
integer
=1>= 1
生成的候選條數
stream
boolean
=false
透過 SSE 串流返回 token
response_format
object—強制輸出 JSON 物件或符合 Schema 的結果
tools
array—模型可呼叫的工具 / 函數聲明
tool_choice
string
autononerequired
工具選擇策略或具體工具名
logprobs
boolean
=false
返回每個 token 的對數概率
top_logprobs
integer0 ~ 20每個 token 返回的 top 概率數量
logit_bias
object—按 token 的 logit 偏置映射
user
string—用於風險審計的終端用戶標識

速率限制

供應商RPMTPMRPD
Google AI Studio無限制無限制無限制

無限制

Frequently asked questions about gemini-nano-banana-2.1

What is gemini-nano-banana-2.1?

Gemini Nano Banana 2.1 (gemini-nano-banana-2.1) 是最新的高效图片生成和对话式智能修图模型。Nano Banana 2(Gemini 3.1 Flash Image)的更新版本,在保持 Flash 级速度和成本效益的同时,在视觉质量、提示遵循度、多轮对话角色一致性和文本呈现方面实现了显著改进。它是 Gemini 3 Pro Image (Nano Banana Pro) 的更高效版本。

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.

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

Specify the subject, composition, lighting and style. Only include reference images or editing parameters when the endpoint supports them.