
AI API Pricing Compared 2026: What Every Major Model Costs per Token
One table, five labs, a 1,000x price spread - and the discounts that matter more than the list prices.
AI API pricing spans a wider range than any subscription menu suggests. Verified July 10, 2026: output tokens cost $0.20 per million at the budget end and $50 at the frontier - a 250x spread within the same product category. Picking the right model tier matters more than picking the right lab. One master table first, then the patterns that actually cut bills.
| Model | Provider | Input ($/MTok) | Output ($/MTok) |
|---|---|---|---|
| Fable 5 | Anthropic | $10.00 | $50.00 |
| GPT-5.6 Sol | OpenAI | $5.00 | $30.00 |
| Opus 4.8 | Anthropic | $5.00 | $25.00 |
| GPT-5.6 Terra | OpenAI | $2.50 | $15.00 |
| Sonar Pro | Perplexity | $3.00 | $15.00 |
| Gemini 3.1 Pro | $2.00 | $12.00 | |
| Sonnet 5 (intro) | Anthropic | $2.00 | $10.00 |
| Gemini 3.5 Flash | $1.50 | $9.00 | |
| Sonar Deep Research | Perplexity | $2.00 | $8.00 |
| GPT-5.6 Luna | OpenAI | $1.00 | $6.00 |
| Grok 4.5 | xAI | $2.00 | $6.00 |
| Haiku 4.5 | Anthropic | $1.00 | $5.00 |
| Grok 4.3 | xAI | $1.25 | $2.50 |
| Sonar Large Online | Perplexity | $1.00 | $1.00 |
| Sonar Small Online | Perplexity | $0.20 | $0.20 |
| GPT-5 nano | OpenAI | $0.05 | - |
The Frontier Tier: $25 to $50 Output, and Grok Breaks the Pattern
Fable 5 tops the market at $10/$50, double GPT-5.6 Sol's $5/$30. Opus 4.8 sits at $5/$25 as the cheaper Anthropic frontier option. Then xAI wrecks the curve: Grok 4.5 charges $2/$6 for a model it benchmarks against both - the price aggression we unpacked in our Grok 4.5 vs Claude Fable 5 vs GPT-5.5 comparison. Frontier pricing is a statement about positioning as much as compute cost.
The Workhorse Tier: $6 to $15 Is Where Production Apps Live
Most real products run here. Terra, Gemini 3.1 Pro, and Sonnet 5 cluster between $10 and $15 output. Luna at $1/$6 and Gemini 3.5 Flash at $1.50/$9 undercut them with near-flagship benchmark scores. Watch one date: Sonnet 5's $2/$10 is introductory and rises to $3/$15 on September 1, a 50% jump for anyone who builds on the intro rate and forgets.
The Budget Tier: Cheaper Than You Think
Haiku 4.5 and Grok 4.3 handle classification, extraction, and routing at $5 and $2.50 output. Sonar Small runs $0.20 flat with live web search included. GPT-5 nano's $0.05 input rate makes bulk embedding-adjacent work nearly free. Teams overpay most often here - routing simple tasks to frontier models out of habit, not need.
The Discounts That Beat the List Prices
Three mechanisms cut these rates harder than switching labs. Batch processing halves OpenAI and Anthropic prices for anything asynchronous. Prompt caching drops repeat-context reads to a tenth or less - Anthropic charges $1 per million to re-read Fable 5 context that costs $10 fresh. And xAI hands out up to $175 a month in free credits through its data-sharing program, with the privacy trade that implies.
Hidden meters run the other way. OpenAI and Anthropic bill web search separately (Anthropic at $10 per 1,000 searches), while Perplexity bakes search into every Sonar token. Add-ons, not token rates, decide many real-world bills.
Which API Should You Build On
AI API pricing rewards a two-model strategy: one budget model for volume, one frontier model for the hard 5% of requests. Cost-sensitive products start with Haiku, Luna, or Flash and escalate selectively. Search products should price Sonar first because the bundled search fee usually wins. Teams locked into one lab for compliance reasons should at least benchmark Grok's $2/$6 to know what leverage they're leaving unused.
AI API pricing changes faster than any page can promise, so treat the verification date as part of the data. Subscription-side numbers live in our full AI pricing guide, with per-provider detail in the Claude, ChatGPT, Gemini, and Grok pricing pages.