google/gemini-3.1-flash-lite-image
Nano Banana 2 Lite 底层为 Gemini 3.1 Flash Lite Image,是 Google 出图家族里主打速度与成本的一档,通过 OneHop 的 Vertex 兼容入口做图像生成与编辑。支持文本和图片输入,输出图片并可附带文本,1K 出图约 4 秒。官方把它定位成原版 Nano Banana 用户的升级去处。只出 1K 尺寸,也不为多张参考图与长链多轮编辑优化 —— 这两种场景请用 Nano Banana 2 或 Nano Banana Pro。
来源: official_x0.5 · 核验于 2026-09-10
缓存读 $0.0125/M · 缓存写 —/M
API 调用时用任一 ID 都可以。
google/gemini-3.1-flash-lite-image请求里的 model 可以直接使用这些名字。
把 ONEHOP_KEY 占位符替换为你的 API Key。 创建 →
from google import genai
# OneHop 兼容 Vertex AI Gemini generateContent 接口
client = genai.Client(
api_key="<ONEHOP_KEY>",
http_options={"base_url": "https://api.onehop.ai/vertex-ai"},
)
response = client.models.generate_content(
model="google/gemini-3.1-flash-lite-image",
contents="What is the meaning of life?",
)
print(response.text)