StackPricing
All AI models

AI model APIs · head-to-head

Claude Opus 4.8 vs Gemini 3.1 Pro

Same usage, official rates, ranked by nothing but price. Both rate cards, the monthly bill at five workloads, and the exact usage mix where the answer flips.

The pricing verdict Gemini 3.1 Pro is cheaper than Claude Opus 4.8 at every input:output mix — there is no usage pattern where Claude Opus 4.8 costs less.

Rate cards

Per 1M tokens Claude Opus 4.8 Gemini 3.1 Pro
Input $5 $2
Cached input $0.50 $0.20
Output $25 $12
Context window 1M

Monthly cost at five workloads

Workload Tokens / month Claude Opus 4.8 Gemini 3.1 Pro
Prototype 1M in · 0.3M out $12.5 $5.60
Small app 10M in · 3M out $125 $56
Production app 50M in · 15M out $625 $280
High volume 200M in · 60M out $2,500 $1,120
Heavy platform 1B in · 300M out $12,500 $5,600

Standard on-demand rates from each provider's official pricing page, verified July 2026; figures exclude caching and batch discounts and any long-context surcharges. Claude Opus 4.8: Cached-input reads bill at ~10% of the input rate. Gemini 3.1 Pro: Rates shown are for prompts ≤200k tokens; above 200k, input doubles to $4 and output rises to $18 per 1M. Batch runs at 50%. Price is one input — quality, latency and context limits differ. Confirm live pricing before committing.

Price both at your exact usage Claude Opus 4.8 pricing Gemini 3.1 Pro pricing