GPT-5.6 发布 🎉 GPT 全系 8 折 🎉 直降 20% 整个 7 月 🔥查看详情
OfoxAI × 万事达卡 🎉 开卡刷卡送 $50 Token 代金券 · 限量 1000 份查看详情

此模型已下线

已于 2026-06-25 下线,不再接受新请求,请改用其他可用的活跃模型。

Gemini

Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview)

Image Generation已下线
google/gemini-3.1-flash-image-preview

Gemini 3.1 Flash Image Preview, a.k.a. "Nano Banana 2," is Google’s latest state of the art image generation and editing model, delivering Pro-level visual quality at Flash speed. It combines advanced contextual understanding with fast, cost-efficient inference, making complex image generation and iterative edits significantly more accessible.

上下文窗口
64K
最大输出 Token
64K
发布日期
2026-03-03
能力
视觉网络搜索
可用供应商
GeminiGeminiGoogleCloudVertex
支持的协议
OpenAIopenaiGeminigemini

定价

类型价格
输入 Token$0.5/M
输出 Token$3/M
输出图像$60/M
网络搜索$0.014/R

代码示例

from google import genai
client = genai.Client(
api_key="YOUR_OFOX_API_KEY",
http_options={"api_version": "v1beta", "base_url": "https://api.ofox.io/gemini"},
)
response = client.models.generate_content(
model="google/gemini-3.1-flash-image-preview",
contents="Generate an image of a beautiful sunset over mountains",
)
print(response.text)

常见问题

Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview) 在 Ofox.ai 上的价格为输入 $0.5/M/百万 Token,输出 $3/M/百万 Token。按量计费,无月费。