AI Cost Calculator

AI API Cost Calculator

Compare real-time pricing across 25+ AI models from 9 providers. Enter your token usage — see exact monthly costs instantly.

OpenAI GPT-4oClaude Sonnet 4Gemini 2.5 ProMistral LargeDeepSeek R1Llama 3.3+19 more

Your Daily Token Usage

50K
1K10M
20K
1K5M

Cheapest option

Llama 3.1 8B (Groq)

$0.12/mo

Total models compared

25

50K in + 20K out / day

Most expensive

Claude Opus 4

$67.50/mo

Filter:
ModelTierInput /1M Output /1M Context Monthly Cost Provider
Llama 3.1 8B (Groq)
economy$0.050$0.080128K$0.12/mo
Meta / Groq
Gemini 1.5 Flash
👁 Vision
economy$0.075$0.3001.0M$0.29/mo
Google
Mistral Small 3.1
👁 Vision
economy$0.100$0.300128K$0.33/mo
Mistral AI
Gemini 2.0 Flash
👁 Vision
economy$0.100$0.4001.0M$0.39/mo
Google
GPT-4o mini
👁 Vision
economy$0.150$0.600128K$0.58/mo
OpenAI
Command R
economy$0.150$0.600128K$0.58/mo
Cohere
Grok 3 Mini
🧠 Reasoning
economy$0.300$0.500131K$0.75/mo
xAI
DeepSeek V3
economy$0.270$1.1064K$1.06/mo
DeepSeek
Llama 3.3 70B (Groq)
efficient$0.590$0.790128K$1.36/mo
Meta / Groq
DeepSeek R1
🧠 Reasoning
efficient$0.550$2.1964K$2.14/mo
DeepSeek
Claude Haiku 4
👁 Vision
economy$0.800$4.00200K$3.60/mo
Anthropic
Claude 3.5 Haiku
👁 Vision
economy$0.800$4.00200K$3.60/mo
Anthropic
o3-mini
🧠 Reasoning
efficient$1.10$4.40200K$4.29/mo
OpenAI
Gemini 1.5 Pro
👁 Vision
efficient$1.25$5.002.0M$4.88/mo
Google
Llama 3.1 405B (Together AI)
frontier$3.50$3.50128K$7.35/mo
Meta / Together AI
Gemini 2.5 Pro
👁 Vision🧠 Reasoning
frontier$1.25$10.001.0M$7.88/mo
Google
GPT-4o
👁 Vision
efficient$2.50$10.00128K$9.75/mo
OpenAI
Command R+
efficient$2.50$10.00128K$9.75/mo
Cohere
Mistral Large 2
efficient$3.00$9.00128K$9.90/mo
Mistral AI
Claude Sonnet 4
👁 Vision🧠 Reasoning
efficient$3.00$15.00200K$13.50/mo
Anthropic
Claude 3.5 Sonnet
👁 Vision
efficient$3.00$15.00200K$13.50/mo
Anthropic
Grok 3
🧠 Reasoning
frontier$3.00$15.00131K$13.50/mo
xAI
GPT-4 Turbo
👁 Vision
frontier$10.00$30.00128K$33.00/mo
OpenAI
o1
👁 Vision🧠 Reasoning
frontier$15.00$60.00200K$58.50/mo
OpenAI
Claude Opus 4
👁 Vision🧠 Reasoning
frontier$15.00$75.00200K$67.50/mo
Anthropic

Prices are per 1M tokens in USD. Monthly cost = 30 days × daily usage. Always verify with official provider pricing.

How to Choose an AI Model

Frontier models (Claude Opus 4, GPT-4o, Gemini 2.5 Pro) deliver the best reasoning and accuracy. Best for complex tasks, research, and agentic workflows.

Efficient models (Claude Sonnet 4, GPT-4o, Gemini 1.5 Pro) hit the sweet spot of performance and cost. Ideal for most production applications.

Economy models (Claude Haiku 4, GPT-4o mini, Gemini 2.0 Flash) minimize cost for high-volume, latency-sensitive tasks like classification and extraction.

Understanding AI API Pricing

AI APIs charge per 1 million tokens. A token is roughly 4 characters or ¾ of a word. Input tokens (your prompts) and output tokens (model responses) are priced separately — output typically costs 3-5x more.

Prompt caching can reduce input costs by up to 90% for repeated system prompts (supported by Anthropic and OpenAI).

Use this calculator to estimate your monthly bill at scale. Most providers offer a free tier for initial testing.