The Best LLM APIs in 2026, Priced per Million Tokens
Seven LLM APIs compared on what one shared month of traffic costs, with batch, cache and peak-hour discounts, checked in October 2026.
Short answer: for 10 million input and 2 million output tokens a month, Gemini 2.5 Flash-Lite is the cheapest model priced on this page at $1.80, and GPT-6 Luna and Claude Haiku 5.5 come in at the same total as the cheapest models in the GPT-6 and Claude 5.5 families. Prices checked on vendor pricing pages in October 2026.
The same traffic costs $40.00 on GPT-6.1 Sol or Claude Sonnet 5.5. Keep small models on classification and routing, send offline work to batch at half price, and reserve the flagship for the steps that need it. Coding-tool subscriptions are a different bill, covered in our Claude Code pricing guide.
Key facts7 tools compared: Google Gemini API, OpenAI API, Anthropic API, DeepSeek API, Mistral AI API…
- 7 tools compared: Google Gemini API, OpenAI API, Anthropic API, DeepSeek API, Mistral AI API, Together AI, xAI API
- OpenAI API (best for: Teams already on the OpenAI API that want a current small model with batch and caching built in): GPT-6 Luna $0.10 in, $0.50 out per 1M; GPT-6.1 Sol $2.00 in, $10.00 out (short prompts)
- Anthropic API (best for: Teams that route with a small model and call a larger one only for the hard requests): Claude Haiku 5.5 $0.10 in, $0.50 out per 1M (prompts to 100k tokens); Sonnet 5.5 $2.00 in, $10.00 out
- DeepSeek API (best for: Cost-sensitive apps that can move batch jobs and bulk work into off-peak UTC hours): DeepSeek V4.1 Flash $0.15 in, $0.60 out per 1M off-peak; double at peak (UTC weekday windows)
Most model comparisons list prices and stop there. A developer needs the monthly bill. Every vendor here bills input and output tokens at separate rates, and output costs three to six times input, so one shared usage level makes the rates comparable.
We price 10 million input and 2 million output tokens a month at standard rates, unless a row says otherwise.
Toolradar data: we evaluated 479 API tools in our API category in October 2026, and 131 of the 200 we rank (66%) list a free plan.
That category covers API development, testing and documentation tools, not model APIs, so this ranking uses the per-token rate instead. For the wider API picks, see best API testing tools and best API gateways.
Top Picks
Based on features, real-world fit, and value for money.
| Tool | Pricing | Best for |
|---|---|---|
| Google Gemini API | Gemini 2.5 Flash-Lite $0.10 in, $0.40 out per 1M; Gemini 3.8 Flash $0.75 in, $3.75 out until Dec 31, 2026 | High-volume classification, extraction and tagging, where the lowest bill matters most |
| OpenAI API | GPT-6 Luna $0.10 in, $0.50 out per 1M; GPT-6.1 Sol $2.00 in, $10.00 out (short prompts) | Teams already on the OpenAI API that want a current small model with batch and caching built in |
| Anthropic API | Claude Haiku 5.5 $0.10 in, $0.50 out per 1M (prompts to 100k tokens); Sonnet 5.5 $2.00 in, $10.00 out | Teams that route with a small model and call a larger one only for the hard requests |
| DeepSeek API | DeepSeek V4.1 Flash $0.15 in, $0.60 out per 1M off-peak; double at peak (UTC weekday windows) | Cost-sensitive apps that can move batch jobs and bulk work into off-peak UTC hours |
| Mistral AI API | Mistral Small 2603 $0.15 in, $0.60 out per 1M; Mistral Medium 3.5 $1.50 in, $7.50 out per 1M | Teams that want low-cost small models, a 50% batch discount and cheap repeated prompts |
| Together AI | gpt-oss-120B $0.15 in, $0.60 out per 1M on serverless inference, open-weight models from several labs | Teams that want open-weight models such as gpt-oss-120B on one bill and one API |
| xAI API | Grok 4.7 $2.00 in, $6.00 out per 1M tokens; 500k-token context window | Agent builders who want a 500k-token window and the Web Search and X Search tools in one API |
Pricing read from each vendor's own published pricing page, checked Oct 2026. Every vendor here publishes a price.
Best for: High-volume classification, extraction and tagging, where the lowest bill matters most
PricingGemini 2.5 Flash-Lite $0.10 in, $0.40 out per 1M; Gemini 3.8 Flash $0.75 in, $3.75 out until Dec 31, 2026
Best for: Teams already on the OpenAI API that want a current small model with batch and caching built in
PricingGPT-6 Luna $0.10 in, $0.50 out per 1M; GPT-6.1 Sol $2.00 in, $10.00 out (short prompts)
Best for: Teams that route with a small model and call a larger one only for the hard requests
PricingClaude Haiku 5.5 $0.10 in, $0.50 out per 1M (prompts to 100k tokens); Sonnet 5.5 $2.00 in, $10.00 out
Best for: Cost-sensitive apps that can move batch jobs and bulk work into off-peak UTC hours
PricingDeepSeek V4.1 Flash $0.15 in, $0.60 out per 1M off-peak; double at peak (UTC weekday windows)
Best for: Teams that want low-cost small models, a 50% batch discount and cheap repeated prompts
PricingMistral Small 2603 $0.15 in, $0.60 out per 1M; Mistral Medium 3.5 $1.50 in, $7.50 out per 1M
Best for: Teams that want open-weight models such as gpt-oss-120B on one bill and one API
Pricinggpt-oss-120B $0.15 in, $0.60 out per 1M on serverless inference, open-weight models from several labs
Best for: Agent builders who want a 500k-token window and the Web Search and X Search tools in one API
PricingGrok 4.7 $2.00 in, $6.00 out per 1M tokens; 500k-token context window
What it is
An LLM API bills by the token: a token can be a word, a number or a punctuation mark. Each request is charged for the input tokens you send and the output tokens the model returns, at separate rates.
Why it matters
Output is the expensive side. On these price lists, output costs three to six times input. Claude Sonnet 5.5 and GPT-6.1 Sol both price output at five times input, and Google's Gemini 3.1 Pro Preview at six times. A support bot that writes long answers pays more for its replies than for its questions, so measure both sides before you pick a model.
The same two-rate shape applies to voice pricing, covered in best text-to-speech APIs.
Price the scenario, not the sticker. A cheap input rate and a cheap output rate look harmless on their own. At 2 million output tokens, the output line is half of the GPT-6 Luna bill.
Key features to look for
Pricing
Methodology: we read each vendor's own pricing page in October 2026 and took the entry-level current text model on each list, plus a flagship for context. For Together AI we priced gpt-oss-120B as the reference open-weight model, because its serverless list also carries cheaper small models.
Items are ordered by the entry model's cost at 10 million input and 2 million output tokens a month.
The scenario cost is the input volume times the input rate, plus the output volume times the output rate, with no caching or batch unless the row says so.
Google's Gemini API has the cheapest entry rate, from Gemini 2.5 Flash-Lite on Google's price list.
Its newer Gemini 3.8 Flash is priced at one rate through December 31, 2026 and rises on January 1, 2027, so the same month of traffic costs $15.00 this year and $30.00 next year.
OpenAI and Anthropic price their current small models at the same scenario total, which is why they tie.
Claude Haiku 5.5 moves to a higher rate above 100,000 prompt tokens.
Gateways add their own markup on top of these rates; our OpenRouter alternatives page covers those fees.
DeepSeek's price list sets V4.1 Flash at a lower off-peak rate and doubles it in the UTC peak windows.
The Mistral Small model card gives its rates, and the Mistral pricing FAQ confirms the 50% batch discount.
For coding-tool bills rather than API bills, see our Cursor pricing guide.
| Plan | Price | Best for |
|---|---|---|
| Gemini 2.5 Flash-Lite | $1.80 a month | Previous-generation model and the lowest total on the list |
| GPT-6 Luna | $2.00 a month | Current small model; batch halves the rate |
| Claude Haiku 5.5 | $2.00 a month | Current small model; prompts over 100k tokens cost more |
| DeepSeek V4.1 Flash | $2.70 off-peak, $5.40 at peak | Peak hours double the rate |
| gpt-oss-120B on Together AI | $2.70 a month | Open-weight model on serverless hosting |
| Mistral Small 2603 | $2.70 a month | 256k context window; batch at half the rate |
| Gemini 3.8 Flash | $15.00 to 2026, $30.00 from 2027 | Input and output rates double on January 1, 2027 |
| GPT-6.1 Sol | $40.00 a month, $20.00 on batch | Flagship-class OpenAI model |
| Claude Sonnet 5.5 | $40.00 a month, $20.00 on batch | Mid-tier Claude model; cache hits cost 5% of input |
| Grok 4.7 | $32.00 a month | 500k-token context window |
| Mistral Medium 3.5 | $30.00 a month | 256k context window |
| DeepSeek V4 Pro | $10.56 off-peak, $21.12 at peak | The Pro tier of DeepSeek V4 |
| Claude Opus 5.5 | $80.00 a month | For long-running agentic coding and knowledge work |
| Claude Fable 5.1 | $200.00 a month | For demanding reasoning and long-horizon agentic work |
The bottom line
Default to Gemini 2.5 Flash-Lite or GPT-6 Luna for high-volume jobs with short outputs, and send anything that can wait to batch. Step up to GPT-6.1 Sol or Claude Sonnet 5.5 only for the calls that need it, because the same traffic costs twenty times more.
If the calls run on a serverless platform, the hosting bill is separate; see best serverless platforms.
Watch the calendar. Gemini 3.8 Flash doubles on January 1, 2027, and DeepSeek charges double in its UTC peak windows.
For another per-unit cost comparison in the same format, read object storage pricing compared. Cite this: Devshot, "Best LLM APIs in 2026: Price per Million Tokens Compared", October 2026.
Frequently asked questions
Some offers on this page may be paid placements or contain affiliate links.
Get the Devshot brief
Free daily newsletter, read in 5 minutes.
Subscribe free