Gemini 3.1 Pro API pricing
Google model
Short answer
Gemini 3.1 Pro by Google costs $2 per 1M input tokens and $12 per 1M output tokens, with a 1M token context window. It scores 78.8% on SWE-bench Verified and 77.1% on ARC-AGI-2. GLM-5.3 Flash scores about as well on SWE-bench Verified (92%) for $0.24 per 1M blended tokens versus $4.50.
Prices updated Oct 23, 2026 (APIpulse, CC BY 4.0) · Benchmarks: ARC Prize, Vals.ai · all models
API cost calculator
Enter your monthly usage in millions of tokens (1M tokens ≈ 750,000 words).
Standard rates; batch processing and prompt caching can lower the bill.
Benchmarks
Cheaper models with similar scores
Within 3 points on the same benchmark, at a lower blended price.
- GLM-5.3 FlashSWE-bench Verified 92% · $0.24 / 1M
- DeepSeek V4.1 FlashARC-AGI-2 78.1% · $0.26 / 1M
- GPT-5.6 LunaSWE-bench Verified 93% · $0.45 / 1M
Other Google models
| Model | Input / 1M | Output / 1M |
|---|---|---|
| Gemini 4 Argon | $2 | $10 |
| Gemini 3.8 Flash | $0.75 | $3.75 |
| Gemini 3.6 Flash | $0.75 | $3.75 |
| Gemini 3.5 Transcribe Live | $3.50 | $21 |
| Gemini 3.5 Transcribe | $2 | $12 |
| Gemini 3.5 Flash-Lite | $0.30 | $2.50 |
| Gemini 3.1 Flash-Lite | $0.25 | $1.50 |
| Nano Banana Pro (Gemini 3 Pro Image) | $2 | $12 |
Frequently asked questions
How much does the Gemini 3.1 Pro API cost?
Gemini 3.1 Pro costs $2 per 1M input tokens and $12 per 1M output tokens. A workload of 10M input and 2M output tokens a month costs $44.
What is the context window of Gemini 3.1 Pro?
Gemini 3.1 Pro supports a 1M token context window.
Is there a cheaper alternative to Gemini 3.1 Pro?
GLM-5.3 Flash scores 92% on SWE-bench Verified, close to Gemini 3.1 Pro, at $0.24 per 1M blended tokens versus $4.50.