Google: Nano Banana 2

google/gemini-3.1-flash-image

Google Nano Banana 2 API pricing

在Oxyy上,Nano Banana 2的输入token价格为每百万$0.200,图像输出token价格为每百万$24.00。 这些是应用当前 60% 折扣后的按量付费价格(Launch Promo; standard price $0.500 input and $60.00 image output). 文本输出 token 的价格为每百万 $1.20。 它根据文本 prompt 生成图片 且可以使用参考图片。 A cheaper Google option is Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) at $0.100 / $12.00 per 1M tokens; 查看所有模型与费率的 Gemini API 定价.

High-efficiency production-scale image generation and editing, balancing speed with 4K generation, world knowledge and reliable text rendering. The generalist workhorse of the Nano Banana family.

模态文本图片视频文本图片
价格$0.200 / $24.00 每 1M 输入 token / 输出图像All Gemini API 定价
已发布Feb 26, 2026

供应商

此模型的运行位置以及每个路由的费用。请求会自动发送到健康的提供商;如果某个提供商出错,网关会自动重试提供相同模型的另一个提供商。

提供方输入 /M输出 /M缓存读取 /M延迟Throughput
Google$0.200$24.00—17.18s—

功能特性 (14)

流式传输Image EditMulti Turn EditingInterleaved Text And ImageVideo To ImageReference ImagesCharacter Consistency思考Search GroundingImage Search Grounding工具调用BatchSynthid WatermarkImage To Image

支持的参数 (8)

输入response_format.typeresponse_format.image_sizeresponse_format.aspect_ratioresponse_format.mime_typethinking_leveltoolsprevious_interaction_id

下方快速入门中显示的终结点自身字段也是必需的;缺少这些字段的请求将被拒绝。

定价

What this model costs on Oxyy, pay as you go. "Charged" is the rate a request is billed at; the standard price is shown beside it for reference.

输入价格
$0.200
每 1M 个输入 token · standard price $0.500
Image output price
$24.00
每 1M 个图像输出 token · standard price $60.00
费率标准价格已扣费单位
输入$0.500$0.200每 1M 个输入 token
图片输出$60.00$24.00每 1M 个图像输出 token
文本输出$3.00$1.20每 1M 个文本输出 token

折扣。 收费费率已包含所有费率的当前 "Launch Promo" 60% 折扣。

UTC

规格

Model ID
gemini-3.1-flash-image
开发者
Google
类型
图片生成
输入
Text, images and video
输出
Text and images
已发布
Feb 26, 2026
图片输入
每个最大 20 MB, 14每次请求 · PNG, JPEG, WebP
视频输入
每个最大 100 MB, 14每次请求 · MP4
端点
/v1/images/generations

快速入门

调用 gemini-3.1-flash-image 通过 POST 请求发送至 /v1/images/generations 开启 https://api.oxyy.ai,使用来自的 Oxyy API key OXYY_API_KEY 环境变量。 同一密钥适用于目录中的所有模型。

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.oxyy.ai/v1",
    api_key=os.environ["OXYY_API_KEY"],
)

response = client.images.generate(
    model="gemini-3.1-flash-image",
    prompt="A lighthouse on a cliff at sunset, watercolor",
    n=1,
    size="1024x1024",
)
print(response.data[0].url)

性能

Throughput 表示模型输出的速度(token/秒 —— 越高越好)。Latency 是总往返时间(越低越好)。TTFT 是首个 token 的生成时间 —— 也就是内容开始显示前的等待时间(越低越好)。Throughput 和 TTFT 是在流式请求上测量的,只有流式请求才有首个 token 的概念。

Throughput
—tok/s
P50,流式请求
延迟
17.18s
P50,端到端
UTC

Throughput

P99—
P95—
P50—

延迟

P5014.6s
P7516.2s
P9516.4s
P9916.5s

首字延迟 (TTFT)

P50—
P95—

缓存命中率

0.00%
在时间窗口内,从 prompt cache 提供的输入 token 占比。

可用性

过去一段时间内成功完成的该模型请求占比 30 天。 调用方取消的请求以及仍在处理中的请求不计入统计。 当上游供应商出错时,网关会自动重试提供同一模型的其他供应商,因此单个供应商的故障不一定会在此处显示。

成功率 (30 天)
7.50%
over 32,126 completed requests
有流量的天数
30
在过去的 30 天内

天数按 UTC 计算。没有完成请求的天数会被省略,而不是显示为 100% —— 无流量并不代表可用性。

活动

该模型随时间推移的 Token 量和请求流量。每日总计,UTC 时间。

Prompt676.5K
Completion3.4M

Prompt token 用于衡量输入大小。 Completion token 反映了总输出长度。此模型的推理不单独定价,因此此处未单列。

常见问题

什么是 Nano Banana 2?
High-efficiency production-scale image generation and editing, balancing speed with 4K generation, world knowledge and reliable text rendering. The generalist workhorse of the Nano Banana family.
Nano Banana 2 的价格是多少?
在Oxyy上,Nano Banana 2的输入token价格为每百万$0.200,图像输出token价格为每百万$24.00。 这些是应用当前 60% 折扣后的按量付费价格(Launch Promo; standard price $0.500 input and $60.00 image output). 文本输出 token 的价格为每百万 $1.20。 按请求付费,无需订阅。
我可以向 Nano Banana 2 发送什么?
Nano Banana 2接收一条文本prompt and reference images (每个最大 20 MB, 14每次请求 · PNG, JPEG, WebP)并返回text and images。
Nano Banana 2 使用哪个 API 终端节点?
向 https://api.oxyy.ai/v1/images/generations 发送带有 "model": "gemini-3.1-flash-image" 的 POST 请求,并使用你的 Oxyy API key 进行身份验证。 It is also served on /v1/images/edits, /v1/images/variations, /v1/chat/completions, /v1beta/models/gemini-3.1-flash-image:generateContent (Google Gemini SDK) and /v1/responses (Responses API).
Nano Banana 2 是什么时候发布的?
Nano Banana 2于Feb 26, 2026发布。
Google 还有哪些其他模型?
Google 还通过 Oxyy 提供 Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image), Gemini 2.5 Flash, Gemini 2.5 Flash-Lite and Gemini 2.5 Flash TTS。

替代方案: Nano Banana 2

其他供应商提供的同类模型,按价格从低到高排序。在 Oxyy 上按需付费,使用相同的 API Key。

探索更多模型

更多来自以下机构的模型 Google