100% Free • No Sign-up Required

AI Cost Calculator

Compare exact costs across 50+ AI models from OpenAI, Anthropic, Google, Mistral, Meta & more. Paste your prompt and see the price instantly.

Estimated: 5 input tokens

10 output tokens

💰 Cheapest Model

Llama 3.1 8B

$0.000001/request • $0.00/mo

🔥 Most Expensive

Claude 3 Opus

$0.000825/request • $0.82/mo

📊 Potential Savings

100%

Save $0.82/mo by switching

ProviderMonthly Cost
💰Llama 3.1 8B
Meta$0.05$0.08$0.000001$0.00
Nova Micro
Amazon$0.04$0.14$0.000002$0.00
Mistral Nemo
Mistral$0.15$0.15$0.000002$0.00
Nova Lite
Amazon$0.06$0.24$0.000003$0.00
Gemini 1.5 Flash
Google$0.07$0.30$0.000003$0.00
Mistral Small
Mistral$0.10$0.30$0.000003$0.00
GPT-4.1 Nano
OpenAI$0.10$0.40$0.000005$0.00
Gemini 2.0 Flash
Google$0.10$0.40$0.000005$0.00
Grok 3 Mini
xAI$0.30$0.50$0.000007$0.01
GPT-4o Mini
OpenAI$0.15$0.60$0.000007$0.01
Gemini 2.5 Flash
Google$0.15$0.60$0.000007$0.01
Llama 4 Scout
Meta$0.15$0.60$0.000007$0.01
Command R
Cohere$0.15$0.60$0.000007$0.01
Llama 4 Maverick
Meta$0.20$0.85$0.000010$0.01
Codestral
Mistral$0.30$0.90$0.000011$0.01
Llama 3.3 70B
Meta$0.59$0.79$0.000011$0.01
Llama 3.1 70B
Meta$0.59$0.79$0.000011$0.01
DeepSeek V3
DeepSeek$0.27$1.10$0.000012$0.01
Claude 3 Haiku
Anthropic$0.25$1.25$0.000014$0.01
Sonar
Perplexity$1.00$1.00$0.000015$0.02
GPT-3.5 Turbo
OpenAI$0.50$1.50$0.000018$0.02
GPT-4.1 Mini
OpenAI$0.40$1.60$0.000018$0.02
DeepSeek R1
DeepSeek$0.55$2.19$0.000025$0.02
Nova Pro
Amazon$0.80$3.20$0.000036$0.04
Claude 3.5 Haiku
Anthropic$0.80$4.00$0.000044$0.04
Llama 3.1 405B
Meta$3.00$3.00$0.000045$0.05
o3-mini
OpenAI$1.10$4.40$0.000049$0.05
o4-mini
OpenAI$1.10$4.40$0.000049$0.05
Gemini 1.5 Pro
Google$1.25$5.00$0.000056$0.06
Mistral Large
Mistral$2.00$6.00$0.000070$0.07
GPT-4.1
OpenAI$2.00$8.00$0.000090$0.09
Gemini 2.5 Pro
Google$1.25$10.00$0.000106$0.11
Grok 2
xAI$2.00$10.00$0.000110$0.11
GPT-4o
OpenAI$2.50$10.00$0.000113$0.11
Command R+
Cohere$2.50$10.00$0.000113$0.11
o1-mini
OpenAI$3.00$12.00$0.000135$0.14
Claude Sonnet 4
Anthropic$3.00$15.00$0.000165$0.17
Claude 3.5 Sonnet
Anthropic$3.00$15.00$0.000165$0.17
Claude 3 Sonnet
Anthropic$3.00$15.00$0.000165$0.17
Grok 3
xAI$3.00$15.00$0.000165$0.17
Sonar Pro
Perplexity$3.00$15.00$0.000165$0.17
GPT-4 Turbo
OpenAI$10.00$30.00$0.000350$0.35
o3
OpenAI$10.00$40.00$0.000450$0.45
o1
OpenAI$15.00$60.00$0.000675$0.67
GPT-4
OpenAI$30.00$60.00$0.000750$0.75
Claude 3 Opus
Anthropic$15.00$75.00$0.000825$0.82

Showing 46 models • Prices per million tokens • Updated March 2026

How AI API Pricing Works

AI providers like OpenAI, Anthropic, and Google charge based on tokens — chunks of text that their models process. On average, one token equals approximately 4 characters or ¾ of a word. Every API call has two cost components:

  • Input tokens — the prompt you send to the model (your question, context, system instructions)
  • Output tokens — the response the model generates

Pricing varies dramatically across models. For example, GPT-4o costs $2.50 per million input tokens, while GPT-4 Turbo costs $10 — a 4x difference for similar quality on many tasks. Choosing the right model for your use case can save you 30-60% on your monthly AI bill.

Why Use an AI Cost Calculator?

Most developers don't realize how quickly AI API costs add up. A single GPT-4 call might cost $0.03, but at 100,000 requests/month, that's $3,000. Switching to GPT-4o-mini for suitable tasks could reduce that to $60 — a 98% saving.

Our calculator lets you paste your actual prompt and see the real cost across every major model, helping you find the most cost-effective option before writing a single line of code.

Supported Providers & Models

We track pricing for 50+ models across 11 leading AI providers: OpenAI (GPT-4o, GPT-4.1, o3, o1), Anthropic (Claude Sonnet 4, Claude 3.5, Claude 3 Opus/Haiku), Google (Gemini 2.5 Pro/Flash, Gemini 2.0), Mistral (Large, Small, Codestral), Meta (Llama 4 Maverick/Scout, Llama 3.3), DeepSeek (V3, R1), xAI (Grok 3), Cohere (Command R+), Amazon (Nova Pro/Lite/Micro), and Perplexity (Sonar Pro).

Frequently Asked Questions

How is the AI API cost calculated?

We estimate tokens using the standard ~4 characters per token ratio, then multiply by each model's published per-million-token pricing for both input and output. Pricing is updated regularly from official provider sources.

Which AI models does the calculator support?

We support 50+ models across 11 providers: OpenAI (GPT-4o, GPT-4.1, o3, o1), Anthropic (Claude Sonnet 4, Claude 3.5, Claude 3 Opus), Google (Gemini 2.5 Pro, Gemini Flash), Mistral, Meta Llama 4, DeepSeek, xAI Grok, Cohere, Amazon Nova, and Perplexity Sonar.

Is this AI cost calculator free?

Yes, the AI Cost Calculator is completely free with no sign-up required. For ongoing cost monitoring and automated optimization, check out AI Cost Guard's paid plans starting at $9/month.

How accurate are the cost estimates?

Token estimation uses a ~4 char/token approximation. Actual costs may vary by 5-15% depending on the tokenizer. For exact token counts, use each provider's official tokenizer. The per-token prices reflect the latest published rates.

Can I track these costs automatically in production?

Yes! AI Cost Guard provides SDKs for TypeScript and Python, a CLI, and a VS Code extension that automatically track every API call, giving you real-time dashboards, budget alerts, and AI-powered optimization recommendations.

Start Saving on AI Costs Today

Join thousands of developers who save up to 40% on their AI API bills with AI Cost Guard.