Gemini

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

Image Generation
google/gemini-3.1-flash-lite-image
對比開始使用

Nano Banana 2 Lite(Gemini 3.1 Flash Lite Image)是 Google 成本效益最高的圖像生成與編輯模型,價格位於 Nano Banana 系列中的最低檔。它於 2026-06-30 發布,涵蓋文字生成圖像、圖像編輯和多圖合成,輸出為 1K 解析度,並支援 14 種長寬比。模型可接受圖像輸入,因此不僅能從零生成,也能編輯既有圖像或將多張圖像作為參考進行合成。透過 Ofox 支援 OpenAI 與 Gemini 兩種協定接入。

上下文視窗
66K
最大輸出 Token
64K
發布日期
2026-06-30
能力
視覺
可用供應商
GoogleCloudVertex
支援的協定
OpenAIopenaiGeminigemini

供应商

GoogleCloudVertex
輸入 Token
$0.25/M
輸出 Token
$1.5/M
輸出圖像
$30/M
接入协议
OpenAIopenai/v1/chat/completions/v1/images/generations
Geminigemini

程式碼範例

from google import genai
client = genai.Client(
api_key="YOUR_OFOX_API_KEY",
http_options={"api_version": "v1beta", "base_url": "https://api.ofox.run/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。按量計費,無月費。