Claude vs Gemini API Pricing
Compare current Claude and Gemini API prices to evaluate token-cost and context-window tradeoffs for your workload.
Quick overview
The cheaper option depends on selected models, your input/output token mix, and context-window requirements.
Cheapest current Anthropic model
Claude Haiku 4.5
Largest context window
1M
Cheapest current Google model
Gemini 2.5 Flash-Lite
Largest context window
1.05M
Anthropic
- Current models: 7
- Cheapest current model: Claude Haiku 4.5
- Lowest input / 1M: $1.0000
- Lowest output / 1M: $5.0000
- Largest context window: 1M
- Current models: 6
- Cheapest current model: Gemini 2.5 Flash-Lite
- Lowest input / 1M: $0.1000
- Lowest output / 1M: $0.4000
- Largest context window: 1.05M
Current model pricing
| Provider | Model | Input / 1M | Output / 1M | Context window | Status | Source |
|---|---|---|---|---|---|---|
| Gemini 2.5 Flash-Lite | $0.1000 | $0.4000 | 1,048,576 | CURRENT | Source | |
| Gemini 3.1 Flash-Lite | $0.2500 | $1.5000 | 1,048,576 | CURRENT | Source | |
| Gemini 2.5 Flash | $0.3000 | $2.5000 | 1,048,576 | CURRENT | Source | |
| Anthropic | Claude Haiku 4.5 | $1.0000 | $5.0000 | 200,000 | CURRENT | Source |
| Gemini 2.5 Pro | $1.2500 | $10.0000 | 1,048,576 | CURRENT | Source | |
| Gemini 3.5 Flash | $1.5000 | $9.0000 | 1,048,576 | CURRENT | Source | |
| Gemini 3.1 Pro | $2.0000 | $12.0000 | 1,048,576 | CURRENT | Source | |
| Anthropic | Claude Sonnet 4.5 | $3.0000 | $15.0000 | 1,000,000 | CURRENT | Source |
| Anthropic | Claude Sonnet 4.6 | $3.0000 | $15.0000 | 1,000,000 | CURRENT | Source |
| Anthropic | Claude Opus 4.5 | $5.0000 | $25.0000 | 200,000 | CURRENT | Source |
| Anthropic | Claude Opus 4.6 | $5.0000 | $25.0000 | 1,000,000 | CURRENT | Source |
| Anthropic | Claude Opus 4.7 | $5.0000 | $25.0000 | 1,000,000 | CURRENT | Source |
| Anthropic | Claude Opus 4.1 | $15.0000 | $75.0000 | 200,000 | CURRENT | Source |
Example cost comparison
| Scenario | Provider | Reference model | Estimated cost |
|---|---|---|---|
| 1K input + 1K output | Anthropic | Claude Haiku 4.5 | $0.0060 |
| 1K input + 1K output | Gemini 2.5 Flash-Lite | $0.0005 | |
| 10K input + 1K output | Anthropic | Claude Haiku 4.5 | $0.0150 |
| 10K input + 1K output | Gemini 2.5 Flash-Lite | $0.0014 | |
| 100K input + 5K output | Anthropic | Claude Haiku 4.5 | $0.1250 |
| 100K input + 5K output | Gemini 2.5 Flash-Lite | $0.0120 | |
| 1M input + 1M output | Anthropic | Claude Haiku 4.5 | $6.0000 |
| 1M input + 1M output | Gemini 2.5 Flash-Lite | $0.5000 |
Input price comparison
- Anthropic: lowest $1.0000, highest $15.0000
- Google: lowest $0.1000, highest $2.0000
Output price comparison
- Anthropic: lowest $5.0000, highest $75.0000
- Google: lowest $0.4000, highest $12.0000
Context window comparison
Anthropic largest context: 1M
Cheapest current model ≥100K: Claude Haiku 4.5
Cheapest current model ≥1M: Claude Sonnet 4.5
Google largest context: 1.05M
Cheapest current model ≥100K: Gemini 2.5 Flash-Lite
Cheapest current model ≥1M: Gemini 2.5 Flash-Lite
Which provider should you consider?
Consider Claude for long-form writing and document-heavy output needs. Consider Gemini when long context and Google model options are important.
Compare with your own token usage
Open the calculator with these providers selected, then enter your expected input and output tokens.
Open calculatorFAQ
Is Anthropic or Google cheaper?
It depends on the specific model pair and your input/output token mix.
Why do input and output token prices differ?
Providers often price generated tokens differently from prompt tokens per model.
Which provider has the larger context window?
Use the context window comparison section to check current largest windows.
Can I compare these providers with other LLM APIs?
Yes. Open the full calculator and enable additional providers.
How do I calculate cost for my own token usage?
Open the calculator CTA and enter your projected input and output token totals.
Hosting your AI app?
After comparing API costs, the next cost factor is where your app runs. DigitalOcean can be a simple option for hosting prototypes, API backends, workers, databases, and Laravel apps.
Explore DigitalOcean →This link is an affiliate link. This means that, at zero cost to you, we earn commissions when you shop through the link.