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.
OpenAI's image generation model that creates and edits images from text prompts, supporting multiple quality levels and output sizes.
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-...",
)
# GPT Image 1.5
client.chat.completions.create(
model="openai/gpt-image-1.5",
messages=[{"role":"user","content":"hello"}],
)
# Nano Banana Pro
client.chat.completions.create(
model="google/nano-banana-pro",
messages=[{"role":"user","content":"hello"}],
)