Skip to content
TopLLM
Best for

Cheapest good LLM API (December 2026)

The cheapest model is rarely the right answer, and the best model is rarely worth its price for everyday work. This guide ranks on overall score per dollar, so every pick is both capable and cheap.

Checked December 1, 2026 · restricted previews excluded

The top 10

Cheapest good LLM API, ranked.

Full leaderboard →
01

GLM 5.3 Flash#1 PickOpen weights

Z.ai · $0.04 in, $0.08 out per 1M tokens · 1M context · open weights
60.7Overall

60.7 overall for $0.05 per million tokens blended. Open weights, so you can host it yourself or shop around for the cheapest provider. Very cheap at $0.05 per million tokens.

Coding14.9
Reasoning91.2
Agents20.7
02

DeepSeek V4.1 FlashOpen weights

DeepSeek · $0.02 in, $0.20 out per 1M tokens · 1M context · open weights
70.3Overall

70.3 overall for $0.07 per million tokens blended. Open weights, so you can host it yourself or shop around for the cheapest provider. No published reasoning result yet, so judge it mainly on the coding and agent numbers.

Coding20.2
Reasoningnot tested
Agents38.8
03

Inkling 2 MiniOpen weights

Thinking Machines · $0.06 in, $0.24 out per 1M tokens · 1M context · open weights
54.9Overall

54.9 overall for $0.10 per million tokens blended. Open weights, so you can host it yourself or shop around for the cheapest provider. No published reasoning result yet, so judge it mainly on the coding and agent numbers.

Codingnot tested
Reasoningnot tested
Agents18.9
04

MiniMax M3.1 FlashOpen weights

MiniMax · $0.07 in, $0.30 out per 1M tokens · 1M context · open weights
63.7Overall

63.7 overall for $0.13 per million tokens blended. Open weights, so you can host it yourself or shop around for the cheapest provider. No published reasoning result yet, so judge it mainly on the coding and agent numbers.

Codingnot tested
Reasoningnot tested
Agents25.7
05

Claude Haiku 5.5

Anthropic · $0.10 in, $0.50 out per 1M tokens · 1M context
68.9Overall

68.9 overall for $0.20 per million tokens blended. No published reasoning result yet, so judge it mainly on the coding and agent numbers. Very cheap at $0.20 per million tokens.

Coding28.9
Reasoningnot tested
Agents47.9
06

GPT-6 Luna

OpenAI · $0.10 in, $0.50 out per 1M tokens · 1.1M context
60.4Overall

60.4 overall for $0.20 per million tokens blended. No published reasoning result yet, so judge it mainly on the coding and agent numbers. Very cheap at $0.20 per million tokens.

Coding22.7
Reasoningnot tested
Agents24.7
07

Inkling 2 SmallOpen weights

Thinking Machines · $0.15 in, $0.50 out per 1M tokens · 1M context · open weights
62.8Overall

62.8 overall for $0.24 per million tokens blended. Open weights, so you can host it yourself or shop around for the cheapest provider. No published reasoning result yet, so judge it mainly on the coding and agent numbers.

Coding22.6
Reasoningnot tested
Agents28.8
08

Gemma 4 31BOpen weights

Google · $0.20 in, $0.40 out per 1M tokens · 256K context · open weights
32.4Overall

32.4 overall for $0.25 per million tokens blended. Open weights, so you can host it yourself or shop around for the cheapest provider. No published reasoning result yet, so judge it mainly on the coding and agent numbers.

Codingnot tested
Reasoningnot tested
Agents8.5
09

MiMo-V2.6-ProOpen weights

Xiaomi · $0.43 in, $0.87 out per 1M tokens · 1M context · open weights
66.1Overall

66.1 overall for $0.54 per million tokens blended. Open weights, so you can host it yourself or shop around for the cheapest provider. No published reasoning result yet, so judge it mainly on the coding and agent numbers.

Codingnot tested
Reasoningnot tested
Agents36.4
10

Qwen3.8 27BOpen weights

Qwen · $0.06 in, $1.96 out per 1M tokens · 1M context · open weights
54.0Overall

54.0 overall for $0.54 per million tokens blended. Open weights, so you can host it yourself or shop around for the cheapest provider. No published reasoning result yet, so judge it mainly on the coding and agent numbers.

Codingnot tested
Reasoningnot tested
Agents15.9

Getting the bill down further

Head to head

Quick answers

What is the cheapest good LLM API?

GLM 5.3 Flash gives the most overall score per dollar in our data, at about $0.05 per million tokens.

Are free LLM APIs worth it?

For testing, yes. Free tiers usually come with tight rate limits, so plan on a paid tier for real traffic.

How do I compare total cost, not just price?

Use the cost calculator. Input size, output size, steps per task and caching change the ranking a lot.