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.
Source : gemini_image_x0.5 · Vérifié le 2026-06-06
Utilisez l'un ou l'autre des IDs pour appeler ce modèle via l'API.
google/gemini-2.5-flash-imageRemplacez le placeholder ONEHOP_KEY par votre API key. Créer →
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)0 requêtes · 30 derniers jours