Guides / Cheap API

Best cheap LLM APIs (open models)

Updated November 2026

As of November 2026, the best option is Qwen3.8 27B by Alibaba (Qwen), with a Small LM Index of 77.0, followed by Qwen3.6 35B-A3B (72.2) and Gemma 4 31B (70.1).

Open-weight models served on OpenRouter for at most $0.20 per million tokens (3:1 input:output blend, cheapest provider), ranked by the Small LM Index.

#ModelLabSmall LM IndexParamsMemory (4-bit)API / 1MLicense
1Qwen3.8 27BAlibaba (Qwen)77.027B~17.9 GB$0.13Apache-2.0
2Qwen3.6 35B-A3BAlibaba (Qwen)72.235B (3B active)~22.6 GB$0.031Apache-2.0
3Gemma 4 31BGoogle70.130.7B~21.9 GB$0.16Apache-2.0
4Gemma 4 26B-A4BGoogle67.525.2B (3.8B active)~16.8 GB$0.068Apache-2.0
5GLM-4.7-FlashZ.ai (GLM)66.131B (3B active)~20.4 GB$0.15MIT
6gpt-oss-20bOpenAI64.020.9B (3.6B active)~13.8 GB$0.020Apache-2.0
7Qwen3.5 9BAlibaba (Qwen)63.99B~6.4 GB$0.028Apache-2.0
8Nemotron 3.5 LightningNVIDIA63.631.6B (3.6B active)~22.4 GB$0.049OpenMDW-1.1
9Granite 4.2 8BIBM (Granite)63.58B~6.9 GB$0.082Apache-2.0
10Nemotron 3 Nano 30B-A3BNVIDIA62.631.6B (3.5B active)~20.3 GB$0.10NVIDIA Open Model
11Ministral 3 14BMistral AI60.014B~10.6 GB$0.20Apache-2.0
12Ministral 3 8BMistral AI55.28B~6.7 GB$0.15Apache-2.0
13Qwen3 32BAlibaba (Qwen)52.432.8B~23.2 GB$0.13Apache-2.0
14Ministral 3 3BMistral AI49.43B~3.3 GB$0.10Apache-2.0
15Phi-4Microsoft (Phi)44.714.7B~11.4 GB$0.070MIT

Memory covers the weights only; long contexts need more. Scores are mostly lab-reported, so gaps of 1–2 points are noise. See the methodology, or filter the full leaderboard yourself.

Head to head

Questions

What is the best cheap LLM API?

As of November 2026, the best option is Qwen3.8 27B by Alibaba (Qwen), with a Small LM Index of 77.0, followed by Qwen3.6 35B-A3B (72.2) and Gemma 4 31B (70.1).

How is this list ranked?

Open-weight models served on OpenRouter for at most $0.20 per million tokens (3:1 input:output blend, cheapest provider), ranked by the Small LM Index.

Which of the top five needs the least memory?

Gemma 4 26B-A4B, at about 16.8 GB with 4-bit quantization.

Which is the cheapest to use through an API?

gpt-oss-20b, at $0.020 per million tokens from the cheapest provider on OpenRouter.

Other guides