google/gemini-2.5-flash-image
Google Nano Banana, backed by Gemini 2.5 Flash Image, for image generation and image editing through the Vertex-compatible OneHop route. It supports text and image input and can return image output with optional text.
åºå ž: gemini_image_x0.5 · ç¢ºèªæ¥ 2026-06-06
ã©ã¡ãã® ID ã䜿ã£ãŠã API ã§ãã®ã¢ãã«ãåŒã³åºããŸãã
google/gemini-2.5-flash-imageONEHOP_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-2.5-flash-image",
contents="What is the meaning of life?",
)
print(response.text)éå» 30 æ¥éã§ 14 ä»¶ã®ãªã¯ãšã¹ã