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
flagship
Input
$1.75
Output
$14.00
Context
1000K
GPT-5.2 pro
OpenAI
reasoning
Input
$21.00
Output
$168.00
Context
1000K
GPT-5.1
OpenAI
flagship
Input
$1.25
Output
$10.00
Context
1000K
GPT-5
OpenAI
flagship
Input
$1.25
Output
$10.00
Context
1000K
GPT-5 mini
OpenAI
efficient
Input
$0.25
Output
$2.00
Context
500K
GPT-5 nano
OpenAI
efficient
Input
$0.05
Output
$0.40
Context
128K
GPT-4.1
OpenAI
flagship
Input
$2.00
Output
$8.00
Context
200K
GPT-4.1 mini
OpenAI
efficient
Input
$0.40
Output
$1.60
Context
200K
GPT-4.1 nano
OpenAI
efficient
Input
$0.10
Output
$0.40
Context
128K
GPT-4o
OpenAI
flagship
Input
$2.50
Output
$10.00
Context
128K
GPT-4o mini
OpenAI
efficient
Input
$0.15
Output
$0.60
Context
128K
o3-pro
OpenAI
reasoning
Input
$20.00
Output
$80.00
Context
1000K
o3
OpenAI
reasoning
Input
$2.00
Output
$8.00
Context
1000K
o4-mini
OpenAI
reasoning
Input
$1.10
Output
$4.40
Context
2000K
o3-mini
OpenAI
reasoning
Input
$1.10
Output
$4.40
Context
500K
o1
OpenAI
reasoning
Input
$15.00
Output
$60.00
Context
200K
GPT-4 Turbo
OpenAI
flagship
Input
$10.00
Output
$30.00
Context
128K
o1-mini
OpenAI
reasoning
Input
$1.10
Output
$4.40
Context
128K
Claude Opus 4.6
Anthropic
flagship
Input
$5.00
Output
$25.00
Context
200K
Claude Sonnet 4.5
Anthropic
balanced
Input
$3.00
Output
$15.00
Context
200K
Claude Haiku 4.5
Anthropic
efficient
Input
$1.00
Output
$5.00
Context
200K
Claude 3.5 Sonnet
Anthropic
balanced
Input
$3.00
Output
$15.00
Context
200K
Claude 3.5 Haiku
Anthropic
efficient
Input
$0.80
Output
$4.00
Context
200K
Claude 3 Opus
Anthropic
flagship
Input
$15.00
Output
$75.00
Context
200K
Gemini 3 Pro
Google
flagship
Input
$2.00
Output
$12.00
Context
2000K
Gemini 3 Flash
Google
efficient
Input
$0.50
Output
$3.00
Context
1000K
Gemini 2.5 Pro
Google
flagship
Input
$1.25
Output
$10.00
Context
2000K
Gemini 2.5 Flash
Google
efficient
Input
$0.30
Output
$2.50
Context
1000K
Gemini 2.0 Flash
Google
efficient
Input
$0.10
Output
$0.40
Context
1000K
Gemini 1.5 Pro
Google
flagship
Input
$1.25
Output
$5.00
Context
2000K
Gemini 1.5 Flash
Google
efficient
Input
$0.07
Output
$0.30
Context
1000K
Mistral Large 3
Mistral AI
flagship
Input
$0.50
Output
$1.50
Context
128K
Mistral Medium 3
Mistral AI
balanced
Input
$0.40
Output
$2.00
Context
128K
Mistral Small 3.2
Mistral AI
efficient
Input
$0.10
Output
$0.30
Context
128K
DeepSeek V3.2
DeepSeek
efficient
Input
$0.28
Output
$0.42
Context
128K
DeepSeek R1 V3.2
DeepSeek
reasoning
Input
$0.28
Output
$0.42
Context
128K
Llama 3.1 405B
Meta (via Together AI)
flagship
Input
$0.88
Output
$0.88
Context
128K
Llama 3.1 70B
Meta (via Together AI)
balanced
Input
$0.52
Output
$0.52
Context
128K
Llama 3.1 8B
Meta (via Together AI)
efficient
Input
$0.10
Output
$0.10
Context
128K
Grok 3
xAI
flagship
Input
$3.00
Output
$15.00
Context
128K
Grok 3 Mini
xAI
efficient
Input
$0.30
Output
$0.50
Context
128K
Command R+
Cohere
flagship
Input
$2.50
Output
$10.00
Context
128K
Command R
Cohere
efficient
Input
$0.15
Output
$0.60
Context
128K

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