Cheapest LLM API (Nov 2026): 10 Lowest Prices, Live
The cheapest LLM API right now is inclusionAI: Ling 3.0 Tiny at $0.015 per million input tokens and $0.045 per million output tokens. Here are the 10 lowest-priced models, the cheapest for coding, for long documents and for images, and the cheapest model from each big lab.
Prices in US dollars per 1 million tokens, from OpenRouter's live list. Last checked Mon, 23 Nov 2026 10:01 UTC.
The 10 cheapest LLM APIs
| Model | Input / 1M | Output / 1M | Cached input / 1M | Context |
|---|---|---|---|---|
| inclusionAI: Ling 3.0 Tiny | $0.015 | $0.045 | $0.003 | 262K |
| Meta: Llama 3.1 8B Instruct | $0.02 | $0.04 | — | 131K |
| Mistral: Mistral Nemo | $0.029 | $0.03 | — | 131K |
| inclusionAI: Ling 3.0 Flash | $0.021 | $0.063 | $0.004 | 262K |
| Google: Gemma 3 4B | $0.04 | $0.05 | $0.02 | 131K |
| Nex AGI: Nex-N2.5-Mini | $0.025 | $0.1 | $0.003 | 262K |
| Z.ai: GLM Flash Latest | $0.04 | $0.078 | $0.03 | 1M |
| Z.ai: GLM 5.3 Flash | $0.04 | $0.078 | $0.03 | 1M |
| Qwen: Qwen3.7 Flash | $0.03 | $0.13 | $0.006 | 1M |
| OpenAI: gpt-oss-20b | $0.03 | $0.13 | $0.03 | 131K |
A chatbot reply (1,500 tokens in, 400 out) costs $0.000041 on inclusionAI: Ling 3.0 Tiny. A thousand of them cost $0.04.
Cheapest LLM API for coding
Models made for code (their names say Code, Coder or Devstral), cheapest first.
| Model | Input / 1M | Output / 1M | Cached input / 1M | Context |
|---|---|---|---|---|
| Qwen: Qwen3 Coder 30B A3B Instruct | $0.07 | $0.28 | — | 262K |
| Qwen: Qwen3 Coder Next | $0.12 | $0.8 | $0.07 | 262K |
| Qwen: Qwen3 Coder Flash | $0.195 | $0.975 | $0.039 | 1M |
| Mistral: Codestral 2508 | $0.3 | $0.9 | $0.03 | 256K |
| Qwen: Qwen3 Coder 480B A35B | $0.3 | $1 | $0.1 | 262K |
| OpenAI: GPT-5.1-Codex-Mini | $0.25 | $2 | $0.03 | 400K |
Cheapest with a 1M-token context window
For whole codebases, books or long chats.
| Model | Input / 1M | Output / 1M | Cached input / 1M | Context |
|---|---|---|---|---|
| Z.ai: GLM Flash Latest | $0.04 | $0.078 | $0.03 | 1M |
| Z.ai: GLM 5.3 Flash | $0.04 | $0.078 | $0.03 | 1M |
| Qwen: Qwen3.7 Flash | $0.03 | $0.13 | $0.006 | 1M |
| Tencent: Hy4 flash | $0.035 | $0.141 | $0.002 | 1M |
| DeepSeek: DeepSeek V4.1 Flash | $0.05 | $0.199 | $0.001 | 1M |
| inclusionAI: Ling 3.1 Flash | $0.06 | $0.18 | $0.012 | 1M |
Cheapest that can read images
| Model | Input / 1M | Output / 1M | Cached input / 1M | Context |
|---|---|---|---|---|
| Google: Gemma 3 4B | $0.04 | $0.05 | $0.02 | 131K |
| Nex AGI: Nex-N2.5-Mini | $0.025 | $0.1 | $0.003 | 262K |
| Z.ai: GLM Flash Latest | $0.04 | $0.078 | $0.03 | 1M |
| Z.ai: GLM 5.3 Flash | $0.04 | $0.078 | $0.03 | 1M |
| Qwen: Qwen3.7 Flash | $0.03 | $0.13 | $0.006 | 1M |
| Tencent: Hy4 flash | $0.035 | $0.141 | $0.002 | 1M |
Cheapest model from each lab
| Lab | Cheapest model | In / out per 1M | 1,000 replies |
|---|---|---|---|
| Claude | Claude Haiku 5.5 | $0.1 / $0.5 | $0.35 |
| OpenAI | gpt-oss-20b | $0.03 / $0.13 | $0.10 |
| Gemini | Gemma 3 4B | $0.04 / $0.05 | $0.08 |
| DeepSeek | DeepSeek V4.1 Flash | $0.05 / $0.199 | $0.15 |
| Grok | Grok 4.3 | $1.25 / $2.5 | $2.88 |
| Mistral | Mistral Nemo | $0.029 / $0.03 | $0.06 |
| Qwen | Qwen3.7 Flash | $0.03 / $0.13 | $0.10 |
| Kimi | Kimi K2.5 | $0.5 / $2.5 | $1.75 |
| Meta Llama | Llama 3.1 8B Instruct | $0.02 / $0.04 | $0.05 |
Cheaper still: free
If your project is small, you may not need to pay at all. The free LLM API guide lists free models with their daily limits, and the free LLM API calculator shows whether a free tier covers your use.
Compare every model's price
This page covers one slice. The LLM API pricing table lists all 360 models side by side, refreshed every 30 minutes, with a filter to find any model fast.
New to LLM APIs?
Start with what an LLM API is, then how tokens work and how to get an API key. When you're ready to write code, see how to use an LLM API in Python, and to keep bills down read prompt caching explained and how to cut LLM API costs. Want it free? See the free LLM API guide.
Questions
What is the cheapest LLM API?
inclusionAI: Ling 3.0 Tiny, at $0.015 in and $0.045 out per million tokens, among models with at least a 32K context window. Next are Meta: Llama 3.1 8B Instruct ($0.02 / $0.04) and Mistral: Mistral Nemo ($0.029 / $0.03).
What is the cheapest LLM API for coding?
Among models built for code, Qwen: Qwen3 Coder 30B A3B Instruct is cheapest at $0.07 in and $0.28 out per million tokens. Coding agents send a lot of input, so cached input prices matter too.
Is there a free LLM API?
Yes. Several providers have free tiers or free models, with daily limits. The free LLM API guide lists the ones that work today.
Which cheap LLM API provider should I use?
If you want one key for many models, OpenRouter lists all of the models here at the providers' own prices plus a 5.5% fee when buying credits. If you only use one lab's models, buying direct skips that fee.
How do you rank the cheapest models?
By input price × 3 + output price, because most requests send about three times more tokens than they get back. Models with less than a 32K-token context window, and free models, are left out.
Get this in your inbox at 7am
One free email each morning with the AI repos, models and stories that are picking up speed, including new free models. Your own time zone, no spam.