Pricing, context window, capabilities, and release date — pulled from each provider's public docs. Both are available via the same AIgateway OpenAI-compatible endpoint; flip the model string to switch.
Both models stream in parallel through your own AIgateway key. Tokens, latency, and cost update as they arrive.
| GPT-4o openai/gpt-4o | GPT-4o Mini openai/gpt-4o-mini | |
|---|---|---|
| Provider | OpenAI | OpenAI |
| Family | GPT-4 | GPT-4 |
| Modality | text | text |
| Context window | 128,000 tok | 128,000 tok |
| Max output | 16,384 tok | 16,384 tok |
| Released | 2026-05-22 | 2026-05-22 |
| Input price | $2.50 /1M | $0.150 /1M |
| Output price | $10.00 /1M | $0.600 /1M |
| Cache read | — | — |
| Tools | — | — |
| Streaming | yes | yes |
| Vision | — | — |
| JSON mode | — | — |
| Reasoning | — | — |
| Prompt caching | — | — |
GPT-4o is OpenAI’s multimodal flagship, accepting text and images and responding quickly across a wide range of tasks.
GPT-4o Mini is the lightweight, low-cost variant of GPT-4o, well suited to high-volume tasks with multimodal inputs.
# pip install aigateway-py openai
# aigateway-py: sub-accounts, evals, replays, jobs, webhook verify.
# openai SDK: chat/embeddings/images/audio — drop-in compat per our SDK's own guidance.
from openai import OpenAI
client = OpenAI(
base_url="https://api.aigateway.sh/v1",
api_key="sk-aig-...",
)
# Try GPT-4o
client.chat.completions.create(
model="openai/gpt-4o",
messages=[{"role":"user","content":"hello"}],
)
# Try GPT-4o Mini — same client, same key
client.chat.completions.create(
model="openai/gpt-4o-mini",
messages=[{"role":"user","content":"hello"}],
)