Developer Tool
AI Stack Cost Calculator
Estimate monthly API costs using your expected token volumes. This calculator uses stored example rates. Check current provider prices and model availability before budgeting.
Configure Your Workload
= 1,000,000 tokens
= 500,000 tokens
Estimated Monthly Cost
Cheapest to most expensive
You save $10.41 vs Claude Sonnet 4.6
Best Value
Groq
Llama 3 8B
$0.09
/ month
Input Cost (1M)
$0.050
Output Cost (1M)
$0.080
Mistral
Ministral 8B
$0.15
/ month
Input Cost (1M)
$0.100
Output Cost (1M)
$0.100
Google
Gemini 1.5 Flash
$0.22
/ month
Input Cost (1M)
$0.075
Output Cost (1M)
$0.300
OpenAI
GPT-4o Mini
$0.45
/ month
Input Cost (1M)
$0.150
Output Cost (1M)
$0.600
DeepSeek
DeepSeek V3
$0.45
/ month
Input Cost (1M)
$0.150
Output Cost (1M)
$0.600
Cohere
Command R
$0.45
/ month
Input Cost (1M)
$0.150
Output Cost (1M)
$0.600
Anthropic
Claude Haiku 4.5
$0.88
/ month
Input Cost (1M)
$0.250
Output Cost (1M)
$1.250
Groq
Llama 3 70B
$0.99
/ month
Input Cost (1M)
$0.590
Output Cost (1M)
$0.790
Mistral
Mistral Medium 3
$1.40
/ month
Input Cost (1M)
$0.400
Output Cost (1M)
$2.000
DeepSeek
DeepSeek R1
$1.65
/ month
Input Cost (1M)
$0.550
Output Cost (1M)
$2.190
Google
Gemini 1.5 Pro
$3.75
/ month
Input Cost (1M)
$1.250
Output Cost (1M)
$5.000
Mistral
Mistral Large 3
$5.00
/ month
Input Cost (1M)
$2.000
Output Cost (1M)
$6.000
OpenAI
GPT-4o
$7.50
/ month
Input Cost (1M)
$2.500
Output Cost (1M)
$10.000
Cohere
Command R+
$7.50
/ month
Input Cost (1M)
$2.500
Output Cost (1M)
$10.000
Anthropic
Claude Sonnet 4.6
$10.50
/ month
Input Cost (1M)
$3.000
Output Cost (1M)
$15.000
Hobby tier — free tools may cover this
Why Compare AI API Costs?
Compare providers using the same number of requests and the same input and output token volumes. If your workflow retries calls or uses several model steps per request, include those calls in the estimate.
Minimize Cost with Local LLMs
If your calculator results are too high, consider switching privacy-sensitive or high-volume tasks to local models like Ollama.
View Local Setup Guide →Explore the 2026 Stack
See the full breakdown of models, latency, and context windows in our curated practitioner's tech stack.
The 2026 AI Stack →