AI API Cost Calculator
Compare pricing across 39 models from 10 providers. Enter your usage below to see exactly what you'd pay — no signup required.
Cost Estimate
Based on published API pricing. Actual costs may vary.
See how prices have changed →Keyboard Shortcuts
How This Calculator Works
Enter your expected usage — tokens per request, requests per day, and days per month — and the calculator shows your estimated cost per request, cost per 1K requests, and monthly total for any of 39 LLM models across 10 providers. Use the "Typical request" presets to quickly see what common workloads cost. It also suggests the cheapest alternative if a cheaper model can handle your workload.
Supported Providers
- OpenAI: GPT-5.5, GPT-5.5 Pro, GPT-5.3 Codex, GPT-5, GPT-5 mini, GPT-4o, GPT-4o mini, GPT-oss 120B/20B
- Anthropic: Claude Opus 4.7, Claude 4 Opus, Claude Sonnet 4.6, Claude Sonnet 4, Claude Haiku 4.5
- Google: Gemini 3.1 Pro, Gemini 2.5 Pro, Gemini 2.0 Flash
- DeepSeek: V4 Pro, V4 Flash, V3
- Mistral: Large 3, Small 4
- Cohere: Command R+, Command R
- Meta (Together.ai): Llama 4 Scout, Llama 4 Maverick, Llama 3.1 70B, Llama 3.1 8B
- Moonshot: Kimi K2.6
- xAI: Grok 4.3, Grok Build 0.1
- AI21: Jamba 1.5 Large
Common Use Cases
Our calculator helps you estimate costs for:
- Chatbots and virtual assistants — typically 500-2000 input tokens, 200-800 output tokens per turn
- Code generation — 1000-5000 input tokens, 500-3000 output tokens per request
- Document analysis — 3000-10000 input tokens, 200-1000 output tokens per document
- Content generation — 500-2000 input tokens, 1000-4000 output tokens per article
Want to compare two models side by side?
Use the Comparison ToolTips to Reduce Your API Costs
The calculator often reveals that a cheaper model can handle your workload. Here are the biggest cost-saving strategies:
- Use budget models for simple tasks: GPT-4o mini ($0.15/$0.60) handles 80% of chatbot requests at 1/17th the cost of GPT-4o
- Optimize prompts: Shorter prompts = fewer input tokens = lower costs
- Set token limits: Don't let models generate 4000 tokens when 200 will do
- Cache responses: Identical prompts can be cached to eliminate redundant API calls
Read our full guide: How to Cut Your AI API Bill in Half: 10 Practical Tips
Related Tools
- Cost Health Check — 5-question assessment with personalized savings grade
- Cost Explorer — See all 39 models ranked by cost for your usage
- Token Cost Estimator — Quick cost lookup across all 39 models for any token count
- Model Comparison — Side-by-side model comparison tool
- Pricing Cheat Sheet — Printable reference with all model prices
- Model Selector Quiz — Answer 5 questions to find the right model
- API Cost Report Card — Grade your spending efficiency, get a shareable report
- Pricing Badges — Embeddable SVG badges for 39 models, copy-paste into READMEs and docs
- AI Stack Cost Optimizer — Find the cheapest model combination for your multi-feature app
- Startup Cost Planner — Budget your AI API spend from pre-seed to Series A
Get weekly AI pricing updates & cost-saving tips
Join 200+ developers optimizing their AI API spend. No spam, unsubscribe anytime.
Provider Calculators
- Cohere Cost Calculator — Command R+ & Command R pricing
- Moonshot Cost Calculator — Kimi K2.6 pricing
- Together.ai Cost Calculator — Llama 4 & Llama 3.1 pricing
Related Reading
- AI API Cost Per Request — The metric developers actually need for budgeting LLM costs
- The Complete Guide to LLM Cost Optimization — Strategies to cut your API spend by 40%+
- Cheapest LLM APIs in 2026 — Full ranking of every model by price
- LLM Pricing Cheat Sheet — Quick reference for all 39 models
- How to Estimate Your AI API Costs — Step-by-step cost planning guide
- AI API Cost Comparison Tool — Compare 39 models side by side to find the cheapest option
- May 2026 Pricing Shakeup — Latest price changes across providers
- Cheapest AI API in June 2026 — All 39 models ranked by cost with real scenarios
- AI API Pricing June 2026 — Complete guide to all 39 models, deprecation alerts, migration guide
- AI Startup API Budgets — 5 real budgets from $3/mo to $12K/mo with optimization tips
- Best AI APIs for Structured Output 2026 — JSON mode & function calling compared across 8 models
- Best AI APIs for Chatbots 2026 — All 39 models ranked by cost & quality for conversational AI
- Best AI APIs for RAG 2026 — Embedding + generation models ranked for retrieval-augmented generation
- Best AI APIs for Vision 2026 — Image understanding models ranked by cost & quality
- Best AI Embedding APIs 2026 — Embedding models ranked by MTEB scores & cost
- Best AI Speech APIs 2026 — TTS & STT models ranked by quality & cost
- AI API Cost for Food & Beverage — Restaurant and food production AI budgets
- AI API Cost for Travel & Tourism — Dynamic pricing, chatbots, and recommendation engines