LLM Token Cost Calculator
Paying per token or renting your own GPU server — which is cheaper for your workload? Enter your monthly token volume, pick an API model and a rental server, and this calculator shows both monthly bills, the effective price per million tokens, and the break-even volume where self-hosting starts to pay off. Prices refresh daily from public sources.
At 50M tokens/month, the API is cheaper by $2,034.70/month.
† Anthropic's newest models (Fable 5, Opus 4.8, Sonnet 5) tokenize the same text into ~30% more tokens; the calculator corrects for this. Prices exclude batch (−50%) and prompt-caching discounts.
LLM API pricing per 1 million tokens (July 2026)
| Model | Provider | Input $/1M | Output $/1M |
|---|---|---|---|
| GPT-5.6 Sol | OpenAI | $5.00 | $30.00 |
| GPT-5.6 Terra | OpenAI | $2.50 | $15.00 |
| GPT-5.6 Luna | OpenAI | $1.00 | $6.00 |
| GPT-5.4 Mini | OpenAI | $0.75 | $4.50 |
| GPT-5.4 Nano | OpenAI | $0.20 | $1.25 |
| Claude Fable 5 † | Anthropic | $10.00 | $50.00 |
| Claude Opus 4.8 † | Anthropic | $5.00 | $25.00 |
| Claude Sonnet 5 † | Anthropic | $2.00 | $10.00 |
| Claude Haiku 4.5 | Anthropic | $1.00 | $5.00 |
| Gemini 3.5 Flash | $1.50 | $9.00 | |
| Gemini 3.1 Pro (≤200k ctx) | $2.00 | $12.00 | |
| Gemini 2.5 Flash-Lite | $0.10 | $0.40 | |
| DeepSeek V4 Flash | DeepSeek | $0.14 | $0.28 |
| DeepSeek V4 Pro | DeepSeek | $0.44 | $0.87 |
| Llama 3.3 70B | Together AI | $0.88 | $0.88 |
| gpt-oss-120B | Together AI | $0.15 | $0.60 |
Table snapshot last reviewed on July 10, 2026 — the calculator above refreshes its prices daily from public sources and shows its own update date. Models marked † use a tokenizer that produces roughly 30% more tokens for the same text, so their effective cost is higher than the list price suggests; the calculator corrects for this.
Frequently asked questions
Related tools and guides
- OpenAI vs self-hosting cost — the same calculator, preset for GPT-5.6 against a rented H100
- How to estimate your monthly LLM token usage — turn requests per day into a tokens-per-month number