Cheapest LLM APIs in 2026: Real Cost Per Task, Not Per Token
Which LLM API is cheapest in 2026? At $0.03 per million input tokens and $0.13 output, Qwen3.7-Flash is the cheapest production-grade model on every rate card. If you need frontier-tier quality, Meta's new Muse Spark 1.3 at $1.25 input and $4.25 output costs half of Claude Sonnet 5.5 or GPT-6.1 Sol on a blended basis. Every rate below was pulled from an official provider pricing page on 2026-11-01. Paste your actual prompt into the free token calculator and it prices that exact text against these same rates.
The 30-Second Answer
Cheapest at the token level and cheapest at the task level stopped being the same question somewhere in 2026, and the gap is now wide enough to shape architecture decisions.
- Absolute floor: Qwen3.7-Flash at $0.03 in / $0.13 out for prompts under 32K. The rate triples past that.
- Cheapest frontier-adjacent: Meta Muse Spark 1.3 at $1.25 / $4.25, released 2026-09-02.
- Cheapest if you can trade data rights: Muse Spark 1.3 Contributor at $0.10 / $0.20. Meta gets to train on your traffic.
- Cheapest with a published cache rate: DeepSeek Flash off-peak at $0.15 / $0.60, cache hits at $0.003.
- Cheapest credible coding agent: Muse Spark 1.3. On Meta's own launch chart it scored 75.4 on DeepSWE v1.1 against Claude Opus 5's 74.0, at a third of the price.
- Where budget stops mattering: Claude Opus 5.5 and Muse Wonder 1.0, both at $4 in / $20 out.
Six answers, six different winners. Which one applies depends entirely on what your workload looks like — and on how many of your input tokens are re-reads of the same prefix.
Per-Token Price Is the Wrong Question
Most API pricing comparisons sort by input rate. That number tells you very little about your invoice.
A token counter counts tokens. It does not know that your RAG pipeline re-reads the same 40K-token context on all 200,000 requests, or that your extraction pipeline writes 200 tokens and reads 2,000. Cost per token is a catalog price. Cost per task is a bill.
Three variables move the number, and all three are yours:
- The input-to-output ratio of your actual workload. A classifier sends 2,000 tokens in and 200 out. A code agent sends 30,000 in and 8,000 out.
- Your cache hit rate. Re-reading a stable prefix at 10% of the base rate reorders the ranking more than any list price on this page.
- Which tier you land in. Several providers now publish three or four prices for the same model depending on how many tokens you send.
So the table below uses a blended rate: three input tokens for every one output token, which is roughly what a chat-heavy production workload looks like. It is not the only correct ratio, but it stops the ranking from being a list of trivia.
The Real Cost Table: 19 Models, One Workload
Blended is (3 × input + output) ÷ 4, in dollars per million tokens. Standard tiers unless noted. The cached column is the rate on a prefix cache hit, which is what most re-read traffic actually costs. Sorted by blended cost, cheapest first.
| Model | Provider | Input | Output | Cached | Blended | Context |
|---|---|---|---|---|---|---|
| Qwen3.7-Flash | Alibaba | $0.03 | $0.13 | — | $0.06 | 1M |
| Muse Spark 1.3 (Contributor) | Meta | $0.10 | $0.20 | $0.002 | $0.13 | 1M |
| Qwen3.5-Flash | Alibaba | $0.10 | $0.40 | — | $0.18 | 1M |
| GPT-6 Luna | OpenAI | $0.10 | $0.50 | $0.01 | $0.20 | 1.05M |
| Claude Haiku 5.5 | Anthropic | $0.10 | $0.50 | $0.01 | $0.20 | 1M |
| Mistral Small 4 | Mistral | $0.15 | $0.60 | $0.015 | $0.26 | — |
| DeepSeek Flash (V4.1) | DeepSeek | $0.15 | $0.60 | $0.003 | $0.26 | 1M |
| Llama 4 Scout | Meta / Bedrock | $0.17 | $0.66 | — | $0.29 | 10M |
| Llama 4 Maverick | Meta / Bedrock | $0.24 | $0.97 | — | $0.42 | 1M |
| Qwen3.7-Plus | Alibaba | $0.40 | $1.60 | — | $0.70 | 1M |
| Mistral Large 4 | Mistral | $0.70 | $2.10 | $0.07 | $1.05 | 1M |
| Gemini 3.8 Flash | $0.75 | $3.75 | $0.075 | $1.50 | 1M | |
| Muse Spark 1.3 | Meta | $1.25 | $4.25 | $0.15 | $2.00 | 1M |
| Qwen3.8-Max | Alibaba | $2.00 | $6.00 | — | $3.00 | 1M |
| GPT-6.1 Sol | OpenAI | $2.00 | $10.00 | $0.10 | $4.00 | 1.05M |
| Gemini 4 Argon | $2.00 | $10.00 | $0.10 | $4.00 | 1M | |
| Claude Sonnet 5.5 | Anthropic | $2.00 | $10.00 | $0.10 | $4.00 | 1M |
| Claude Opus 5.5 | Anthropic | $4.00 | $20.00 | $0.20 | $8.00 | 1M |
| Muse Wonder 1.0 | Meta | $4.00 | $20.00 | $0.20 | $8.00 | 1M |
Qwen3.7-Flash row shows the ≤32K tier. Qwen3.7-Plus shows the ≤256K tier. Gemini 4 Argon and Gemini 3.8 Flash are promotional rates. DeepSeek Flash is the off-peak rate. Mistral Large 4 is its launch-period rate.
The gap at the bottom of that table is not subtle. Qwen3.7-Flash runs $0.055 per million blended tokens. Claude Opus 5.5 runs $8.00. That is roughly 145x between the floor and the ceiling of mainstream models, on identical token counts.
The more useful column is not the cheapest row. It is Muse Spark 1.3 at $2.00 blended, sitting under GPT-6.1 Sol, Claude Sonnet 5.5, and Gemini 4 Argon at $4.00 — and Muse Wonder 1.0 landing on exactly the same $8.00 as Claude Opus 5.5. If the plan was to put a frontier model behind a price-sensitive product, Muse is the one to price against.
Meta Muse Spark 1.3: The Model Everyone Started Pricing Wrong
Meta shut down its own Llama API on 2026-07-06 and pointed developers at something else entirely. Muse is the family that replaced it on Meta's Model API, and Muse Spark 1.3 is the model everyone is arguing about.
What Meta Actually Shipped
Three hosted models on api.meta.ai, all with a 1,048,576-token context window:
- Muse Spark 1.3 at $1.25 input, $4.25 output, $0.15 cached. The workhorse, tuned for agentic coding and long-horizon tasks. Takes text, images, and video in.
- Muse Wonder 1.0 at $4.00 input, $20.00 output, $0.20 cached. Meta's strongest model for complex software engineering and long-running agentic work, currently in preview.
- Muse Spark 1.3 Contributor at $0.10 input, $0.20 output, $0.002 cached. Same model, roughly 12x cheaper, in exchange for Meta training on your submitted content and returned responses. There is no per-request opt-out.
There is no long-context premium. You pay the same rate at 50K tokens as at 1M. That alone puts Muse ahead of OpenAI and Anthropic, both of which roughly double past 272K and 200K input respectively.
Meta also open-weighted part of the family. Muse Spark Open ships as an 816B mixture-of-experts model with 42B active parameters, in BF16 and NVFP4, running under SGLang or vLLM. It is not on the Model API, and it is not the hosted Muse Spark 1.3.
Why the Price Looks Like a Mistake
$1.25 input and $4.25 output for a model Meta says scores 75.4 on DeepSWE v1.1, against 73.0 for GPT-5.6 Sol and 74.0 for Claude Opus 5, is the kind of number that makes people hunt for the footnote. There is one, and it is worth reading before you sign a contract.
Meta's launch chart did two things that flatter the comparison. First, the competitor numbers are provider self-reported. Meta cites OpenAI's and Anthropic's own figures, while DataCamp's independent run put Claude Opus 5 at 68.8 on DeepSWE rather than 74.0. Second, the reasoning tiers do not match. The Muse Spark 1.3 column is effort at max, while Muse Spark 1.2 is shown at xhigh. Run both at the same tier and the OSWorld 2.0 gap — 66.9 against 47.6 in the published chart — narrows sharply. One review called the comparison "kind of dishonest."
Where the Marketing Overshoots
The claim that needs the most scrutiny is token efficiency. Meta says Muse Spark 1.3 uses roughly 25% fewer tokens than 1.2 for the same work. Artificial Analysis measured the opposite on verbosity: about 120 million output tokens to finish its benchmark, against a 72 million field median, which places it 139th of 636 models on that axis. Hacker News stress tests pegged usage at roughly 3x what 1.2 consumes.
At $4.25 per million output, a model that writes three times as much is not a $4.25 model. Budget for it accordingly.
| Benchmark | Muse Spark 1.3 | GPT-5.6 Sol | Claude Opus 5 |
|---|---|---|---|
| DeepSWE v1.1 (agentic coding) | 75.4 | 73.0 | 74.0 |
| SWEAtlas CodeBase QnA | 59.4 | 53.5 | 52.7 |
| Terminal-Bench 2.1 | 88.8 | 88.8 | 86.7 |
| MRCR 512K–1M (long context) | 98.1 | 73.8 | n/a |
| GDPVal-AA v2 (Elo) | 1,754 | 1,710 | 1,824 |
| JobBench (professional tool use) | 64.9 | 45.4 | 65.7 |
| OSWorld 2.0 (computer use) | 66.9 | 62.7 | 68.3 |
| DeepSearchQA (agentic browsing) | 89.4 | 93.1 | 90.4 |
| AutomationBench | 49.4 | 46.7 | 50.3 |
Scores as published by Meta at the Muse Spark 1.3 launch on 2026-09-02, with reasoning effort at max for 1.3 and xhigh for 1.2. Competitor figures are provider self-reported. The comparison baseline predates GPT-6.1 Sol and Claude Opus 5.5.
Read down the right-hand column and the picture settles. Muse Spark 1.3 wins on coding — DeepSWE, SWEAtlas, and a tie on Terminal-Bench — and wins outright on long-context retrieval, where MRCR at 512K–1M goes 98.1 against GPT-5.6 Sol's 73.8. It loses every general agentic row to Claude Opus 5: GDPVal, JobBench, OSWorld, AutomationBench. It loses DeepSearchQA to GPT-5.6 Sol. Meta's own chart puts 1.3 at 1,754 Elo on knowledge work against Claude Opus 5's 1,824.
So "improved agentic" mostly means "improved coding." If your workload is not writing code, the 75.4 does not transfer.
The Discounts That Are Not Discounts
Rates on this page are the ones you would pay today. Several of them move, and three of them move based on something you control.
| Model | What you pay now | What it becomes | Trigger |
|---|---|---|---|
| Gemini 4 Argon | $2.00 / $10.00 | $4.00 / $20.00 | 2026-12-01 |
| Gemini 3.8 Flash | $0.75 / $3.75 | $1.50 / $7.50 | 2027-01-01 |
| Mistral Large 4 | $0.70 / $2.10 | $1.36 / $4.18 | Launch-period discount |
| DeepSeek Flash | $0.15 / $0.60 | $0.30 / $1.20 | Peak hours, UTC weekdays |
| Qwen3.7-Flash | $0.03 / $0.13 | $0.20 / $0.80 | Input past 256K |
| Qwen3.7-Plus | $0.40 / $1.60 | $1.20 / $4.80 | Input past 256K |
The DeepSeek row is the trap. Rates double for eight hours a day, and a batch job running in a US or European business day pays peak while a colleague's invoice in another timezone does not. Schedule bulk work outside 01:00–04:00 and 06:00–10:00 UTC.
The Qwen tiers hit harder than the headline suggests. Qwen3.7-Flash at $0.03 is the cheapest thing in this article. Send it 300K tokens and the rate becomes $0.20, nearly seven times the headline figure. Qwen prices by total input size, not by output size, so a single long document can move you three tiers.
Four Real Bills
Same month, same workload, different model. Token counts include the prompt, the system prompt, and expected output.
| Workload | Model | Monthly bill |
|---|---|---|
| Chat assistant 10K in / 2K out 50,000 requests |
Qwen3.7-Flash | $28 |
| Claude Haiku 5.5 | $100 | |
| GPT-6.1 Sol | $2,000 | |
| Code agent 30K in (70% cached) 8K out, 20,000 requests |
DeepSeek Flash (off-peak) | $124 |
| Muse Spark 1.3 | $968 | |
| Claude Opus 5.5 | $4,004 | |
| Document extraction 500K in / 50K out 2,000 documents |
Gemini 3.8 Flash | $1,125 |
| Muse Spark 1.3 | $1,675 | |
| Gemini 4 Argon | $3,000 | |
| Classification 2K in / 200 out 500,000 calls |
Qwen3.7-Flash | $43 |
| Muse Spark 1.3 Contributor | $120 | |
| Claude Haiku 5.5 | $150 |
The chat assistant and classification rows are where volume decides everything. A 500,000-call classification pipeline costs $43 a month on Qwen3.7-Flash, $150 on Claude Haiku 5.5, $120 on Muse Spark Contributor. Nobody needs a frontier model to label a support ticket, and on that job the gap between cheapest and best stays under $110 a month no matter how many calls you run.
The code agent row is the one to stare at. DeepSeek Flash off-peak bills $124 for 20,000 coding-agent requests; Muse Spark 1.3 bills $968, roughly eight times as much. If your agents write code, that difference buys something real — on Meta's own chart, Muse Spark 1.3 beat Claude Opus 5 on DeepSWE v1.1, 75.4 to 74.0, while Opus 5 bills $4,004 for the same traffic.
The document extraction row hides a trap. Gemini 3.8 Flash at $1,125 beats Gemini 4 Argon at $3,000 on price alone, but the flash rate is promotional and ends on 2026-12-31. Sign up in November and you will still be paying $1.50 input and $7.50 output in January.
How the Free Token Calculator Ranks Them
Every rate in this article feeds the same table the free token calculator runs on. Paste your actual prompt, set the expected output percentage, and each provider card prices that exact text against its own tokenizer or estimator.
Two things it does that a spreadsheet does not. It counts tokens with the model's real tokenizer where one is published, so OpenAI numbers come from gpt-tokenizer and open-weight models come from Hugging Face transformers running in your browser. And it prices Anthropic and Google with a per-provider character estimator calibrated against their published behavior, so those cards carry an estimated badge instead of pretending to an exact count. It also applies Anthropic's newer tokenizer factor to Claude Opus 4.7 and later, which produce roughly 30% more tokens than earlier Claude models for identical text.
Everything runs locally in your browser. Your prompt never leaves your machine. For the wider rate card behind this ranking, see the full AI pricing comparison, and for the mechanics, the how to count tokens walkthrough.
Frequently Asked Questions
What is the cheapest LLM API in 2026?
Qwen3.7-Flash at $0.03 per million input tokens and $0.13 output, for prompts under 32K tokens. At $0.055 per million blended tokens (three input tokens for every one output token) it is the cheapest production-grade model on any rate card we verified on 2026-11-01. The rate rises to $0.20 input and $0.80 output once a request passes 256K input tokens.
What is the cheapest frontier-quality LLM API?
Meta Muse Spark 1.3 at $1.25 input and $4.25 output, or $2.00 per million blended tokens. That is half the $4.00 blended rate of GPT-6.1 Sol, Claude Sonnet 5.5, and Gemini 4 Argon, and Meta charges no long-context premium on top. Meta's own launch chart put it at 75.4 on DeepSWE v1.1 against Claude Opus 5's 74.0, though the competitor figures in that chart are provider self-reported.
Is Meta Muse cheaper than Llama?
On raw price, no. Muse Spark 1.3 costs $1.25 per million input tokens where Llama 4 Maverick costs $0.24 through AWS Bedrock. What changed is the model. Meta shut down its own Llama API on 2026-07-06 and replaced it with Muse, a closed family built for agentic work with a 1,048,576-token context window. Llama 4 stays available through Bedrock, Together, and Groq, and an open-weight Muse Spark release (816B parameters, 42B active) exists separately from the hosted API.
Why do some AI API prices change every month?
Two reasons. Gemini 4 Argon and Gemini 3.8 Flash are running promotional rates that expire on 2026-11-30 and 2026-12-31, after which their rates roughly double. Mistral Large 4's $0.70 input rate reflects a launch-period discount on a $1.36 list price. Providers reprice often enough that a pricing page three months old is a genuine budgeting risk.
Is DeepSeek the cheapest API?
Only off-peak. DeepSeek Flash costs $0.15 input and $0.60 output outside peak hours, with cache hits at $0.003 per million. Peak pricing applies from 01:00-04:00 and 06:00-10:00 UTC on weekdays and doubles both rates to $0.30 and $1.20. Traffic scheduled inside those windows pays peak whether or not you knew it did.
How do I cut my AI API bill?
Three levers, in order of impact. Cache the stable prefix first, since Anthropic, OpenAI, Google, Meta, and DeepSeek all publish cache-hit rates between 2.5% and 10% of base input, and DeepSeek's is $0.003. Then run bulk work off-peak if you use DeepSeek. Last, match the tier to the job: a classification pipeline on Haiku 5.5 or a flash model costs a fraction of a frontier model, and the quality gap does not show up on that task.
Which LLM API should I pick for a coding agent?
Muse Spark 1.3 at $1.25 input and $4.25 output if you want the strongest price-to-capability ratio. Meta's chart has it ahead of Claude Opus 5 on DeepSWE v1.1, 75.4 to 74.0, at half the blended cost of Claude Sonnet 5.5. Claude Opus 5.5 at $4 and $20 if agentic tool use and computer use matter more than cost. Budget for verbose output, since independent measurements put Muse Spark 1.3 at roughly three times the output tokens of its own predecessor.
How do I count tokens for different providers?
Each provider tokenizes differently, so one count does not fit all. The token calculator runs OpenAI text through gpt-tokenizer and open-weight models through Hugging Face transformers inside your browser, then estimates Anthropic and Google from their published per-character behavior. It also applies Anthropic's newer tokenizer factor to Claude Opus 4.7 and later, which produces roughly 30% more tokens than earlier Claude models for the same text.
Sources
- OpenAI API Pricing. developers.openai.com/api/docs/pricing. verified 2026-11-01 (GPT-6.1, GPT-6, GPT-5.6, GPT-5.5, GPT-5.4 tiers)
- Anthropic Claude Pricing. platform.claude.com/docs/en/about-claude/pricing. verified 2026-11-01 (Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.1, Mythos 5.1, cache write tiers)
- Google Gemini API Pricing. ai.google.dev/gemini-api/docs/pricing. verified 2026-11-01 (Gemini 4 Argon, 3.8 Flash, 3.6 Flash, 2.5 Pro / Flash, long-context tiers)
- DeepSeek Models & Pricing. api-docs.deepseek.com/quick_start/pricing. verified 2026-11-01 (DeepSeek Flash V4.1, V4 Pro, peak-hour multiplier)
- Mistral Inference Pricing. docs.mistral.ai/inference/pricing. verified 2026-11-01 (Large 4, Small 4, cache read rates)
- Alibaba Cloud Model Studio Pricing. docs.modelstudio.console.alibabacloud.com/en/model-studio/model-pricing. verified 2026-11-01 (Qwen3.8 Max / Flash / 27B, Qwen3.7 Max / Plus / Flash, input-size tiers)
- Meta Model API Pricing & Rate Limits. dev.meta.ai/docs/pricing-rate-limits. verified 2026-11-01 (Muse Wonder 1.0, Muse Spark 1.3 / 1.2 / 1.1, Contributor tier)
- Meta Model API Overview. dev.meta.ai/docs/overview (Muse model family, context windows, API surface, Muse Spark Open)
- AWS Bedrock Pricing. aws.amazon.com/bedrock/pricing/. verified 2026-11-01 (Llama 4 Maverick / Scout standard tier, batch rates)
Cross-checked against data/models.json, regenerated 2026-11-01. All rates per 1M tokens, USD, standard tier unless noted. Muse Spark 1.3 benchmark figures are as published by Meta at its 2026-09-02 launch.