Skip to content
All systems operational0 AI providers monitored, polled every 2 minutes
Live status

AI API Cost Calculator

Estimate your monthly AI API spend across all major providers. Adjust your token volume and input/output ratio to see real-time cost comparisons.

Configure Your Usage

Input: 70%Output: 30%

700K input tokens + 300K output tokens per month

For general tasks, mid-tier models like Claude Sonnet, GPT-4o, or Gemini 2.5 Pro offer a strong balance of quality and cost.

Estimated Monthly Costsfor 1M tokens/month

ProviderModelReleasedMonthly Cost
AnthropicClaude Fable 5Jun 2026$22.00
MicrosoftMAI-Code-1-FlashJun 2026$1.87
MiniMaxMiniMax M3Open SourceJun 2026$0.570
AnthropicClaude Opus 4.8May 2026$11.00
GoogleGemini 3.1 Flash-LiteMay 2026$0.625
GoogleGemini 3.5 FlashMay 2026$3.75
AlibabaQwen3.7-MaxMay 2026$4.00
AnthropicClaude Opus 4.7Apr 2026$33.00
OpenAIGPT-5.5Apr 2026$12.50
DeepSeekDeepSeek V4 ProOpen SourceApr 2026$0.566
DeepSeekDeepSeek V4 FlashOpen SourceApr 2026$0.182
xAIGrok 4.3Apr 2026$1.63
NVIDIANemotron 3 Nano OmniCheapestOpen SourceApr 2026$0.00
AnthropicClaude Opus 4.6Most CapableMar 2026$33.00
AnthropicClaude Sonnet 4.6Mar 2026$6.60
AnthropicClaude Haiku 4.5Jun 2025$1.76
MetaLlama 4 ScoutOpen SourceApr 2025$0.00
MetaLlama 4 MaverickOpen SourceApr 2025$0.00
GoogleGemini 2.5 ProMost CapableMar 2025$3.88
GoogleGemini 2.0 FlashFeb 2025$0.190
OpenAIo3-miniJan 2025$2.09
MistralMistral LargeJan 2025$3.20
MistralMistral SmallBest ValueJan 2025$0.160
OpenAIo1Dec 2024$28.50
OpenAIGPT-4o-miniJul 2024$0.285
OpenAIGPT-4oMost CapableMay 2024$4.75
CohereCommand R+Apr 2024$4.75
CohereCommand RMar 2024$0.285

Cost breakdown for Mistral Small:

700K input tokens x $0.10/1M + 300K output tokens x $0.30/1M = $0.160/month

Frequently Asked Questions

How much does the Claude API cost?▾
Claude API pricing varies by model tier. Claude Opus 4.7 costs $15/1M input tokens and $75/1M output tokens and ships with a 1M context window. Claude Sonnet 4.6 is $3/1M input and $15/1M output with a 200K context window. Claude Haiku 4.5 is the most affordable at $0.80/1M input and $4/1M output with 200K context.
What is the cheapest AI API?▾
The cheapest AI APIs include Google Gemini 2.0 Flash at $0.10/1M input tokens, Mistral Small at $0.10/1M input, and GPT-4o-mini at $0.15/1M input. Open-source models like Llama 4 Scout and Llama 4 Maverick are free to self-host, though you will pay for compute infrastructure.
How are AI API tokens counted?▾
AI tokens are the basic units of text that language models process. One token is roughly 4 characters or about 0.75 words in English. A 1,000-word article is approximately 1,333 tokens. Pricing is typically quoted per 1 million tokens, with input (prompt) and output (completion) priced separately.
Which AI API is best for production?▾
The best AI API for production depends on your use case. Claude Sonnet 4.6 and GPT-4o offer strong all-around performance at moderate cost. For budget-sensitive applications, GPT-4o-mini and Gemini 2.0 Flash deliver solid results at a fraction of the price. For tasks requiring deep reasoning, Claude Opus 4.7 or o1 are top choices, though they cost significantly more.