Licensing · Open source

Open source LLM pricing

Every open-source LLM with license, cheapest API provider, and rough self-host cost. Weights on HuggingFace, API on OpenRouter, DeepInfra, Together, Fireworks, or self-host.

Models251
Cheapest API$0.00
LicensesApache · MIT · Custom
What this page is
This page lists every open-source LLM with priced API access. For each, we show the license, cheapest API on the market, and a rough self-host cost estimate based on parameter count. Weights are downloadable from HuggingFace. APIs are offered by OpenRouter, DeepInfra, Together, Fireworks, Groq, Cerebras, and others. For very high volume, self-hosting on reserved GPUs is cheaper; for anything under 100M tokens per day, API access usually wins on total cost.

Cheapest input price first.

#ModelCheapest API
1Gemma 3 12B (free)$0.00/M
2Qwen3 Next 80B A3B Instruct (free)$0.00/M
3Gemma 3 4B (free)$0.00/M
4Laguna XS.2 (free)$0.00/M
5gpt-oss-120b (free)$0.00/M
6Trinity Large Preview (free)$0.00/M
7LFM2.5-1.2B-Thinking (free)$0.00/M
8Gemma 3n 4B (free)$0.00/M
9Gemma 4 31B (free)$0.00/M
10Nex-N2-Pro (free)$0.00/M
11gpt-oss-20b (free)$0.00/M
12Nemotron 3 Nano 30B A3B (free)$0.00/M
13Qwen3 4B (free)$0.00/M
14Step 3.5 Flash (free)$0.00/M
15Nemotron Nano 9B V2 (free)$0.00/M
16LFM2.5-1.2B-Instruct (free)$0.00/M
17Nemotron 3 Super (free)$0.00/M
18GLM 4.5 Air (free)$0.00/M
19Gemma 3n 2B (free)$0.00/M
20Llama 3.2 3B Instruct (free)$0.00/M
21Mistral Small 3.1 24B (free)$0.00/M
22Gemma 4 26B A4B (free)$0.00/M
23MiniMax M2.5 (free)$0.00/M
24Laguna M.1 (free)$0.00/M
25North Mini Code (free)$0.00/M
26Flint$0.00/M
27Nemotron 3 Nano Omni (free)$0.00/M
28Gemma 3 27B (free)$0.00/M
29Uncensored (free)$0.00/M
30Llama 3.3 70B Instruct (free)$0.00/M
31Trinity Mini (free)$0.00/M
32Qwen3 Coder 480B A35B (free)$0.00/M
33Qwen3.6 Plus Preview (free)$0.00/M
34Nemotron 3 Ultra (free)$0.00/M
35Nemotron Nano 12B 2 VL (free)$0.00/M
36Hermes 3 405B Instruct (free)$0.00/M
37Nemotron 3.5 Content Safety (free)$0.00/M
38GLM 5.2$0.01/M
39LFM2-2.6B$0.01/M
40LFM2-8B-A1B$0.01/M
41Granite 4.0 Micro$0.02/M
42Llama 3.1 8B Instruct$0.02/M
43Llama 3.2 1B Instruct$0.03/M
44Mistral Nemo$0.03/M
45Qwen2.5 Coder 7B Instruct$0.03/M
46gpt-oss-20b$0.03/M
47LFM2-24B-A2B$0.03/M
48Gemma 2 9B$0.03/M
49Qwen-Turbo$0.03/M
50DeepSeek V4.1 Flash 1017$0.04/M
51Llama 3 8B Lunaris$0.04/M
52Nemotron Nano 9B V2$0.04/M
53Trinity Mini$0.04/M
54Granite 4.1 8B$0.05/M
55Olmo 2 32B Instruct$0.05/M
56Mistral Small 3$0.05/M
57Gemma 3 4B$0.05/M
58Gemma 3 12B$0.05/M
59Llama 3.2 3B Instruct$0.05/M
60Nemotron 3 Nano 30B A3B$0.06/M
61Gemma 3n 4B$0.06/M
62GLM 4.7 Flash$0.06/M
63Qwen3.5-Flash$0.07/M
64ERNIE 4.5 21B A3B Thinking$0.07/M
65ERNIE 4.5 21B A3B$0.07/M
66Phi 4$0.07/M
67Nemotron 3 Super$0.07/M
68gpt-oss-safeguard-20b$0.07/M
69Gemma 4 26B A4B $0.08/M
70Qwen3 32B$0.08/M
71Gemma 3 27B$0.08/M
72MythoMax 13B$0.08/M
73Phi 4 Mini Instruct$0.08/M
74Tongyi DeepResearch 30B A3B$0.09/M
75MiMo-V2-Flash$0.09/M
76Qwen3 Next 80B A3B Instruct$0.09/M
77DeepSeek V4 Flash$0.09/M
78Laguna XS.2$0.10/M
79Qwen2.5 7B Instruct$0.10/M
80Llama 4 Scout$0.10/M
81Reka Flash 3$0.10/M
82Devstral Small 1.1$0.10/M
83Ripple 65B Preview$0.10/M
84UI-TARS 7B $0.10/M
85Mistral Small Creative$0.10/M
86Mistral Small 3.2 24B$0.10/M
87Ministral 3 3B 2512$0.10/M
88Qwen3.6 35B A3B$0.10/M
89Qwen3 30B A3B Instruct 2507$0.10/M
90Step 3.5 Flash$0.10/M
91Voxtral Small 24B 2507$0.10/M
92Reka Edge$0.10/M
93Qwen3 VL 32B Instruct$0.10/M
94Qwen3.5-9B$0.11/M
95Mistral 7B Instruct v0.1$0.11/M
96Qwen3 8B$0.12/M
97Qwen3 30B A3B$0.12/M
98Qwen3 14B$0.12/M
99Qwen3 Coder Next$0.12/M
100Hermes 4 70B$0.13/M
101GLM 4.5 Air$0.13/M
102Hy3$0.13/M
103DeepSeek V3.1 Nex N1$0.14/M
104Qwen VL Plus$0.14/M
105Qwen3 235B A22B Instruct 2507$0.14/M
106Qwen3.5-35B-A3B$0.14/M
107Hermes 2 Pro - Llama-3 8B$0.14/M
108DeepSeek V4.1 Flash$0.14/M
109ERNIE 4.5 VL 28B A3B$0.14/M
110Llama 3 8B Instruct$0.14/M
111Hunyuan A13B Instruct$0.14/M
112gpt-oss-120b$0.15/M
113Qwen3 Coder 30B A3B Instruct$0.15/M
114QwQ 32B$0.15/M
115Rnj 1 Instruct$0.15/M
116Olmo 3 32B Think$0.15/M
117Qwen3 VL 30B A3B Instruct$0.15/M
118Mistral Small 4$0.15/M
119Olmo 3.1 32B Think$0.15/M
120Ministral 3 8B 2512$0.15/M
121Qwen3 Next 80B A3B Thinking$0.15/M
122Hy3 preview$0.18/M
123Llama Guard 4 12B$0.18/M
124Qwen3 VL 8B Thinking$0.18/M
125Qwen3.6 Flash$0.19/M
126Qwen3 Coder Flash$0.20/M
127Gemma 4 31B$0.20/M
128INTELLECT-3$0.20/M
129Olmo 3.1 32B Instruct$0.20/M
130Qwen3 30B A3B Thinking 2507$0.20/M
131Saba$0.20/M
132MiniMax-01$0.20/M
133Qwen2.5 VL 32B Instruct$0.20/M
134Step 3.7 Flash$0.20/M
135Nemotron Nano 12B 2 VL$0.20/M
136Ministral 3 14B 2512$0.20/M
137LongCat Flash Chat$0.20/M
138Laguna M.1$0.20/M
139Qwen3 VL 235B A22B Instruct$0.21/M
140MiniMax M2.7$0.21/M
141DeepSeek V3.1$0.25/M
142Qwen3 VL 8B Instruct$0.25/M
143Trinity Large Thinking$0.25/M
144Rocinante 12B$0.25/M
145DeepSeek V3$0.26/M
146DeepSeek V3.2$0.26/M
147Qwen3.5-122B-A10B$0.26/M
148Qwen Plus 0728$0.26/M
149Qwen Plus 0728 (thinking)$0.26/M
150Qwen3.5 Plus 2026-02-15$0.26/M
151Qwen-Plus$0.26/M
152Qwen3.5-27B$0.26/M
153DeepSeek V3.2 Exp$0.27/M
154DeepSeek V3.1 Terminus$0.27/M
155ERNIE 4.5 300B A47B $0.28/M
156R1 Distill Qwen 32B$0.29/M
157Qwen3 VL 30B A3B Thinking$0.29/M
158DeepSeek V3 0324$0.29/M
159MiniMax M2.5$0.29/M
160MiniMax M2.1$0.30/M
161LongCat 2.5$0.30/M
162Codestral 2508$0.30/M
163ReMM SLERP 13B$0.30/M
164MiniMax M3$0.30/M
165GLM 4.6V$0.30/M
166MiniMax M2$0.30/M
167DeepSeek R1T2 Chimera$0.30/M
168Qwen3.5 Plus 2026-04-20$0.30/M
169Beam 1.0$0.30/M
170Cydonia 24B V4.1$0.30/M
171Qwen3 Coder 480B A35B$0.30/M
172Qwen3.7 Plus$0.32/M
173Qwen3.6 27B$0.32/M
174Qwen3.6 Plus$0.33/M
175Llama 3.2 11B Vision Instruct$0.34/M
176Llama 4 Maverick$0.35/M
177Muse Glimmer 30B$0.35/M
178Mistral Small 3.1 24B$0.35/M
179Qwen2.5 72B Instruct$0.36/M
180Devstral Medium$0.40/M
181UnslopNemo 12B$0.40/M
182Llama 3.3 Nemotron Super 49B V1.5$0.40/M
183DeepSeek V3.2 Speciale$0.40/M
184GLM 4.7$0.40/M
185MiMo-V2.5$0.40/M
186Qwen3 VL 235B A22B Thinking$0.40/M
187Mistral Medium 3.1$0.40/M
188Mistral Medium 3$0.40/M
189Devstral 2 2512$0.40/M
190ERNIE 4.5 VL 424B A47B $0.42/M
191MiMo-V2.5-Pro$0.43/M
192Qwen3.5 397B A17B$0.45/M
193Qwen3 235B A22B Thinking 2507$0.45/M
194Qwen3 235B A22B$0.46/M
195Llama Guard 3 8B$0.48/M
196Nemotron 3 Ultra$0.50/M
197R1 0528$0.50/M
198GLM 4.6$0.50/M
199Mistral Large 3 2512$0.50/M
200Kimi K2.5$0.50/M
201Nex-N2-Pro$0.50/M
202Llama 3 70B Instruct$0.51/M
203Qwen VL Max$0.52/M
204Mixtral 8x7B Instruct$0.54/M
205Skyfall 36B V2$0.55/M
206Kimi K2 0711$0.57/M
207GLM 4.5$0.60/M
208GLM 4.5V$0.60/M
209Kimi K2.7 Code$0.60/M
210Kimi K2 0905$0.60/M
211Llama 3.1 Nemotron Ultra 253B v1$0.60/M
212Kimi K2 Thinking$0.60/M
213WizardLM-2 8x22B$0.62/M
214Kimi K2.6$0.65/M
215Qwen3 Coder Plus$0.65/M
216Gemma 2 27B$0.65/M
217Llama 3.3 Euryale 70B$0.65/M
218Qwen2.5 Coder 32B Instruct$0.66/M
219R1$0.70/M
220Aion-1.0-Mini$0.70/M
221Hermes 3 70B Instruct$0.70/M
222Llama 3.3 70B Instruct$0.71/M
223Llama 3.1 70B Instruct$0.72/M
224Qwen3 Max$0.78/M
225Qwen3 Max Thinking$0.78/M
226CodeLLaMa 7B Instruct Solidity$0.80/M
227R1 Distill Llama 70B$0.80/M
228Llemma 7b$0.80/M
229Qwen2.5 VL 72B Instruct$0.80/M
230Llama 3.1 Euryale 70B v2.2$0.85/M
231DeepSeek V4 Pro$0.90/M
232Hermes 4 405B$1.00/M
233GLM 5$1.00/M
234Hermes 3 405B Instruct$1.00/M
235Qwen3.6 Max Preview$1.03/M
236Qwen-Max $1.04/M
237Llama 3.1 Nemotron 70B Instruct$1.20/M
238GLM 5.1$1.40/M
239Qwen3.7 Max$1.48/M
240Llama 3 Euryale 70B v2.1$1.48/M
241Mistral Medium 3.5$1.50/M
242Mistral Large 2407$2.00/M
243Mixtral 8x22B Instruct$2.00/M
244Mistral Large$2.00/M
245Mistral Large 2411$2.00/M
246Jamba Large 1.7$2.00/M
247Pixtral Large 2411$2.00/M
248Command A$2.50/M
249Magnum v4 72B$2.50/M
250Llama 3.1 70B Hanami x1$3.00/M
251Goliath 120B$3.75/M
Low volume
Under 1M tokens/day

Always pick API. A single GPU hour wipes out weeks of API spend at this volume.

Mid volume
10M to 100M tokens/day

Depends on model size. Small models (under 30B) are cheaper via API. Large models (200B+) favor dedicated GPUs.

High volume
1B+ tokens/day

Self-host wins, if utilization stays near 100%. Use reserved instances and bundle across workloads.

Cheapest
Gemma 3 12B (free)
$0.00/M
$ per 1M input tokens
Why the gap

Within OSS, the price range is driven by parameter count (bigger = more expensive to serve) and provider margins. Smaller dense models and heavily quantized serves sit at the bottom.

Most expensive
Goliath 120B
$3.75/M
$ per 1M input tokens
The weights are publicly downloadable under some license (Apache 2.0, MIT, Llama Community, Qwen License, DeepSeek License, etc.). Not every "open" license is actually OSI-compliant · always read the license before commercial use.