Gemini · Mid-tier · 1,000K context window
$0.0340 per call at 5,000 input / 2,000 output tokens.
Per call
$0.0340
10K calls/mo
$340
Cache savings
75% off input
Batch savings
50% off all
Adjust token counts, volume, and discount toggles to model your bug detection spend. Pricing updated weekly.
Call Gemini 3.1 Pro with the Google Generative AI SDK:
import google.generativeai as genai
model = genai.GenerativeModel("gemini-3.1-pro")
response = model.generate_content("Your prompt here")
# Cost: ~$0.0340 per call at standard rates
# Input: $2.00/MTok
# Output: $12.00/MTokPer-call cost for all models scoring 50+ on bug detection benchmarks. Hover for details.
Cheapest viable option: Claude Sonnet 5 at $0.0300/call (12% less, 96/100 quality).
| Direction | $/MTok | Tokens per call |
|---|---|---|
| Input | $2.00 | 5,000 |
| Output | $12.00 | 2,000 |
Caching drops input cost from $2.00 to $0.50/MTok. For repeated system prompts, that saves $0.007500 per call.
Submit requests asynchronously and receive 50% off all token costs. This works best for offline pipelines where latency requirements are flexible.
| Monthly volume | Cost per call | Standard monthly | Cached monthly | You save with caching |
|---|---|---|---|---|
| 10,000 calls | $0.0340 | $340 | $265 | $75 |
| 50,000 calls | $0.0340 | $1,700 | $1,325 | $375 |
| 100,000 calls | $0.0340 | $3,400 | $2,650 | $750 |
| 500,000 calls | $0.0340 | $17,000 | $13,250 | $3,750 |
| 1,000,000 calls | $0.0340 | $34,000 | $26,500 | $7,500 |
Gemini 3.1 Pro is a solid pick for bug detection
Scores 84/100 (rank #4 of 14). Good balance of quality and cost for bug detection.
Top-ranked: Claude Sonnet 5 (96/100) at $0.0300/call
Gemini 3.1 Pro scores by task type. Bug Detection highlighted.
| Task type | Confidence score | Rank out of 14 |
|---|---|---|
| Reasoning | 90/100 | #4 |
| Summarization | 87/100 | #4 |
| Q&A | 87/100 | #4 |
| Code Generation | 86/100 | #5 |
| Classification | 86/100 | #3 |
| Extraction | 85/100 | #4 |
| Code Review(current page) | 84/100 | #4 |
| Creative Writing | 84/100 | #4 |
8 models score 80+ on bug detection benchmarks, sorted by input rate. Cheapest: Claude Sonnet 5 (12% less, 96/100 quality).
| Model | Provider | Input $/MTok | Output $/MTok | Quality | Per call | vs Gemini |
|---|---|---|---|---|---|---|
| Claude Sonnet 5 | Claude | $2.00 | $10.00 | 96/100 | $0.0300 | 12% cheaper |
| GPT 5.4 | GPT | $2.50 | $15.00 | 82/100 | $0.0425 | 25% more |
| GPT 5.6 Terra | GPT | $2.50 | $15.00 | 84/100 | $0.0425 | 25% more |
| Claude Sonnet 4.6 | Claude | $3.00 | $15.00 | 95/100 | $0.0450 | 32% more |
| Claude Opus 4.8 | Claude | $5.00 | $25.00 | 94/100 | $0.0750 | 121% more |
| GPT 5.5 | GPT | $5.00 | $30.00 | 90/100 | $0.0850 | 150% more |
| GPT 5.6 Sol | GPT | $5.00 | $30.00 | 92/100 | $0.0850 | 150% more |
| Claude Fable 5 | Claude | $10.00 | $50.00 | 95/100 | $0.1500 | 341% more |
Provider
Gemini
Tier
Mid-tier
Context
1,000K tokens
Released
Apr 2026
| Model | Tier | Input $/MTok | Output $/MTok | Context |
|---|---|---|---|---|
| Gemini 3.5 Flash | Fast / Budget | $1.50 | $9.00 | 1,000K |
| Gemini 3 Flash | Fast / Budget | $0.50 | $3.00 | 1,000K |
| Gemini 3.5 Flash-Lite | Fast / Budget | $0.25 | $1.50 | 1,000K |
You can compare Gemini 3.1 Pro head-to-head against any other model on our model comparison pages, or track how pricing has changed over time on the pricing history tracker.
See how Gemini 3.1 Pro costs change across different workload types.
Code Generation
$0.0520/call
Unit Test Generation
$0.0660/call
SQL Generation
$0.0150/call
API Generation
$0.0780/call
Code Refactoring
$0.0560/call
Code Review
$0.0340/call
PR Review
$0.0520/call
Security Review
$0.0420/call
Document Summarization
$0.0320/call
PDF Summarization
$0.0480/call
Meeting Notes
$0.0400/call
Email Summarization
$0.0120/call
Chatbot
$0.0160/call
RAG Pipeline
$0.0300/call
Customer Support Bot
$0.0180/call
FAQ Bot
$0.0126/call
Data Extraction
$0.0200/call
JSON Extraction
$0.0156/call
Invoice Parsing
$0.0112/call
Resume Parsing
$0.0146/call
Chain of Thought
$0.0660/call
Legal Analysis
$0.0680/call
Math Reasoning
$0.0390/call
Financial Analysis
$0.0640/call
Content Moderation
$0.002200/call
Sentiment Analysis
$0.002200/call
Categorization
$0.003400/call
Intent Detection
$0.001800/call
Copywriting
$0.0250/call
Blog Writing
$0.0980/call
Marketing Copy
$0.0376/call
Product Descriptions
$0.0190/call
$0.0340 per call at 5,000 input / 2,000 output tokens.
Scores 84/100, rank #4 of 14 models. Top-ranked: Claude Sonnet 5 at 96/100.
Claude Sonnet 5 scores 96/100 quality at $2.00/$10.00 per MTok. That is 12% less than Gemini 3.1 Pro per call.
Three strategies: prompt caching (75% off input), batch API (50% off all tokens), prompt optimization. Combined: $0.0340 drops to about $0.004250 per call.
Gemini also offers: Gemini 3.5 Flash at $1.50/$9.00, Gemini 3 Flash at $0.50/$3.00, Gemini 3.5 Flash-Lite at $0.25/$1.50.
1,000K tokens total. Typical bug detection calls use 5,000 plus 2,000 tokens, well within limits.
This calculator estimates costs based on published rates only. Connect your API usage to see where your money goes and which models drive your spend.