Calculate AI API Costsin Seconds
Compare pricing across OpenAI, Anthropic, Google, Mistral, and DeepSeek. Estimate costs for 43+ models.
Pricing last updated: February 15, 2026
8 Providers43 Models100% Free
Cost Calculator
Select a provider and model to see costs
Popular Comparisons
Side-by-side pricing for the most common model matchups
All Models Pricing
43 models across 8 providers
GPT-5.2
OpenAI
Input
$1.75
Output
$14.00
Context
1000K
GPT-5.2 pro
OpenAI
Input
$21.00
Output
$168.00
Context
1000K
GPT-5.1
OpenAI
Input
$1.25
Output
$10.00
Context
1000K
GPT-5
OpenAI
Input
$1.25
Output
$10.00
Context
1000K
GPT-5 mini
OpenAI
Input
$0.25
Output
$2.00
Context
500K
GPT-5 nano
OpenAI
Input
$0.05
Output
$0.40
Context
128K
GPT-4.1
OpenAI
Input
$2.00
Output
$8.00
Context
200K
GPT-4.1 mini
OpenAI
Input
$0.40
Output
$1.60
Context
200K
GPT-4.1 nano
OpenAI
Input
$0.10
Output
$0.40
Context
128K
GPT-4o
OpenAI
Input
$2.50
Output
$10.00
Context
128K
GPT-4o mini
OpenAI
Input
$0.15
Output
$0.60
Context
128K
o3-pro
OpenAI
Input
$20.00
Output
$80.00
Context
1000K
o3
OpenAI
Input
$2.00
Output
$8.00
Context
1000K
o4-mini
OpenAI
Input
$1.10
Output
$4.40
Context
2000K
o3-mini
OpenAI
Input
$1.10
Output
$4.40
Context
500K
o1
OpenAI
Input
$15.00
Output
$60.00
Context
200K
GPT-4 Turbo
OpenAI
Input
$10.00
Output
$30.00
Context
128K
o1-mini
OpenAI
Input
$1.10
Output
$4.40
Context
128K
Claude Opus 4.6
Anthropic
Input
$5.00
Output
$25.00
Context
200K
Claude Sonnet 4.5
Anthropic
Input
$3.00
Output
$15.00
Context
200K
Claude Haiku 4.5
Anthropic
Input
$1.00
Output
$5.00
Context
200K
Claude 3.5 Sonnet
Anthropic
Input
$3.00
Output
$15.00
Context
200K
Claude 3.5 Haiku
Anthropic
Input
$0.80
Output
$4.00
Context
200K
Claude 3 Opus
Anthropic
Input
$15.00
Output
$75.00
Context
200K
Gemini 3 Pro
Google
Input
$2.00
Output
$12.00
Context
2000K
Gemini 3 Flash
Google
Input
$0.50
Output
$3.00
Context
1000K
Gemini 2.5 Pro
Google
Input
$1.25
Output
$10.00
Context
2000K
Gemini 2.5 Flash
Google
Input
$0.30
Output
$2.50
Context
1000K
Gemini 2.0 Flash
Google
Input
$0.10
Output
$0.40
Context
1000K
Gemini 1.5 Pro
Google
Input
$1.25
Output
$5.00
Context
2000K
Gemini 1.5 Flash
Google
Input
$0.07
Output
$0.30
Context
1000K
Mistral Large 3
Mistral AI
Input
$0.50
Output
$1.50
Context
128K
Mistral Medium 3
Mistral AI
Input
$0.40
Output
$2.00
Context
128K
Mistral Small 3.2
Mistral AI
Input
$0.10
Output
$0.30
Context
128K
DeepSeek V3.2
DeepSeek
Input
$0.28
Output
$0.42
Context
128K
DeepSeek R1 V3.2
DeepSeek
Input
$0.28
Output
$0.42
Context
128K
Llama 3.1 405B
Meta (via Together AI)
Input
$0.88
Output
$0.88
Context
128K
Llama 3.1 70B
Meta (via Together AI)
Input
$0.52
Output
$0.52
Context
128K
Llama 3.1 8B
Meta (via Together AI)
Input
$0.10
Output
$0.10
Context
128K
Grok 3
xAI
Input
$3.00
Output
$15.00
Context
128K
Grok 3 Mini
xAI
Input
$0.30
Output
$0.50
Context
128K
Command R+
Cohere
Input
$2.50
Output
$10.00
Context
128K
Command R
Cohere
Input
$0.15
Output
$0.60
Context
128K
| Model | Provider | Input/1M | Output/1M | Context | Type |
|---|---|---|---|---|---|
GPT-5.2 The best model for coding and agentic tasks across industries | OpenAI | $1.75 | $14.00 | 1000K | flagship |
GPT-5.2 pro The smartest and most precise model | OpenAI | $21.00 | $168.00 | 1000K | reasoning |
GPT-5.1 Previous flagship with strong all-round performance | OpenAI | $1.25 | $10.00 | 1000K | flagship |
GPT-5 Frontier model with advanced capabilities | OpenAI | $1.25 | $10.00 | 1000K | flagship |
GPT-5 mini A faster, cheaper version of GPT-5 for well-defined tasks | OpenAI | $0.25 | $2.00 | 500K | efficient |
GPT-5 nano Ultra-fast and cheapest OpenAI model for simple tasks | OpenAI | $0.05 | $0.40 | 128K | efficient |
GPT-4.1 Fine-tunable model with strong reasoning capabilities | OpenAI | $2.00 | $8.00 | 200K | flagship |
GPT-4.1 mini Efficient version of GPT-4.1 with reduced costs | OpenAI | $0.40 | $1.60 | 200K | efficient |
GPT-4.1 nano Ultra-fast and affordable fine-tunable model | OpenAI | $0.10 | $0.40 | 128K | efficient |
GPT-4o Multimodal model with vision and audio capabilities | OpenAI | $2.50 | $10.00 | 128K | flagship |
GPT-4o mini Efficient and affordable model with multimodal capabilities | OpenAI | $0.15 | $0.60 | 128K | efficient |
o3-pro Premium reasoning model for the most demanding tasks | OpenAI | $20.00 | $80.00 | 1000K | reasoning |
o3 Advanced reasoning model for complex problem-solving | OpenAI | $2.00 | $8.00 | 1000K | reasoning |
o4-mini Latest efficient reasoning model | OpenAI | $1.10 | $4.40 | 2000K | reasoning |
o3-mini Efficient reasoning model for production workloads | OpenAI | $1.10 | $4.40 | 500K | reasoning |
o1 Original reasoning model for complex problem-solving | OpenAI | $15.00 | $60.00 | 200K | reasoning |
GPT-4 Turbo High-performance model with vision capabilities and large context | OpenAI | $10.00 | $30.00 | 128K | flagship |
o1-mini Compact reasoning model optimized for STEM tasks | OpenAI | $1.10 | $4.40 | 128K | reasoning |
Claude Opus 4.6 Most intelligent model for building agents and coding | Anthropic | $5.00 | $25.00 | 200K | flagship |
Claude Sonnet 4.5 Best combination of speed and intelligence | Anthropic | $3.00 | $15.00 | 200K | balanced |
Claude Haiku 4.5 Fastest model with near-frontier intelligence | Anthropic | $1.00 | $5.00 | 200K | efficient |
Claude 3.5 Sonnet Previous generation balanced model with strong coding abilities | Anthropic | $3.00 | $15.00 | 200K | balanced |
Claude 3.5 Haiku Fast and affordable model for everyday tasks | Anthropic | $0.80 | $4.00 | 200K | efficient |
Claude 3 Opus Previous generation flagship with exceptional reasoning | Anthropic | $15.00 | $75.00 | 200K | flagship |
Gemini 3 Pro Latest frontier Gemini model with exceptional multimodal capabilities | $2.00 | $12.00 | 2000K | flagship | |
Gemini 3 Flash Fast and capable next-gen Gemini model | $0.50 | $3.00 | 1000K | efficient | |
Gemini 2.5 Pro Advanced Gemini model with exceptional multimodal capabilities | $1.25 | $10.00 | 2000K | flagship | |
Gemini 2.5 Flash Fast and efficient model with multimodal support | $0.30 | $2.50 | 1000K | efficient | |
Gemini 2.0 Flash Previous generation fast model | $0.10 | $0.40 | 1000K | efficient | |
Gemini 1.5 Pro Previous generation model with massive 2M token context window | $1.25 | $5.00 | 2000K | flagship | |
Gemini 1.5 Flash Fast and efficient model with 1M context window | $0.075 | $0.30 | 1000K | efficient | |
Mistral Large 3 Most capable Mistral model for complex reasoning tasks | Mistral AI | $0.50 | $1.50 | 128K | flagship |
Mistral Medium 3 Balanced performance and cost for most use cases | Mistral AI | $0.40 | $2.00 | 128K | balanced |
Mistral Small 3.2 Cost-effective model for simple tasks | Mistral AI | $0.10 | $0.30 | 128K | efficient |
DeepSeek V3.2 Powerful model with excellent coding and reasoning abilities | DeepSeek | $0.28 | $0.42 | 128K | efficient |
DeepSeek R1 V3.2 Reasoning-focused model for complex problem solving | DeepSeek | $0.28 | $0.42 | 128K | reasoning |
Llama 3.1 405B Largest open-source model rivaling proprietary alternatives | Meta (via Together AI) | $0.88 | $0.88 | 128K | flagship |
Llama 3.1 70B Strong open-source model for most tasks | Meta (via Together AI) | $0.52 | $0.52 | 128K | balanced |
Llama 3.1 8B Lightweight open-source model for simple tasks | Meta (via Together AI) | $0.10 | $0.10 | 128K | efficient |
Grok 3 Flagship reasoning model from xAI | xAI | $3.00 | $15.00 | 128K | flagship |
Grok 3 Mini Fast and affordable reasoning model from xAI | xAI | $0.30 | $0.50 | 128K | efficient |
Command R+ Enterprise-grade model optimized for RAG and tool use | Cohere | $2.50 | $10.00 | 128K | flagship |
Command R Efficient model for RAG and conversational tasks | Cohere | $0.15 | $0.60 | 128K | efficient |
Frequently Asked Questions
How is AI API pricing calculated?▾
AI APIs charge per token (roughly 4 characters or ¾ of a word). Pricing is typically quoted per 1 million tokens, with separate rates for input (prompt) and output (completion) tokens.
Which AI model is the cheapest?▾
As of February 2026, GPT-4.1 nano is the cheapest major model at $0.05/1M input tokens. DeepSeek V3 and Gemini 2.5 Flash are also very cost-effective options.
What's the difference between input and output tokens?▾
Input tokens are the text you send to the model (your prompt, context, instructions). Output tokens are the text the model generates in response. Output tokens are typically 2-6x more expensive.
How do I estimate my monthly AI API costs?▾
Use our calculator above: enter your average input/output tokens per request, multiply by your daily request volume, and see projected costs across any model.
$0.05
Cheapest Input/1M
GPT-5 nano
$168.00
Priciest Output/1M
GPT-5.2 pro