GPT-4o vs Gemini 3.7 Flash: API pricing
OpenAI's GPT-4o against Google (Gemini API)'s Gemini 3.7 Flash on price alone — per-token rates, caching, and context window. Run your own workload through both with the calculator below; capability differences are yours to judge on your evals.
| GPT-4o | Gemini 3.7 Flash | |
|---|---|---|
| Input / 1M tokens | $2.50 | $0.75 |
| Cached input / 1M | $1.25 | $0.075 |
| Output / 1M tokens | $10.00 | $3.75 |
| Context window | 125K | 1M |
| Max output | 16K | 64K |
| Vendor | OpenAI | Google (Gemini API) |
Prices last synced Aug 20, 2026 from the LiteLLM community price catalog — the same catalog Marginal prices real usage events against, refreshed daily. Spot an error? Tell us.
Price takeaways
- Input: Gemini 3.7 Flash is 3x cheaper.
- Output: Gemini 3.7 Flash is 2.7x cheaper.
- Cached input: Gemini 3.7 Flash is 17x cheaper.
- Ratios shift with workload shape — output-heavy traffic weights the output rate, cache-friendly traffic weights the cached rate. The calculator below does the arithmetic on your numbers.
Your workload on both
Your monthly workload
Cache hit rate = share of input tokens served from the provider's prompt cache, billed at the model's cached-input price. Estimates use standard per-token rates — batch discounts, service tiers, and long-context surcharges are not applied.
| Model | Input | Cached input | Output | Per request | Monthly |
|---|---|---|---|---|---|
| Gemini 3.7 Flashcheapest | $450 | $30.00 | $938 | $0.00283 | $1,418 |
| GPT-4o | $1,500 | $500 | $2,500 | $0.00900 | $4,500 |
Related comparisons
Switching models? Watch the bill move in real time.
Marginal prices every call against that day's rates, so an A/B between these two shows up as dollars per customer and feature — not a surprise at month end.