Every major AI API ranked by cost per token. Updated November 2026 with the latest pricing from OpenAI, Anthropic, Google, DeepSeek and Alibaba Qwen.
Prices are per million tokens (1M tokens ≈ 750,000 words). Sorted by input token cost, lowest first. Current models only — retired models (Claude 3.x, Gemini 1.5/2.0) have been removed.
| # | Model | Provider | Input /1M | Output /1M | Best For |
|---|---|---|---|---|---|
| 1 | GPT-6 Luna | OpenAI | $0.10 | $0.50 | Cheapest frontier |
| 2 | Claude Haiku 5.5 | Anthropic | $0.10 | $0.50 | Quality budget |
| 3 | GPT-4o mini (legacy) | OpenAI | $0.15 | $0.60 | High volume |
| 4 | Qwen3.8-Flash | Qwen | $0.15 | $0.47 | Cheapest output |
| 5 | Gemini 3.5 Flash-Lite | $0.30 | $2.50 | Budget reasoning | |
| 6 | DeepSeek Flash (V4.1) | DeepSeek | $0.30 | $1.20 | Half price off-peak |
| 7 | Gemini 3.8 Flash | $0.75 | $3.75 | Fast frontier | |
| 8 | GPT-6.1 Terra | OpenAI | $1.00 | $5.00 | Mid-tier value |
| 9 | Gemini 2.5 Pro | $1.25 | $10.00 | Reasoning | |
| 10 | GPT-6.1 Sol | OpenAI | $2.00 | $10.00 | Balanced flagship |
| 11 | Claude Sonnet 5.5 | Anthropic | $2.00 | $10.00 | Workhorse |
| 12 | Gemini 4 Argon | $2.00 | $10.00 | Premium multimodal |
OpenAI's cheapest current-generation model at $0.10/$0.50 per million tokens — frontier-family quality at a budget price, with a ~1M token context window. A strong default for high-volume classification, extraction, and everyday chat. Batch/Flex pricing halves it again to $0.05/$0.25.
Anthropic's new budget model matches GPT-6 Luna at $0.10/$0.50 per million tokens for prompts up to 100K tokens (prompts above that are billed at $0.50/$2.50), with a 1M context window. Note it uses Anthropic's newer tokenizer, so the same text counts as roughly 30% more tokens than on older Claude models.
Alibaba's budget Qwen model costs $0.15 per million input tokens and $0.47 per million output tokens (international rate, prompts up to 1M tokens). Output is actually a little cheaper than GPT-6 Luna and Claude Haiku 5.5, so for long, output-heavy replies it can come out cheapest overall. It's billed through Alibaba Cloud Model Studio, which takes a few more setup steps than the US providers.
DeepSeek charges $0.30 input / $1.20 output per million tokens at peak times, and half that ($0.15 / $0.60) off-peak. Peak hours are weekdays 01:00–04:00 and 06:00–10:00 UTC (9am–noon and 2–6pm Beijing time), so most US working hours fall in the cheaper off-peak window. GPT-4o mini (legacy) also sits at $0.15/M input, but it's scheduled for API shutdown on January 14, 2027, so start new projects on GPT-6 Luna instead.
Assume a customer support chatbot processing 1 million requests/month with 500 input + 200 output tokens each:
| Model | Input Cost | Output Cost | Monthly Total | vs GPT-4o (legacy) |
|---|---|---|---|---|
| GPT-6 Luna | $50 | $100 | $150 | -95% |
| Claude Haiku 5.5 | $50 | $100 | $150 | -95% |
| Qwen3.8-Flash | $75 | $94 | $169 | -95% |
| GPT-4o mini (legacy) | $75 | $120 | $195 | -94% |
| DeepSeek Flash (V4.1, peak) | $150 | $240 | $390 | -88% |
| Gemini 3.5 Flash-Lite | $150 | $500 | $650 | -80% |
| Claude Sonnet 5.5 | $1,000 | $2,000 | $3,000 | -8% |
| GPT-4o (legacy) | $1,250 | $2,000 | $3,250 | — |
Meta's Llama and Mistral's open-weight models can be significantly cheaper when self-hosted, but running your own infrastructure adds complexity and fixed costs — and hosted pricing varies by provider. AIModelCalc currently tracks five first-party providers (OpenAI, Anthropic, Google, DeepSeek and Alibaba Qwen) where published per-token pricing is stable; for open-weight models, check your hosting provider's current rate, since it's often competitive with the cheapest closed-source options above.
Self-hosting makes sense if you process more than 50M tokens/month and have engineering capacity. Below that threshold, hosted APIs are simpler and often cheaper when you factor in GPU costs and maintenance.
Use our free calculator to estimate exactly what your workload will cost across all major models.
Calculate My AI API Cost →☕ Keep AIModelCalc free & up to date
This calculator is free and updated by hand whenever providers change their prices. If it saved you time, a small tip helps cover hosting and keeps it current.