Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image)
Image Generationgoogle/gemini-3.1-flash-lite-imageGemini 3.1 Flash Lite Image is Google's most cost-efficient image generation and editing model, supporting text-to-image, image editing, and multi-image composition. Outputs generated at 1K resolution across 14 aspect ratios, at the lowest price point in the Nano Banana family.
上下文窗口
66K
最大输出 Token
64K
发布日期
2026-06-30
能力
视觉
可用供应商
Vertex
支持的协议
openaigemini
供应商
Vertex
输入 Token
$0.25/M
输出 Token
$1.5/M
输出图像
$30/M
接入协议
openai
/v1/chat/completions/v1/images/generationsgemini
代码示例
from google import genaiclient = genai.Client(api_key="YOUR_OFOX_API_KEY",http_options={"api_version": "v1beta", "base_url": "https://api.ofox.ai/gemini"},)response = client.models.generate_content(model="google/gemini-3.1-flash-lite-image",contents="Generate an image of a beautiful sunset over mountains",)print(response.text)
相关模型
常见问题
Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) 在 Ofox.ai 上的价格为输入 $0.25/M/百万 Token,输出 $1.5/M/百万 Token。按量计费,无月费。
Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) 支持 66K Token 的上下文窗口,最大输出 64K Token,可处理大型文档并维持长对话。
只需将 base URL 设置为 https://api.ofox.ai/v1,并使用你的 Ofox API Key。API 兼容 OpenAI 格式——只需更改 base URL 和 API Key 即可。
Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) 支持以下能力:视觉。通过 Ofox.ai 统一 API 访问所有功能。