Cheapest LLM APIs (October 2026): Best-Value Models for Low Cost, Coding, Long Context and Chinese Vendors
TL;DR: By official list price (checked 2026-10-22), the cheapest LLM API overall is mimo-v2.6-flash / seed-2-0-mini (blended $0.175 per 1M tokens at a 3:1 input:output mix); for a cache-heavy coding agent the cheapest to run is mimo-v2.6-flash, for 500K-token prompts it is mimo-v2.6-flash, and among Chinese vendors it is mimo-v2.6-flash / seed-2-0-mini — test quality on your own task before you switch.
“Cheapest” depends on how you use a model: a chatbot, a coding agent that re-sends the same files with caching, and a 500K-token document job rank models differently. Every number on this page is computed from the same official price table our token counter and cost calculator use (checked 2026-10-22), so the rankings move when vendors change prices.
Open the cost calculator →All guides
Quick answer by use case
| Use case | Cheapest by list price | How we ranked it |
|---|---|---|
| Cheapest overall | mimo-v2.6-flash / seed-2-0-mini | Blended price = 0.75 × input + 0.25 × output per 1M tokens (short prompts) |
| Coding agent (prompt caching) | mimo-v2.6-flash | Monthly cost of the calculator’s “Coding agent” preset: 300 requests/day × 60K input (80%% cached) + 3K output, 30 days |
| Long context (500K-token prompts) | mimo-v2.6-flash | Cost of one 500K-in + 4K-out request, using the long-prompt price tier where one applies; models with a documented window ≥ 1M |
| Chinese vendors | mimo-v2.6-flash / seed-2-0-mini | Same blended price, DeepSeek, Qwen, MiMo, Kimi, GLM, Doubao, Hunyuan and MiniMax only |
Cheapest is not best. Smaller, cheaper models are usually weaker at hard reasoning and long agent runs. Shortlist two or three models from these tables, run the same 20–50 real prompts through each, and compare quality and the usage each response reports.
1. Cheapest LLM APIs overall
Ranked by blended price for short prompts (most chat and classification traffic is input-heavy, so input gets 75% of the weight). Ties are listed in alphabetical order.
| Model | Vendor | $ / 1M in | $ / 1M cached | $ / 1M out | Blended (3:1) | Source |
|---|---|---|---|---|---|---|
mimo-v2.6-flash | Xiaomi MiMo | $0.14 | $0.0028 | $0.28 | $0.175 | source ↗ |
seed-2-0-mini | ByteDance Doubao | $0.10 | $0.02 | $0.40 | $0.175 | source ↗ |
Claude Haiku 5.5 | Anthropic | $0.10 | $0.01 | $0.50 | $0.20 | source ↗ |
gpt-6-luna | OpenAI | $0.10 | $0.01 | $0.50 | $0.20 | source ↗ |
qwen3.8-flash | Alibaba Qwen | $0.15 | — | $0.47 | $0.23 | source ↗ |
hy3 | Tencent Hunyuan | $0.132 | $0.033 | $0.528 | $0.231 | source ↗ |
glm-5.3-flash | Zhipu GLM | $0.15 | $0.03 | $0.50 | $0.2375 | source ↗ |
MiniMax-M3.1-Flash | MiniMax | $0.15 | $0.015 | $0.60 | $0.2625 | source ↗ |
mistral-small-2603 | Mistral | $0.15 | — | $0.60 | $0.2625 | source ↗ |
MiniMax-M3 | MiniMax | $0.30 | $0.06 | $1.20 | $0.525 | source ↗ |
Watch the notes on the vendor pages: some prices are promotional or change on a set date, and some models charge more above a prompt-length threshold. The full price comparison lists every model with its notes.
2. Cheapest for coding agents
Coding agents re-send the same files and instructions on every step, so the cache-hit price matters as much as the headline input price. This table uses the cost calculator’s “Coding agent” preset (300 requests a day, 60,000 input tokens with 80% served from cache, 3,000 output tokens, 30 days). Where a vendor does not publish a cache price, cached tokens are billed at the input rate, exactly as in the calculator.
| Model | Vendor | $ / 1M in | $ / 1M cached | $ / 1M out | Monthly (preset) | Source |
|---|---|---|---|---|---|---|
mimo-v2.6-flash | Xiaomi MiMo | $0.14 | $0.0028 | $0.28 | $23.89 | source ↗ |
Claude Haiku 5.5 | Anthropic | $0.10 | $0.01 | $0.50 | $28.62 | source ↗ |
gpt-6-luna | OpenAI | $0.10 | $0.01 | $0.50 | $28.62 | source ↗ |
seed-2-0-mini | ByteDance Doubao | $0.10 | $0.02 | $0.40 | $30.24 | source ↗ |
MiniMax-M3.1-Flash | MiniMax | $0.15 | $0.015 | $0.60 | $38.88 | source ↗ |
glm-5.3-flash | Zhipu GLM | $0.15 | $0.03 | $0.50 | $42.66 | source ↗ |
gpt-5.3-codex (reference) | OpenAI | $1.75 | $0.175 | $14.00 | $642.60 | source ↗ |
The “reference” row is gpt-5.3-codex, OpenAI’s Codex-branded coding model, shown for comparison. Price is only half the decision for coding: agent quality varies a lot between models, so try your shortlist on a real task in your own repository.
3. Cheapest for long context
For whole-document jobs the long-prompt tier matters: several models switch to a higher rate for the full request once a prompt crosses a threshold. This table prices one request with 500,000 input tokens and 4,000 output tokens, using each model’s tier for that size. Only models whose context window is documented at about 1M tokens on our context window comparison or the vendor’s model list are included.
| Model | Context window | $ / 1M in at 500K | $ / 1M out at 500K | One 500K-in + 4K-out request | Source |
|---|---|---|---|---|---|
mimo-v2.6-flash | 1M | $0.14 | $0.28 | $0.0711 | source ↗ |
qwen3.8-flash | 1M | $0.15 | $0.47 | $0.0769 | source ↗ |
gpt-6-luna | 1,050,000 | $0.20 | $0.75 | $0.103 | source ↗ |
deepseek-flash | 1M | $0.30 | $1.20 | $0.1548 | source ↗ |
gemini-3.5-flash-lite | 1,048,576 | $0.30 | $2.50 | $0.16 | source ↗ |
mimo-v2.6-pro | 1M | $0.435 | $0.87 | $0.221 | source ↗ |
Claude Haiku 5.5 | 1M | $0.50 | $2.50 | $0.26 | source ↗ |
gemini-3.8-flash | 1,048,576 | $0.75 | $3.75 | $0.39 | source ↗ |
A big window still costs money on every request. Retrieve the relevant parts first, and keep a stable prefix so prompt caching can make repeat requests cheaper.
4. Cheapest Chinese LLM APIs
Prices below are the USD list prices on each vendor’s international page, so they compare directly with the tables above; mainland-China CNY prices and payment methods differ (for example, Xiaomi MiMo lists both). The last column links to our step-by-step API key guide where we have one.
| Model | Vendor | $ / 1M in | $ / 1M cached | $ / 1M out | Blended (3:1) | Key guide |
|---|---|---|---|---|---|---|
mimo-v2.6-flash | Xiaomi MiMo | $0.14 | $0.0028 | $0.28 | $0.175 | guide |
seed-2-0-mini | ByteDance Doubao | $0.10 | $0.02 | $0.40 | $0.175 | guide |
qwen3.8-flash | Alibaba Qwen | $0.15 | — | $0.47 | $0.23 | guide |
hy3 | Tencent Hunyuan | $0.132 | $0.033 | $0.528 | $0.231 | source ↗ |
glm-5.3-flash | Zhipu GLM | $0.15 | $0.03 | $0.50 | $0.2375 | guide |
MiniMax-M3.1-Flash | MiniMax | $0.15 | $0.015 | $0.60 | $0.2625 | source ↗ |
MiniMax-M3 | MiniMax | $0.30 | $0.06 | $1.20 | $0.525 | source ↗ |
deepseek-flash | DeepSeek | $0.30 | $0.006 | $1.20 | $0.525 | guide |
mimo-v2.6-pro | Xiaomi MiMo | $0.435 | $0.0036 | $0.87 | $0.5437 | guide |
qwen3.7-plus | Alibaba Qwen | $0.40 | $0.08 | $1.60 | $0.70 | guide |
How to use these rankings
- Measure your real prompt size in the token counter and read output tokens from a few real responses.
- Enter those numbers in the cost calculator — your ratio of input to output and your cache-hit share can reorder the list.
- Shortlist two or three models, test quality, then confirm the price on the vendor page linked in each row before you commit a budget.
FAQ
What is the cheapest LLM API right now?
By official list price checked 2026-10-22, mimo-v2.6-flash / seed-2-0-mini has the lowest blended price ($0.175 per 1M tokens at a 3:1 input:output mix, $0.14 in / $0.28 out). Prices change often; each row links to the vendor page.
Which cheap model is best for coding?
For an agent-style coding workload with heavy prompt caching, mimo-v2.6-flash is the cheapest to run in our preset ($23.89 a month). Cheaper is not automatically better at code, so test two or three candidates on your own repository.
Why does the cheapest model change with prompt length?
Some vendors charge a higher rate for the whole request once a prompt passes a threshold (for example 100K, 128K, 200K, 256K or 272K tokens depending on the model). Our calculator and this page pick the tier from the prompt size.
Are these prices in USD or CNY?
USD list prices from each vendor’s official international pricing page, standard (non-batch) tier, before tax. Mainland-China CNY prices can differ.
Where do the numbers come from?
From one price table that we copy by hand from each vendor’s official pricing page; the token counter and cost calculator use the same table, and every row here links to its source.
Sources
Vendor features and prices were checked against these official pages on 2026-10-22. Products change; if something here no longer matches, the official page is right.
- Alibaba Qwen — pricing
https://www.alibabacloud.com/help/en/model-studio/model-pricing - Anthropic — pricing
https://docs.anthropic.com/en/docs/about-claude/pricing - ByteDance Doubao — pricing
https://docs.byteplus.com/en/docs/ModelArk/1544106 - DeepSeek — pricing
https://api-docs.deepseek.com/quick_start/pricing - Google — pricing
https://ai.google.dev/gemini-api/docs/pricing - MiniMax — pricing
https://platform.minimax.io/docs/guides/pricing-paygo - Mistral — pricing
https://docs.mistral.ai/models/model-cards/mistral-medium-3-5-26-04 - Mistral — pricing
https://docs.mistral.ai/models/model-cards/mistral-small-4-0-26-03 - Moonshot Kimi — pricing
https://platform.kimi.ai/docs/pricing/chat - OpenAI — pricing
https://developers.openai.com/api/docs/pricing - Tencent Hunyuan — pricing
https://intl.cloud.tencent.com/zh/document/product/1300/78937 - Xiaomi MiMo — pricing
https://mimo.mi.com/docs/en-US/price/pay-as-you-go - Zhipu GLM — pricing
https://docs.z.ai/guides/overview/pricing - xAI — pricing
https://docs.x.ai/developers/pricing - og.cc.cd — LLM context window comparison (vendor model pages)
https://og.cc.cd/guides/llm-context-window-comparison/