Background
Ranking · data through 2026-08-21

The cheapest LLM APIs, ranked.

Every provider’s lightest tier, ranked by list-price input rate, checked nightly against official pricing pages. As of 2026-08-21, the cheapest tracked rate is Llama 3.1 8B on DeepInfra at $0.02 per 1M input tokens.

#ProviderLightest tierInput / 1MOutput / 1MContextThe Hobbit*
1DeepInfraLlama 3.1 8B$0.02$0.04128K$0.0051
2CohereCommand R7B (12-2024)$0.0375$0.15128K$0.0191
3Together AIGPT-OSS 20B$0.05$0.2128K$0.0254
4Fireworks AIGPT-OSS 20B$0.07$0.3128K$0.0381
5GroqGPT-OSS 20B$0.075$0.3131K$0.0381
6OpenRouterLlama 3.3 70B$0.1$0.32128K$0.0407
7Mistral AIMistral Small 4$0.15$0.632K$0.0763
8Zhipu GLMGLM-4.5-Air$0.2$1.10200K$0.1399
9OpenAIGPT-5.6 Luna$0.2$1.201M$0.1526
10SambaNovaGPT-OSS 120B$0.22$0.59128K$0.075
11Alibaba QwenQwen3.6-Flash$0.25$1.501M$0.1907
12MiniMaxMiniMax M2$0.3$1.20200K$0.1526
13Google GeminiFlash-Lite 3.5$0.3$2.501M$0.3179
14CerebrasGPT-OSS 120B$0.35$0.75128K$0.0954
15DeepSeekV4 Flash · peak rate$0.44$1.321M$0.1678
16Moonshot KimiKimi K2.5$0.6$3.00256K$0.3814
17Perplexity†Sonar$1.00$1.00127K$0.1271
18xAI GrokGrok Build 0.1$1.00$2.00256K$0.2543
19AnthropicClaude Haiku 4.5$1.00$5.00200K$0.6357
20AWS BedrockClaude Haiku 4.5 (Bedrock)$1.00$5.00200K$0.6357
21MetaMuse Spark 1.2$1.25$4.251M$0.5403
22Sakana AIFugu Ultra$5.00$30.001M$3.81

Scroll the table sideways to see every column.

* Cost to generate The Hobbit (95,356 words ≈ 127,141 tokens) as output. † Perplexity bills web search separately per request; token prices exclude that fee.

How to read this table

About these numbers. Prices are checked nightly against each provider’s official pricing page and recorded in an append-only history (data through 2026-08-21). List prices only: promotions never enter the ranking. Corrections are published, not buried: see the methodology.

More pricing pages