AI Model Cost Calculator
NEWCompare estimated API costs across hundreds of AI models from OpenAI, Anthropic, Google, xAI, DeepSeek, Mistral, Meta, Alibaba Qwen, Z.ai GLM and Moonshot Kimi with prompt caching, batch rates, long-context tiers and growth projections.
Loading verified AI model pricing catalog...
Could not load the AI model pricing catalog
Check your connection and retry. Calculations run entirely in your browser once pricing data loads.
Cost comparison stage
Cost visualizations
Model catalog
AI model comparison table
Compare on
Variant A and variant B: cost comparison
Pricing snapshot
Verified
1035 models across 19 providers synced 2026-12-05.
Direct vs inference API
USD / 1M
Same models served via direct provider APIs and third-party inference clouds carry separate rows and rates.
Strict pricing integrity
Strict
Missing rates are never invented or treated as zero. Models without verified advanced-mode rates show an explicit state.
Daily sync notice
Daily sync
Token rates change frequently. Treat estimates as a daily snapshot and verify exact same-day pricing directly with each provider.
Local-only execution
Local-only
All cost calculations, saved scenarios, and CSV/JSON exports run in your browser with no API keys or backend storage.
Found a bug or missing something? Write to us
Scope and limits
Synchronized daily, calculated locally, never guessed
Verified multi-source catalog with transparent limitations
Pricing is synchronized daily from models.dev and LiteLLM with official provider documentation links. Missing prices or unverified batch, tier, and cache rates are never assumed to be zero.
Help
FAQ
Where does the AI model pricing data come from?
The catalog is synchronized daily from models.dev and BerriAI/litellm and cross-checked against official provider pricing pages. Each model row displays its source link, last verified date, and whether pricing comes from a direct provider API or a third-party inference platform.
How are prompt caching, batch API, and long-context pricing handled?
Provider-specific adapters apply verified cache read and write rates (including Anthropic 5-minute and 1-hour cache TTLs and minimum token thresholds), verified Batch/Flex/Priority tier rates, and long-context threshold uplifts. When a model lacks verified pricing for an enabled mode, it is explicitly marked unsupported or incomplete instead of showing a guessed total.
How are reasoning tokens billed?
When a model defines a dedicated verified reasoning token rate, the calculator applies it. For providers such as OpenAI, Anthropic, Google, and xAI that bill internal reasoning or thinking tokens at the output token rate, reasoning tokens are billed at the active output rate and noted in the row assumptions.
Does this calculator require an API key or send my inputs to a server?
No. All calculations, filtering, sorting, chart rendering, saved scenarios, and CSV/JSON exports execute entirely in your browser. Share links store only your non-sensitive workload parameters in the URL query string.
Why is the lowest-cost model not automatically the best choice?
Token price is only one dimension of model selection. Quality, reasoning accuracy, latency, rate limits, data residency, and tool-calling reliability vary significantly across models and providers.
How are monthly and annual projections calculated?
Daily volume converts to a 30-day billing month and 365-day flat year. When monthly usage growth is non-zero, the annual estimate sums 12 compounding monthly totals so teams can plan scaling budgets accurately.



