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. Billed per successfully returned image at its actual resolution. The image package includes prompts, input images, thinking, caching and accompanying text; no additional token charges.
Quelle: https://ai.google.dev/gemini-api/docs/pricing · Verifiziert am 2026-10-30
Zum API-Aufruf kann jede der IDs verwendet werden.
google/gemini-2.5-flash-imageErsetzen Sie den Platzhalter ONEHOP_KEY durch Ihren API key. Erstellen →
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)Nano Banana 2 — current default Gemini image model.
— · —
Nano Banana Pro — Google's most advanced Gemini 3 Pro image generation and editing.
— · —
Nano Banana 2 Lite — the fastest, cheapest Nano Banana, about 4 seconds per 1K image.
$0.25/M↓ · $1.5/M↑
2 Anfragen in den letzten 30 Tagen