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.io/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 存取所有功能。