I spent 3 hours pulling real pricing data from every major AI provider’s API page so you don’t have to. No affiliate fluff, no “it depends” copouts – just the actual numbers as of April 2026, with real cost calculations for real workloads.
If you’re building with AI APIs – or deciding which one to bet your product on – this is the only pricing comparison you need.
The Big Picture: What You’re Actually Paying
Here’s every major provider’s flagship and budget model, priced per 1 million tokens (roughly 750,000 words):
🏢 Frontier Models (The Heavyweights)
| Model | Input / 1M tokens | Output / 1M tokens | Context Window |
|---|---|---|---|
| OpenAI GPT-5.4 | $2.50 | $15.00 | 270K |
| Anthropic Claude Opus 4.6 | $5.00 | $25.00 | 200K |
| Anthropic Claude Sonnet 4.6 | $3.00 | $15.00 | 200K |
| Google Gemini 2.5 Pro | $1.25 | $10.00 | 1M |
| Google Gemini 3.1 Pro ✨ NEW | $2.00 | $12.00 | 1M |
| OpenAI GPT-4.1 ✨ NEW | $2.00 | $8.00 | 1M |
| Anthropic Claude Opus 4.7 ✨ NEW | $5.00 | $25.00 | 1M |
| DeepSeek R1 (reasoning) | $0.55 | $2.19 | 128K |
Winner on price: DeepSeek R1 – it’s 96% cheaper than GPT-5.4 on output tokens. But price isn’t everything (more on that below).
💰 Budget Models (Where Most Apps Should Start)
| Model | Input / 1M tokens | Output / 1M tokens | Best For |
|---|---|---|---|
| OpenAI GPT-5.4 nano | $0.20 | $1.25 | High-volume simple tasks |
| OpenAI GPT-5.4 mini | $0.75 | $4.50 | Coding, agents |
| Anthropic Claude Haiku 4.5 | $1.00 | $5.00 | Fast responses |
| Google Gemini 2.5 Flash | $0.30 | $2.50 | Speed + cost balance |
| DeepSeek V3 | $0.14 | $0.28 | Cheapest option alive |
| DeepSeek V4 ✨ NEW | $0.30 | $0.50 | V3 successor, better quality |
Winner on price: DeepSeek V3 at $0.14/$0.28 – that’s essentially free. But again, there are tradeoffs.
🔓 Open Source via Hosted Providers
| Model | Provider | Input / 1M tokens | Output / 1M tokens |
|---|---|---|---|
| Llama 4 (Scout) | Together AI | $0.11 | $0.34 |
| Llama 4 (Maverick) | Groq | $0.20 | $0.60 |
| Llama 4 (Scout) | Fireworks | $0.05 | $0.25 |
| Qwen 3 32B | Groq | $0.10 | $0.19 |
Open source models through hosted providers are 10-50x cheaper than frontier APIs. The catch: you’re trusting a smaller provider with your data, and quality varies.
Real Cost Calculations: What Does This Actually Mean?
Let’s run 5 real scenarios that actual developers face:
Scenario 1: Customer Support Chatbot (10,000 conversations/month)
Average conversation: 2,000 input tokens, 1,000 output tokens
| Model | Monthly Cost |
|---|---|
| GPT-5.4 | $200 |
| Claude Sonnet 4.6 | $210 |
| Gemini 2.5 Pro | $125 |
| GPT-5.4 nano | $16.50 |
| Gemini 2.5 Flash | $31 |
| DeepSeek V3 | $4.20 |
Verdict: Use a budget model. Your chatbot doesn’t need Opus-level intelligence to answer “where’s my order?”
Scenario 2: AI Coding Assistant (Developer using it 8 hours/day)
Heavy usage: ~500K input tokens/day, ~200K output tokens/day, 22 working days
| Model | Monthly Cost |
|---|---|
| GPT-5.4 | $93.50 |
| Claude Sonnet 4.6 | $99 |
| Claude Opus 4.6 | $165 |
| GPT-5.4 mini | $28.05 |
| DeepSeek R1 | $15.64 |
Verdict: Claude Sonnet or GPT-5.4 are the sweet spots – good enough quality for code, reasonable price. DeepSeek R1 if you’re cost-sensitive and can tolerate occasional latency.
Scenario 3: Content Generation Pipeline (100 articles/month, 2,000 words each)
~3,000 input tokens + ~3,000 output tokens per article
| Model | Monthly Cost |
|---|---|
| GPT-5.4 | $5.25 |
| Claude Opus 4.6 | $9.00 |
| GPT-5.4 nano | $0.44 |
| DeepSeek V3 | $0.13 |
Verdict: Content generation is absurdly cheap now. Even GPT-5.4 costs about a nickel per article. The real cost isn’t tokens – it’s editing time.
Scenario 4: RAG Application (Document Q&A with 50K token context)
1,000 queries/day, 50K input + 500 output tokens each
| Model | Monthly Cost |
|---|---|
| GPT-5.4 | $4,000 |
| Gemini 2.5 Pro | $2,025 |
| GPT-5.4 nano | $331 |
| Gemini 2.5 Flash | $488 |
| DeepSeek V3 | $218 |
Verdict: RAG is where costs explode because of massive input contexts. Use cached input (OpenAI charges only $0.25/M for cached) or switch to a budget model. Gemini’s 1M context window is a killer advantage here.
Scenario 5: AI Agent Running Autonomously (Multi-step reasoning, 50 steps)
Each step: 10K input + 2K output, 100 agent runs/day
| Model | Monthly Cost |
|---|---|
| GPT-5.4 | $5,250 |
| Claude Opus 4.6 | $9,000 |
| GPT-5.4 mini | $1,575 |
| DeepSeek R1 | $951 |
Verdict: Agents are the most expensive AI use case. Every step compounds. Use the cheapest model that doesn’t break your workflow, and cache aggressively.
The Hidden Costs Nobody Talks About
1. Cached Input Pricing – The Real Game Changer
OpenAI charges only $0.25/M tokens for cached input (vs $2.50 regular). That’s a 90% discount if your prompts share common prefixes. If you’re not using prompt caching, you’re overpaying by 10x on repeated system prompts.
2. Long Context Surcharges
Anthropic doubles pricing when input exceeds 200K tokens. Google’s Gemini handles 1M tokens at the same rate – massive advantage for document-heavy workloads.
3. Batch API = 50% Off
OpenAI’s Batch API gives you 50% off on both input and output if you can wait 24 hours for results. Perfect for content generation, data processing, or any non-real-time workload.
4. Rate Limits Kill You Before Costs Do
DeepSeek might be cheap, but their rate limits are brutal at scale. OpenAI and Anthropic offer much higher throughput for production workloads. Factor in the cost of retries and queuing.
5. Data Sovereignty
DeepSeek routes through servers outside the US and EU. For some businesses, that’s a non-starter regardless of price. OpenAI now offers data residency endpoints (10% surcharge). Know where your data goes.
The New Floor: Decision Models at $0.042 per Million
Every price above is for a model that writes text. On September 15, 2026 a new category showed up under all of them. TypeSafe AI’s Jev is a decision model: send it state plus typed questions (yes/no, pick one, score on a rubric) and it returns probabilities and a confidence score, never prose. Price: $0.042 per 1M input tokens, output free, direct or on OpenRouter as typesafe/jev-1.13 via a separate decisions endpoint. Context is 32K. Direct access is a waitlist; OpenRouter (beta) and Vercel AI Gateway work today.
Here is what that does to the cheapest tier for classification-shaped work, priced on a 600-token-in, 60-token-out call. Estimates; real token counts vary.
| Model | Input / 1M | Output / 1M | Est. per 1M classification calls | Returns |
|---|---|---|---|---|
| TypeSafe Jev 1.13 ✨ NEW | $0.042 | $0 | $25.20 | Typed decision + probability |
| OpenAI gpt-oss-20b (hosted) | $0.03 | $0.13 | $25.80 | Text |
| OpenAI GPT-5.4 nano | $0.20 | $1.25 | $195 | Text |
| OpenAI GPT-5 mini | $0.25 | $2.00 | $270 | Text |
| Google Gemini 3.8 Flash | $0.75 | $3.75 | $675 | Text |
| Anthropic Claude Haiku 4.5 | $1.00 | $5.00 | $900 | Text |
Jev row: 600 x $0.042 per 1M plus 60 x $0 equals $0.0000252 per call, times one million. GPT-5.4 nano: 600 x $0.20 plus 60 x $1.25, per 1M, equals $0.000195 per call.
Read it straight. Jev is roughly 8x cheaper than GPT-5.4 nano and 36x cheaper than Haiku 4.5 on this call shape, and a tie on money with an open-weight model like gpt-oss-20b. What you are buying is not a lower token bill; it is a sub-second answer with a calibrated probability you can threshold on, and no JSON parsing layer. TypeSafe’s “up to 444x cheaper” comes from its own workflow evals against frontier models. Vendor claim until independently reproduced.
The catch. Jev cannot write anything: no summaries, no replies, no code. If your pipeline ends in text it still needs one of the models above. Where it ends in a label, a route or a number, the floor for that step just dropped to $0.042, and the best value pick for classification in the table below is no longer an LLM at all. Full breakdown in our Jev pricing guide.
The Pricing War Winners by Use Case
| Use Case | Best Value Pick | Best Quality Pick |
|---|---|---|
| Chatbot / Customer Support | DeepSeek V3 ($0.14/$0.28) | GPT-5.4 nano ($0.20/$1.25) |
| Code Generation | DeepSeek R1 ($0.55/$2.19) | Claude Sonnet 4.6 ($3/$15) |
| Content Writing | GPT-5.4 nano ($0.20/$1.25) | Claude Opus 4.6 ($5/$25) |
| Document Analysis / RAG | Gemini 2.5 Flash ($0.30/$2.50) | Gemini 2.5 Pro ($1.25/$10) |
| AI Agents | GPT-5.4 mini ($0.75/$4.50) | GPT-5.4 ($2.50/$15) |
| Self-hosted / Privacy | Llama 4 via Fireworks ($0.05/$0.25) | Llama 4 self-hosted ($0) |
My Actual Recommendation
Stop optimizing for the cheapest model. Start optimizing for the cheapest model that doesn’t make your product worse.
Here’s what I’d do in April 2026:
- Start with Gemini 2.5 Flash ($0.30/$2.50) – it’s the best bang-for-buck model right now. Fast, cheap, 1M context window, and Google’s free tier lets you prototype without spending a dollar.
- Use GPT-5.4 nano for high-volume grunt work – classification, extraction, simple completions. At $0.20 input, you can process millions of requests for pocket change.
- Save frontier models for the 10% of tasks that need them – complex reasoning, nuanced writing, multi-step coding. Don’t use a $25/M output model to summarize emails.
- Cache everything. If you’re sending the same system prompt repeatedly, you’re burning money. OpenAI’s cached input is 90% cheaper.
- Batch what you can. If results don’t need to be real-time, the 50% batch discount is free money.
The API pricing war is far from over. Prices have dropped 80%+ in the last 12 months, and DeepSeek is forcing everyone’s hand. By this time next year, today’s “budget” prices will look expensive.
The winners won’t be the ones who picked the cheapest model – they’ll be the ones who picked the right model for each job and actually shipped something.
Last updated: September 19, 2026 (decision-model section added). Core prices verified against official API pricing pages on April 20, 2026. New models added: GPT-4.1, Claude Opus 4.7, Gemini 3.1 Pro, DeepSeek V4, ChatGPT Pro $100 tier.
Frequently Asked Questions
Which AI API is cheapest in 2026?
On list price per 1M tokens, open-weight models on hosted providers are cheapest for text, and TypeSafe’s Jev decision model sets a new floor at $0.042 input with output free for classification-only work. Among frontier vendors, the small tiers (GPT-5 mini, Claude Haiku 4.5, Gemini Flash) are where most apps should start. The cheapest model is rarely the cheapest bill once output tokens, retries and rate limits are counted.
Is cached input pricing worth setting up?
Yes, for any workload that resends the same system prompt or document. Cached input is billed at a fraction of the standard input rate on every major vendor, so a RAG or agent app with a long fixed prefix can cut its input bill by most of its total. The saving only appears if your prefix is stable and above the vendor’s minimum cache size.
How much does the Batch API save?
OpenAI, Anthropic and Google all list a 50% discount for batch or asynchronous processing. It fits anything that can wait: content pipelines, backfills, evals and nightly classification jobs. It does not fit chat or anything a user is waiting on.
What is a decision model and when should I use one instead of an LLM?
A decision model like Jev takes a block of state and typed questions and returns a choice, score or yes/no probability instead of text. Use it when the output your code needs is a label, a route or a number and the answer is already in the input. Keep an LLM for anything that has to write, summarise or reason in prose.
How often are the prices in this article checked?
The core rate tables were verified against the vendors’ official pricing pages in April 2026 and the decision-model section was added on September 19, 2026. For the running monthly view, use the AI Pricing Watch hub, which is refreshed on the first of each month.
How we score: read the methodology