AI API Cost Calculator

Compare pricing across 42 models from 10 providers. Enter your usage below to see exactly what you'd pay — no signup required.

Typical request:
By volume:
API mode:

Cost Estimate

Cost per request $0.0000
Cost per 1K requests $0.00
Input cost (monthly) $0.00
Output cost (monthly) $0.00
Total tokens/month 0
Monthly Total $0.00

💡 Optimization Tips

🔄 Model Routing
Use cheaper models for 80% of tasks, premium only for complex reasoning…
Route simple queries to GPT-5 mini ($0.25/$2.00) and reserve Opus 4.8 ($5/$25) for complex tasks. Most teams save 60-70% with this strategy. Pro includes a personalized routing guide for your workload.
📦 Batch Processing
Combine multiple API calls into batch requests to reduce overhead…
Batch API calls reduce per-request overhead by 30-50%. Group similar tasks, use async processing, and implement request queuing. Pro shows exact batch sizes for your usage pattern.
💾 Response Caching
Cache common API responses to avoid redundant calls…
Implement semantic caching for repeated queries. Even 20% cache hit rate cuts costs significantly. Use embeddings-based similarity matching for fuzzy cache hits. Pro includes a caching implementation guide.

These are just 3 of 12 strategies. Pro users save an average of 40% on API costs.

Share your cost card →

Based on published API pricing. Actual costs may vary.

See how prices have changed →
1-5 request types · 6-8 volume · C copy · ? shortcuts

Keyboard Shortcuts

Chat message preset 1
Code generation preset 2
Document analysis preset 3
RAG query preset 4
Content writer preset 5
Startup volume (1K/day) 6
Scale-up volume (10K/day) 7
Enterprise volume (100K/day) 8
Copy results to clipboard C
Show this help ?
Close dialog / blur input Esc

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 42 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

Common Use Cases

Our calculator helps you estimate costs for:

Want to compare two models side by side?

Use the Comparison Tool

Tips to Reduce Your API Costs

The calculator often reveals that a cheaper model can handle your workload. Here are the biggest cost-saving strategies:

Read our full guide: How to Cut Your AI API Bill in Half: 10 Practical Tips

Related Tools

Get weekly AI pricing updates & cost-saving tips

Join 200+ developers optimizing their AI API spend. No spam, unsubscribe anytime.

Provider Calculators

Related Reading

Related Tools

📊 Live Pricing Dashboard AI Feature Cost Estimator AI Project Budget Planner API Cost Report Card 📊 Cost Report Generator