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 higher-quality image generation model with improved detail and prompt adherence.
OpenAI's image generation model that creates and edits images from text prompts, supporting multiple quality levels and output sizes.
from openai import OpenAI
client = OpenAI(
base_url="https://api.aigateway.sh/v1",
api_key="sk-aig-...",
)
# Nano Banana Pro
client.chat.completions.create(
model="google/nano-banana-pro",
messages=[{"role":"user","content":"hello"}],
)
# GPT Image 1.5
client.chat.completions.create(
model="openai/gpt-image-1.5",
messages=[{"role":"user","content":"hello"}],
)