Compare AI API costs across providers
AI API cost calculator — compare LLM pricing by workload
Estimate monthly AI API spend for 63 models across 11 providers — OpenAI GPT, Anthropic Claude, Google Gemini, Mistral, Cohere, xAI, Perplexity, DeepSeek, AWS Bedrock, Azure OpenAI, and Vertex AI. One workload baseline, cache-aware token math, OpenAI API cost per month estimates, and Claude vs Gemini comparisons — pricing updated Jul 2026.
Calculator
Start here
Step 1
Describe your workload
Start with a preset or dial in your own numbers.
1K messages / mo
1K tokens avg
Per message: 750 in · 250 out · 338 cached
Step 2
Estimated monthly spend
$67.50
Rank #63 of 63 · save $67.44/mo vs #1
High-quality reasoning agents and premium customer support flows.
Step 3
Compare all models
63 models priced for your workload
Best value
How costs are calculated
Prices from ai-provider-pricing-validated.json, validated Jul 2026. Confirm on official provider pages before billing decisions.
Model Cost Comparison · Built by Lazige · Methodology
Explore AI API pricing guides
Provider pages, head-to-head comparisons, and workload-specific calculators — all using the same live pricing dataset as the main tool.
Coverage
11 AI API providers, 63 priced models
Compare OpenAI GPT, Anthropic Claude, Google Gemini, Mistral, Cohere, xAI Grok, Perplexity Sonar, DeepSeek, AWS Bedrock, Azure OpenAI, and Vertex AI on the same workload. Pricing reference updated Jul 2026. Use the calculator above for monthly estimates; this section is a crawlable rate index for search engines and AI assistants.
Structured dataset: ai-provider-pricing-validated.json · Methodology: AI API pricing validation pipeline · Long-form article
Reference rates
LLM API pricing per million tokens (USD)
Official-style input, cached-input, and output rates used by the calculator. Monthly spend depends on your message volume, average tokens per message, and cache hit rate — not headline list prices alone.
| Model | Provider | Input / MTok | Cached / MTok | Output / MTok |
|---|---|---|---|---|
| Claude Haiku 3.5 | Anthropic | $0.80 | $0.08 | $4.00 |
| Claude Haiku 4.5 | Anthropic | $1.00 | $0.10 | $5.00 |
| Claude Opus 4 | Anthropic | $15.00 | $1.50 | $75.00 |
| Claude Opus 4.1 | Anthropic | $15.00 | $1.50 | $75.00 |
| Claude Opus 4.5 | Anthropic | $5.00 | $0.50 | $25.00 |
| Claude Opus 4.6 | Anthropic | $5.00 | $0.50 | $25.00 |
| Claude Opus 4.7 | Anthropic | $5.00 | — | $25.00 |
| Claude Sonnet 3.7 | Anthropic | $3.00 | $0.30 | $15.00 |
| Claude Sonnet 4 | Anthropic | $3.00 | $0.30 | $15.00 |
| Claude Sonnet 4.5 | Anthropic | $3.00 | $0.30 | $15.00 |
| Claude Sonnet 4.6 | Anthropic | $3.00 | $0.30 | $15.00 |
| Amazon Nova Lite | AWS Bedrock | $0.06 | — | $0.24 |
| Amazon Nova Micro | AWS Bedrock | $0.04 | — | $0.14 |
| Amazon Nova Pro | AWS Bedrock | $0.80 | — | $3.20 |
| Amazon Nova Pro (Latency Optimized) | AWS Bedrock | $1.00 | — | $4.00 |
| GPT-5 Codex Global | Azure OpenAI | $1.25 | $0.13 | $10.00 |
| GPT-5-mini Global | Azure OpenAI | $0.25 | $0.03 | $2.00 |
| Command A | Cohere | $2.50 | — | $10.00 |
| Command R | Cohere | $0.04 | — | $0.15 |
| Command R+ | Cohere | $2.50 | — | $10.00 |
| DeepSeek V4 Flash | DeepSeek | $0.08 | — | $0.15 |
| DeepSeek V4 Pro | DeepSeek | $0.43 | — | $0.87 |
| deepseek-chat | DeepSeek | $0.20 | $0.05 | $0.80 |
| deepseek-reasoner | DeepSeek | $0.55 | $0.14 | $2.19 |
| Gemini 2.0 Flash (batch) | Google Gemini | $0.05 | $0.03 | $0.20 |
| Gemini 2.0 Flash (standard) | Google Gemini | $0.07 | $0.02 | $0.30 |
| Gemini 2.0 Flash-Lite (batch) | Google Gemini | $0.04 | — | $0.15 |
| Gemini 2.0 Flash-Lite (standard) | Google Gemini | $0.07 | — | $0.30 |
| Gemini 2.5 Flash (standard) | Google Gemini | $0.30 | $0.06 | $2.50 |
| Gemini 2.5 Flash-Lite (batch) | Google Gemini | $0.05 | $0.01 | $0.20 |
| Gemini 2.5 Flash-Lite (standard) | Google Gemini | $0.10 | $0.01 | $0.40 |
| Gemini 2.5 Pro (batch) | Google Gemini | $0.63 | $0.13 | $5.00 |
| Gemini 2.5 Pro (standard) | Google Gemini | $1.25 | $0.13 | $10.00 |
| Magistral Medium 1.2 | Mistral | $2.00 | — | $5.00 |
| Ministral 3 14B | Mistral | $0.20 | — | $0.20 |
| Ministral 3 3B | Mistral | $0.10 | — | $0.10 |
| Mistral Large 2.1 | Mistral | $2.00 | — | $6.00 |
| Mistral Large 3 | Mistral | $2.00 | — | $6.00 |
| Mistral Medium 3.1 | Mistral | $0.40 | — | $2.00 |
| Mistral Small 3.2 | Mistral | $0.07 | — | $0.20 |
| Mistral Small Creative | Mistral | $0.10 | — | $0.30 |
| GPT-5.4 | OpenAI | $2.50 | $0.25 | $15.00 |
| GPT-5.4 mini | OpenAI | $0.75 | $0.07 | $4.50 |
| GPT-5.4 nano | OpenAI | $0.20 | $0.02 | $1.25 |
| GPT-5.5 | OpenAI | $5.00 | — | $30.00 |
| GPT-5.5 Pro | OpenAI | $30.00 | — | $180.00 |
| Sonar | Perplexity | $1.00 | $0.06 | $1.00 |
| Sonar Deep Research | Perplexity | $2.00 | — | $8.00 |
| Sonar Pro | Perplexity | $3.00 | — | $15.00 |
| Sonar Reasoning Pro | Perplexity | $2.00 | — | $8.00 |
| Gemini 2.5 Flash (flex batch) | Vertex AI | $0.15 | — | $1.25 |
| Gemini 2.5 Flash (priority) | Vertex AI | $0.54 | $0.05 | $4.50 |
| Gemini 2.5 Flash (standard) | Vertex AI | $0.30 | $0.03 | $2.50 |
| Gemini 2.5 Flash Lite (priority) | Vertex AI | $0.18 | $0.02 | $0.72 |
| Gemini 2.5 Flash Lite (standard) | Vertex AI | $0.10 | $0.01 | $0.40 |
| Gemini 2.5 Pro (flex batch) | Vertex AI | $0.63 | — | $5.00 |
| Gemini 2.5 Pro (priority) | Vertex AI | $2.25 | $0.23 | $18.00 |
| Gemini 2.5 Pro (standard) | Vertex AI | $1.25 | $0.13 | $10.00 |
| Grok 4.1 Fast Non-Reasoning | xAI | $0.20 | — | $0.50 |
| Grok 4.1 Fast Reasoning | xAI | $0.20 | — | $0.50 |
| Grok 4.20 Non-Reasoning | xAI | $1.25 | — | $2.50 |
| Grok 4.20 Reasoning | xAI | $1.25 | — | $2.50 |
| Grok 4.3 | xAI | $1.25 | — | $2.50 |
Explore AI API pricing guides
Provider pages, head-to-head comparisons, and workload-specific calculators — all using the same live pricing dataset as the main tool.
How it works
Four steps to compare AI model API cost
Need more detail on presets, token mix, and reading the ranking table? Read the full how-to guide →
- 01
Set your workload
Pick a preset (support bot, code assistant, RAG, or agent) or enter messages per month and average tokens per message.
- 02
Review the live estimate
See estimated monthly spend, token breakdown, and rank for the selected model against the full list.
- 03
Compare every model
Browse the ranked comparison table and top picks to find the lowest-cost model for the same workload.
- 04
Fine-tune token mix
Adjust input vs output ratio and cached-input percentage under Advanced token mix for RAG and agent workloads.
Use cases
Common workload patterns teams model here
Illustrative scenarios — not customer testimonials. Each card shows how a typical team shape (support bot, RAG, code assistant, or agent) maps to the calculator presets.
“A support-bot preset with 50k messages/month surfaced three budget models in one pass — faster than copying rates from five pricing pages.”
“Raising the cached-input slider made our RAG estimate realistic. We moved retrieval-heavy traffic to a cheaper model without changing reply quality.”
“PMs use the embed on internal docs to sanity-check model spend before vendor requests — everyone shares the same workload baseline.”
“Before scaling an agent workflow, comparing monthly cost across every provider for the same token mix avoided over-provisioning on day one.”
“Finance teams grasp token mix faster with one screenshot from the ranking table — useful when justifying a move off a default premium model.”
“Quarterly Bedrock vs Vertex vs direct API reviews start here — normalize the math before opening vendor spreadsheets.”
“The code-assistant preset was a realistic starting point for a copilot MVP; we adjusted tokens after a pilot week and stayed within 10% of the estimate.”
“Gemini Flash placed top three for our exact cache ratio on a high-volume FAQ bot — easy to miss in a static pricing table.”
FAQ
AI API pricing — common questions
need help choosing models?
Lazige helps teams design model routing, caching, and cost controls.
Scale AI products without billing surprises — from experimentation to production.