AI API Cost Calculator — Every Provider, Token to USD
Who this is for: For developers comparing providers per token — and for anyone with a usage JSON in hand who wants the dollar answer in one click.
All providers, one calculator — plus paste any usage JSON and get the dollar figure.
Quick answer: Flagship spread (per 1M tokens, Oct 2026): DeepSeek V3 $0.28 in → Claude Opus 4.1 $15 in; outputs $0.42 → $75. The same 10M-in/2M-out month: $32.50 on GPT-5 vs $3.64 on DeepSeek V3 — 9× cheaper; flagship Claude Opus 4.1 lands $300. Paste any usage JSON below for an instant dollar figure.
cached rate $0.125/M
| Cheapest | DeepSeek V3 $0.28/$0.42 /M |
|---|---|
| OpenAI floor | GPT-5 nano $0.05/$0.40 |
| Flagship band | $1.25–15 in / $8–75 out |
| Example month | 10M in + 2M out: $3.64–300 |
| Cache read | Claude 10% · OpenAI 10–50% |
| Status | List prices collected Oct 2026 from each provider's public pricing page. Providers change tiers often — always confirm on the official page before billing decisions. |
What does AI API usage cost across providers?
List prices per 1M tokens (Oct 2026): the flagship tier spans $0.28 (DeepSeek V3) to $15 (Claude Opus 4.1) input; the budget tier spans $0.05 (GPT-5 nano) to $0.30 (Gemini 2.5 Flash). The same 10M-in/2M-out monthly workload costs $32.50 on GPT-5, $60.00 on Claude Sonnet 4.5, $6.50 on GPT-5 mini, and $3.64 on DeepSeek V3 — an order-of-magnitude spread for comparable output quality on many tasks. Paste a raw API response into the calculator and it extracts usage automatically (prompt_tokens / completion_tokens / cached), prices it, and shows the cached-input savings. All extraction runs in your browser; nothing is uploaded.
Common uses
- Pricing a workload across providers before committing
- Paste an API response JSON → instant dollar cost
- Comparing cached-input savings between providers
- Checking a provider invoice against list prices
How the JSON paste works
Paste any chat-completion API response (OpenAI, Anthropic, DeepSeek, Grok formats all work — including nested usage objects). The extractor looks for prompt_tokens / input_tokens, completion_tokens / output_tokens and cached_tokens keys, fills the token fields, and prices them at the selected model's list rates. Nothing is sent anywhere: the parsing is a regex over text inside your browser tab.
Frequently Asked Questions
Which AI API is cheapest?
How do I calculate API cost from tokens?
What are cached tokens on Claude?
How accurate is this calculator?
Is my pasted data stored?
More API cost
Related guides
- Is ChatGPT Plus Worth It?The $20 question, answered with hours-saved math and honest 'no' cases.
- ChatGPT Plus vs Pro$20 vs $100–500: what the Pro tiers actually buy, and who needs them.
- Claude Pro vs ChatGPT PlusSame $20 — $40/year apart on annual. Model strengths and the both-then-cut trick.
- ChatGPT Free vs PlusWhat the free tier really includes in 2026 — and the exact walls you hit upgrading past it.
- How to Reduce OpenAI API CostsCache, route, trim — the three levers, with the dollar effect of each.
- How Much to Budget for AI ToolsHousehold and freelancer budgets for the AI-stack era — with the tier that fits.