🔥 Limited time: Pro lifetime access $19 — price goes up July 12 →
Cheapest AI API July 2026: 49 Models Ranked by Price
We track every major AI API price in real-time. Here are the cheapest models in July 2026 — and how much you can save by switching from premium providers.
Last updated: July 7, 2026. All prices verified against official provider pages. We track 51 models from 10 providers.
TL;DR — Cheapest AI APIs right now:
- Cheapest overall: Gemini 2.0 Flash Lite — $0.075/$0.30 per 1M tokens
- Cheapest with 1M context: Gemini 2.5 Flash-Lite — $0.10/$0.40
- Cheapest "smart" model: Claude Sonnet 5 — $2/$10 (intro pricing through Aug 31)
- Best value premium: Gemini 2.5 Pro — $1.25/$10
The 10 Cheapest AI APIs in July 2026
Ranked by output price (the cost that matters most for generation-heavy workloads):
| # | Model | Provider | Input/1M | Output/1M | Context |
|---|---|---|---|---|---|
| 1 | Gemini 2.0 Flash Lite | $0.075 | $0.30 | 1M | |
| 2 | GPT-oss 20B | OpenAI | $0.08 | $0.35 | 128K |
| 3 | Gemini 2.5 Flash-Lite | $0.10 | $0.40 | 1M | |
| 4 | Llama 3.1 8B | Meta (Together.ai) | $0.10 | $0.10 | 128K |
| 5 | DeepSeek V4 Flash | DeepSeek | $0.14 | $0.28 | 1M |
| 6 | GPT-oss 120B | OpenAI | $0.15 | $0.60 | 128K |
| 7 | Mistral Small 4 | Mistral | $0.15 | $0.60 | 128K |
| 8 | GPT-4o mini | OpenAI | $0.15 | $0.60 | 128K |
| 9 | Llama 4 Scout | Meta (Together.ai) | $0.18 | $0.59 | 1M |
| 10 | GPT-5.4 nano | OpenAI | $0.20 | $1.25 | 400K |
Key insight: The cheapest models are 40-100x less expensive than premium models. If you're using GPT-5.5 ($5/$30) for tasks that Gemini 2.0 Flash Lite ($0.075/$0.30) can handle, you're overpaying by 97%.
Calculate exactly how much you could save
Enter your current usage and see savings with cheaper models
Open Free Calculator →Cheapest by Category
Budget Tier (under $1/1M output)
Best for: high-volume classification, extraction, simple Q&A, embeddings-style tasks
- Gemini 2.0 Flash Lite — $0.075/$0.30 — Absolute cheapest, great for high-volume
- DeepSeek V4 Flash — $0.14/$0.28 — Best budget model with 1M context
- Gemini 2.5 Flash-Lite — $0.10/$0.40 — Best value with 1M context
- Mistral Small 4 — $0.15/$0.60 — Open-source, Apache 2.0 license
Mid Tier ($1-10/1M output)
Best for: coding, reasoning, summarization, most production workloads
- Claude Sonnet 5 — $2/$10 — Best quality-per-dollar (intro pricing through Aug 31)
- Gemini 2.5 Pro — $1.25/$10 — Best value mid-tier with 1M context
- GPT-5.4 mini — $0.75/$4.50 — Good balance of speed and quality
- Mistral Large 3 — $0.50/$1.50 — Cheapest mid-tier option
Premium Tier ($10+/1M output)
Best for: complex agentic work, research, tasks requiring the highest capability
- Claude Opus 4.8 — $5/$25 — Top-tier for coding and enterprise
- Claude Fable 5 — $10/$50 — Most capable widely-released model
- GPT-5.5 — $5/$30 — OpenAI's flagship
- GPT-5.5 Pro — $30/$180 — Highest tier for specialized work
Real-World Savings Examples
~500 input + 200 output tokens per conversation = 5M input + 2M output tokens/day
| Model | Monthly Cost |
|---|---|
| GPT-5.5 | $2,550 |
| Claude Sonnet 5 | $700 |
| Gemini 2.5 Pro | $638 |
| DeepSeek V4 Flash | $227 |
| Gemini 2.0 Flash Lite | $129 |
Savings: up to $2,421/month (95%) by using Gemini 2.0 Flash Lite instead of GPT-5.5
~1000 input + 500 output tokens per request = 10M input + 5M output tokens/day
| Model | Monthly Cost |
|---|---|
| GPT-5.5 | $6,000 |
| Claude Opus 4.8 | $4,500 |
| Claude Sonnet 5 | $1,650 |
| Gemini 2.5 Pro | $1,500 |
| DeepSeek V4 Flash | $462 |
Savings: up to $5,538/month (92%) by using DeepSeek V4 Flash
What's your exact savings potential?
Use our calculator with your real usage numbers
Calculate My Savings →Cheapest by Use Case
Best for high-volume classification/extraction
Gemini 2.0 Flash Lite ($0.075/$0.30) — Unbeatable price for straightforward tasks. If you're running sentiment analysis, entity extraction, or content moderation at scale, this is your model.
Best for coding assistants
Claude Sonnet 5 ($2/$10 intro) — Best quality-per-dollar for code generation. The introductory pricing runs through August 31, 2026, making it even more competitive. After that, it goes to $3/$15 — still excellent value.
Best for long-context analysis
DeepSeek V4 Flash ($0.14/$0.28) — 1M context at budget pricing. Perfect for document analysis, codebase review, or any task that needs to process large amounts of text.
Best for RAG applications
Gemini 2.5 Flash-Lite ($0.10/$0.40) — 1M context with good quality at a budget price. The large context window means you can stuff more retrieved documents into each call.
Best all-around value
Gemini 2.5 Pro ($1.25/$10) — Strong reasoning, 1M context, and pricing that's 2-3x cheaper than comparable models from OpenAI and Anthropic.
July 2026 Pricing Changes
Notable changes since last month:
- Claude Sonnet 5 launched with introductory pricing at $2/$10 (regular $3/$15 starting September 2026)
- Mistral Small 4 added at $0.15/$0.60 — open-source with Apache 2.0 license
- Grok Build 0.1 repriced to $1/$2 (was $0.30/$0.50 for code API)
- Deprecation watch: Claude 4 Opus and Claude Sonnet 4 retired June 15. GPT-4o mini deprecated.
How to Choose the Right Cheap Model
The cheapest model isn't always the best choice. Here's our framework:
- Start with your quality requirements. If a budget model produces acceptable output for your use case, use it.
- Consider context window needs. Models with 1M context (Gemini, DeepSeek) cost more per token but save money by reducing the number of API calls needed.
- Factor in latency. Budget models are often faster, which means better user experience and lower compute costs for real-time applications.
- Check deprecation status. Don't build on models that are being retired. See our migration hub for deprecated model alternatives.
Compare all 51 models side-by-side
Interactive pricing table with filters, sorting, and export
View Full Pricing Table →FAQ
What is the cheapest AI API in July 2026?
Gemini 2.0 Flash Lite at $0.075/1M input tokens and $0.30/1M output tokens. It's the absolute cheapest option for straightforward tasks like classification, extraction, and simple Q&A.
How much can I save by switching from GPT-5.5?
Up to 99%. GPT-5.5 costs $5/$30 per 1M tokens. DeepSeek V4 Flash costs $0.14/$0.28 — that's a 97% savings on input and 99% on output tokens. For a typical workload processing 10M tokens/month, you'd save ~$2,300/month.
Are cheap AI APIs as good as expensive ones?
For many tasks, yes. Budget models excel at classification, extraction, simple Q&A, and high-volume generation. For complex reasoning, coding, or creative work, mid-tier models like Claude Sonnet 5 ($2/$10) offer better quality per dollar. The key is matching the model to your specific use case.
What's the cheapest AI API with 1M context?
DeepSeek V4 Flash at $0.14/$0.28 per 1M tokens with 1M context. Gemini 2.5 Flash-Lite ($0.10/$0.40) is also competitive. Both offer massive context windows at budget pricing.