Gemini · Fast / Budget · 1,000K context window
$0.008250 per call at 3,000 input / 5,000 output tokens.
Per call
$0.008250
10K calls/mo
$82.5
Cache savings
75% off input
Batch savings
50% off all
Adjust token counts, volume, and discount toggles to model your unit test generation spend. Pricing updated weekly.
Call Gemini 3.5 Flash-Lite with the Google Generative AI SDK:
import google.generativeai as genai
model = genai.GenerativeModel("gemini-3.5-flash-lite")
response = model.generate_content("Your prompt here")
# Cost: ~$0.008250 per call at standard rates
# Input: $0.25/MTok
# Output: $1.50/MTokPer-call cost for all models scoring 50+ on unit test generation benchmarks. Hover for details.
Cheapest viable option: Claude Sonnet 5 at $0.0560/call (-579% less, 93/100 quality).
| Direction | $/MTok | Tokens per call |
|---|---|---|
| Input | $0.25 | 3,000 |
| Output | $1.50 | 5,000 |
Caching drops input cost from $0.25 to $0.06/MTok. For repeated system prompts, that saves $0.000563 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.008250 | $82.5 | $76.88 | $5.63 |
| 50,000 calls | $0.008250 | $412.5 | $384.38 | $28.13 |
| 100,000 calls | $0.008250 | $825 | $768.75 | $56.25 |
| 500,000 calls | $0.008250 | $4,125 | $3,843.75 | $281.25 |
| 1,000,000 calls | $0.008250 | $8,250 | $7,687.5 | $562.5 |
Consider alternatives for unit test generation
Scores 55/100 (rank #8 of 14). Better options exist at similar price points for unit test generation.
Top-ranked: Claude Fable 5 (96/100) at $0.2800/call
Gemini 3.5 Flash-Lite scores by task type. Unit Test Generation highlighted.
| Task type | Confidence score | Rank out of 14 |
|---|---|---|
| Classification | 85/100 | #4 |
| Extraction | 83/100 | #5 |
| Summarization | 79/100 | #6 |
| Q&A | 78/100 | #6 |
| Code Generation(current page) | 55/100 | #8 |
| Code Review | 52/100 | #8 |
| Reasoning | 50/100 | #8 |
| Creative Writing | 45/100 | #9 |
9 models score 80+ on unit test generation benchmarks, sorted by input rate. Cheapest: Claude Sonnet 5 (-579% less, 93/100 quality).
| Model | Provider | Input $/MTok | Output $/MTok | Quality | Per call | vs Gemini |
|---|---|---|---|---|---|---|
| Claude Sonnet 5 | Claude | $2.00 | $10.00 | 93/100 | $0.0560 | 579% more |
| Gemini 3.1 Pro | Gemini | $2.00 | $12.00 | 86/100 | $0.0660 | 700% more |
| GPT 5.4 | GPT | $2.50 | $15.00 | 84/100 | $0.0825 | 900% more |
| GPT 5.6 Terra | GPT | $2.50 | $15.00 | 86/100 | $0.0825 | 900% more |
| Claude Sonnet 4.6 | Claude | $3.00 | $15.00 | 92/100 | $0.0840 | 918% more |
| Claude Opus 4.8 | Claude | $5.00 | $25.00 | 95/100 | $0.1400 | 1597% more |
| GPT 5.5 | GPT | $5.00 | $30.00 | 91/100 | $0.1650 | 1900% more |
| GPT 5.6 Sol | GPT | $5.00 | $30.00 | 94/100 | $0.1650 | 1900% more |
| Claude Fable 5 | Claude | $10.00 | $50.00 | 96/100 | $0.2800 | 3294% more |
Provider
Gemini
Tier
Fast / Budget
Context
1,000K tokens
Released
Jun 2026
| Model | Tier | Input $/MTok | Output $/MTok | Context |
|---|---|---|---|---|
| Gemini 3.1 Pro | Mid-tier | $2.00 | $12.00 | 1,000K |
| Gemini 3.5 Flash | Fast / Budget | $1.50 | $9.00 | 1,000K |
| Gemini 3 Flash | Fast / Budget | $0.50 | $3.00 | 1,000K |
You can compare Gemini 3.5 Flash-Lite 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.5 Flash-Lite costs change across different workload types.
Code Generation
$0.006500/call
SQL Generation
$0.001875/call
API Generation
$0.009750/call
Code Refactoring
$0.007000/call
Code Review
$0.004250/call
PR Review
$0.006500/call
Security Review
$0.005250/call
Bug Detection
$0.004250/call
Document Summarization
$0.004000/call
PDF Summarization
$0.006000/call
Meeting Notes
$0.005000/call
Email Summarization
$0.001500/call
Chatbot
$0.002000/call
RAG Pipeline
$0.003750/call
Customer Support Bot
$0.002250/call
FAQ Bot
$0.001575/call
Data Extraction
$0.002500/call
JSON Extraction
$0.001950/call
Invoice Parsing
$0.001400/call
Resume Parsing
$0.001825/call
Chain of Thought
$0.008250/call
Legal Analysis
$0.008500/call
Math Reasoning
$0.004875/call
Financial Analysis
$0.008000/call
Content Moderation
$0.000275/call
Sentiment Analysis
$0.000275/call
Categorization
$0.000425/call
Intent Detection
$0.000225/call
Copywriting
$0.003125/call
Blog Writing
$0.0123/call
Marketing Copy
$0.004700/call
Product Descriptions
$0.002375/call
$0.008250 per call at 3,000 input / 5,000 output tokens.
Scores 55/100, rank #8 of 14 models. Top-ranked: Claude Fable 5 at 96/100.
Claude Sonnet 5 scores 93/100 quality at $2.00/$10.00 per MTok. That is -579% less than Gemini 3.5 Flash-Lite per call.
Three strategies: prompt caching (75% off input), batch API (50% off all tokens), prompt optimization. Combined: $0.008250 drops to about $0.001031 per call.
Gemini also offers: Gemini 3.1 Pro at $2.00/$12.00, Gemini 3.5 Flash at $1.50/$9.00, Gemini 3 Flash at $0.50/$3.00.
1,000K tokens total. Typical unit test generation calls use 3,000 plus 5,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.