google/gemini-3.1-flash-image-preview
Google Nano Banana 2, backed by Gemini 3.1 Flash Image, for higher-quality image generation and editing. It accepts text, image, and video input, and returns image output through the Vertex-compatible OneHop route.
出典: gemini_image_x0.5 · 確認日 2026-06-06
どちらの ID を使っても API でこのモデルを呼び出せます。
google/gemini-3.1-flash-image-previewONEHOP_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-image-preview",
contents="What is the meaning of life?",
)
print(response.text)過去 30 日間で 1 件のリクエスト