Prices verified June 2026 - Claude 4.8 · GPT-5.5 · Gemini 3.5 · Groq · DeepSeek

Stop guessing your AI API costs.

Free tools to calculate, compare, and optimize your LLM spending. Know exactly what Claude, GPT-5, Gemini, Groq, and DeepSeek will cost you - before you build, and before the invoice arrives.

💰
Most popular

AI API Cost Calculator

Enter your token usage and monthly call volume to get your exact cost per call and monthly spend. Compares 25+ models including GPT-5.5, Claude 4.8, Gemini 3.5, Groq, and DeepSeek side by side.

Calculate cost →
🔢
Prompt optimization

AI Token Counter

Paste any system prompt, message, or model response and instantly see how many tokens it contains — and what it costs as input or output across every major model.

Count tokens →
⚖️
Model selection

AI Model Comparison

Compare 25+ AI models side by side on pricing, context window, and best use cases. Filter by provider, sort by cost, and find the right model for your workload fast.

Compare models →

Quick pricing reference - June 2026

Per million tokens. Always verify at provider websites before final decisions.

Anthropic
Claude Haiku 4.5
Input$1.00/1M
Output$5.00/1M
Anthropic
Claude Sonnet 4.5
Input$3.00/1M
Output$15.00/1M
Anthropic
Claude Sonnet 4.6
Input$3.00/1M
Output$15.00/1M
Anthropic
Claude Opus 4.5
Input$5.00/1M
Output$25.00/1M
Anthropic
Claude Opus 4.6
Input$5.00/1M
Output$25.00/1M
Anthropic
Claude Opus 4.7
Input$5.00/1M
Output$25.00/1M
Anthropic
Claude Opus 4.8
Input$5.00/1M
Output$25.00/1M
OpenAI
GPT-5.4 nano
Input$0.20/1M
Output$1.25/1M
OpenAI
GPT-5.4 mini
Input$0.75/1M
Output$4.50/1M
OpenAI
GPT-5.4
Input$2.50/1M
Output$15.00/1M
OpenAI
GPT-5.5
Input$5.00/1M
Output$30.00/1M
OpenAI
GPT-5.4 pro
Input$30.00/1M
Output$180.00/1M
OpenAI
GPT-5.5 pro
Input$30.00/1M
Output$180.00/1M
Google
Gemini 3.5 Flash
Input$0.50/1M
Output$9.00/1M
Google
Gemini 3.1 Flash-Lite
Input$0.15/1M
Output$0.50/1M
Google
Gemini 3 Flash
Input$0.50/1M
Output$4.00/1M
Google
Gemini 2.5 Flash-Lite
Input$0.10/1M
Output$0.40/1M
Google
Gemini 2.5 Flash
Input$0.30/1M
Output$2.50/1M
Google
Gemini 3.1 Pro
Input$2.00/1M
Output$12.00/1M
Groq
GPT OSS 20B 128K
Input$0.075/1M
Output$0.30/1M
Groq
GPT OSS Safeguard 20B
Input$0.075/1M
Output$0.30/1M
Groq
GPT OSS 120B 128K
Input$0.15/1M
Output$0.60/1M
Groq
Qwen3 32B 131K
Input$0.29/1M
Output$0.59/1M
DeepSeek
DeepSeek V4 Flash
Input$0.14/1M
Output$0.28/1M
DeepSeek
DeepSeek V4 Pro
Input$0.435/1M
Output$0.87/1M

Why AI API Costs Are Hard to Predict

Flat-fee subscriptions like Claude Pro or ChatGPT Plus are straightforward - you pay a fixed amount each month and use the product. API pricing is a completely different model. Every token in your prompt, every token in the response, and every token in your conversation history costs money on every single API call.

Consider a customer support chatbot with a 1,500-token system prompt running at 2,000 conversations per day. That creates 3 million input tokens daily from the system prompt alone, before the user types a single word. Add user messages and model responses and the real number climbs quickly.

AIPricingCalc exists to make these numbers visible before they become surprises. All tools are free, require no account, and run in your browser.

How to Use These Three Tools Together

Start with the token counter. Paste your system prompt and see how many tokens it uses. Then use the cost calculator to estimate monthly spend based on your call volume. Finally, use the model comparison page to check whether a cheaper model can handle your use case.

Common questions

Pricing is verified against official provider pages. AI providers update pricing frequently, so always verify current pricing directly at the provider's official pricing page before making production decisions.
Overall, AI API prices have trended down as competition increases and compute becomes more efficient. The cheapest useful models are now dramatically cheaper than flagship models from earlier generations.
No. The tools work without an account, email address, or sign-up. Calculations happen in your browser.
Subscription pricing charges a flat fee for using a product interface. API pricing charges per token and is meant for developers building apps, automations, and integrations.
Set monthly usage or billing limits inside your provider dashboard before launching. This protects you from runaway costs caused by bugs, loops, or uncapped output.
Free tiers change often. Google and Groq have historically been strong for prototyping, but always check the current official provider pages before planning around free usage.
Scroll to Top