Pricing per million tokens, context window, capabilities — pulled from each provider's public docs. All 2 are available via the same AIgateway OpenAI-compatible endpoint; flip the model string to switch.
Google's latest image generation model producing high-quality, photorealistic images from text prompts with support for multiple aspect ratios.
Google's higher-quality image generation model with improved detail and prompt adherence.
from openai import OpenAI
client = OpenAI(
base_url="https://api.aigateway.sh/v1",
api_key="sk-aig-...",
)
# Imagen 4
client.chat.completions.create(
model="google/imagen-4",
messages=[{"role":"user","content":"hello"}],
)
# Nano Banana Pro
client.chat.completions.create(
model="google/nano-banana-pro",
messages=[{"role":"user","content":"hello"}],
)