Gemini vs GPT: which API actually costs less in 2026?

Prices verified August 21, 2026 ยท USD per 1M tokens

The two most-compared API families are, at the flagship tier, priced identically on paper โ€” Gemini 3.1 Pro and GPT-5.6 Terra both list $2 input / $12 output. The real cost difference comes from the tiers around them, long-context behavior, and how much of your traffic caches.

Tier-by-tier comparison

TierGoogleIn / OutOpenAIIn / Out
Flagship+โ€”โ€”GPT-5.6 Sol$5 / $30
FlagshipGemini 3.1 Pro$2 / $12GPT-5.6 Terra$2 / $12
MidGemini 3 Flash$0.50 / $3GPT-5.4 mini$0.75 / $4.50
SmallGemini 3.5 Flash-Lite$0.30 / $2.50GPT-5.6 Luna$0.20 / $1.20
SmallestGemini 2.5 Flash-Lite$0.10 / $0.40GPT-5.4 nano$0.20 / $1.25

Read down the columns and a pattern appears: Google undercuts OpenAI at the mid and bottom tiers (Gemini 3 Flash beats GPT-5.4 mini; 2.5 Flash-Lite beats nano by 2โ€“3ร—), while OpenAI's Luna beats Google's newer Flash-Lite in the small tier. At the top, OpenAI sells headroom Google doesn't list a price for (Sol at $5/$30, GPT-5.5 Pro at $30/$180).

A worked example: chatbot workload

Take a support chatbot โ€” 2,000 input + 400 output tokens per request, 100K requests/month, 70% of input cached:

ModelMonthly costNotes
Gemini 3.1 Pro~$628identical math to Terra
GPT-5.6 Terra~$628identical math to 3.1 Pro
Gemini 3 Flash~$1574ร— cheaper than flagship
GPT-5.6 Luna~$63cheapest capable OpenAI tier
Gemini 2.5 Flash-Lite~$23cheapest overall

Same conversation, ~27ร— spread depending on tier choice. Both vendors bill cached input at ~10% of the input rate and both offer a 50% batch discount, so the discounts don't separate them โ€” tier selection does.

The two gotchas

Gemini's long-context surcharge: Pro tiers roughly double above 200K input tokens per request ($4/$18). OpenAI publishes no such surcharge. If you routinely stuff huge prompts, that flips the flagship comparison. OpenAI's small-tier output: Luna's $1.20 output undercuts Gemini's newer Flash-Lite ($2.50) โ€” for output-heavy small workloads OpenAI wins the tier Google usually wins.

Your ratio of input to output tokens decides most of this. Run your own numbers โ€” with the cache and batch sliders โ€” in the calculator, or see the Claude vs GPT comparison and the overall cheapest APIs ranking.

โ†’ What would YOUR workload cost?
Enter your token mix once โ€” compare all 28 models side by side, with caching and batch discounts.
Advertisement

Frequently asked questions

Is Gemini cheaper than GPT in 2026?
At the flagship tier they are identical on paper: Gemini 3.1 Pro and GPT-5.6 Terra both list $2 input / $12 output per million tokens. Differences appear in the budget tiers, long-context surcharges, and caching behavior.
What is the cheapest Gemini or GPT model?
Gemini 2.5 Flash-Lite at $0.10 / $0.40 per million tokens is cheaper than any OpenAI tier; OpenAI's smallest is GPT-5.6 Luna at $0.20 / $1.20 (August 2026).
Do Gemini and GPT both support prompt caching?
Yes. Both bill cache-hit input at roughly 10% of the standard input rate, and both offer a 50% batch-processing discount on asynchronous workloads.
Which is better for long documents?
Both offer 1M-token context windows. Gemini Pro tiers charge elevated rates above 200K input tokens per request (about double), while OpenAI does not publish a long-context surcharge โ€” worth modeling if your prompts are very large.