LLM API pricing

Compare 210 large language models across 37 providers.

Cheapest input
$0.02 /1M
Llama 3.1 8B via DeepInfra
Median input
$0.50 /1M
across 184 priced models
Models
210
116 with open weights
Providers
37
634 listings

LLM models

Cheapest listed price per 1M tokens, input and output from the same provider. New releases first, then the most viewed.

How this list works

Order

Models released this month or last come first. The rest follow by how often their page was viewed here in the last 30 days.

Prices

Each row shows the cheapest provider's input and output rates, both from that one provider. Rates are standard on-demand prices in USD per 1M tokens.

Search, filters and sorting

Search matches the model, its creator and its providers. Matching is partial and case-insensitive, and every word has to match. Click a column header to sort, again to reverse, and a third time to reset. Retired models no provider lists are left out.

Transparency and funding

  • Affiliates: Affiliate links are marked. We may earn a commission if you click them, but commissions never affect the order.
Creator
Large language models with context window, knowledge cutoff and the cheapest listed price per 1M input and output tokens
Model Inputs Context Cutoff Input /1M Output /1M
Amazon Web Services Ergo-1.0 AWS · Open weights 1M $1.00 /1M $3.00 /1M
Z.AI GLM-5.4 Z.AI · 2 providers 1M $0.98 /1M $3.08 /1M
Google Cloud Gemini 4 Carbon Google Cloud · 2 providers 1M Mar 2026 $2.00 /1M $10.00 /1M
Google Cloud Gemini 4 Hydrogen Google Cloud 1M Mar 2026 $1.50 /1M $7.50 /1M
Alibaba Cloud Qwen4-Max Alibaba Cloud · 4 providers 1M $1.41 /1M $4.24 /1M
Anthropic Claude Fable 5.2 Anthropic · 3 providers 1M Jun 2026 $8.00 /1M $40.00 /1M
Tencent Hy4 Tencent · Open weights · 3 providers 1M $0.42 /1M $1.25 /1M
Google Cloud Gemini 4 Neon Google Cloud 1M Mar 2026 $3.00 /1M $15.00 /1M
Meta Muse Ember Meta 1M $0.10 /1M $0.50 /1M
DeepSeek DeepSeek V4.1 Flash DeepSeek · Open weights · 17 providers 1M $0.035 /1M $0.50 /1M
Z.AI GLM-5.3-Flash Z.AI · Open weights · 14 providers 1M $0.045 /1M $0.45 /1M
Moonshot AI Kimi K3.1 Pro Moonshot AI · Open weights · 6 providers 1M $1.90 /1M $9.50 /1M
Moonshot AI Kimi K3 Moonshot AI · Open weights · 13 providers 1M $2.00 /1M $12.00 /1M
Z.AI GLM-5.3 Z.AI · Open weights · 15 providers 1M $0.079 /1M $3.00 /1M
Alibaba Cloud Qwen3.8-Flash-Next Alibaba Cloud · Open weights · 2 providers 262K $0.20 /1M $0.50 /1M
Alibaba Cloud Qwen3.8-27B Alibaba Cloud · Open weights · 10 providers 262K $0.15 /1M $1.00 /1M
Google Cloud Gemini 4 Argon Google Cloud 1M Mar 2026 $2.00 /1M $10.00 /1M
MiniMax MiniMax-M3 MiniMax · Open weights · 11 providers 1M $0.20 /1M $0.90 /1M
Google Cloud Gemma 4 31B Google Cloud · Open weights · 6 providers 256K Jan 2025 $0.13 /1M $0.37 /1M
OpenAI GPT-6.1 Terra OpenAI · 3 providers 1M Jun 2026 $1.00 /1M $5.00 /1M

No models matching your filters.

Showing 20 of 213 models

Heads up: Base-tier, on-demand rates per 1M tokens; cached, batch and long-context tiers excluded. A provider may serve a shorter context or a quantized build than the creator's release. Verify before provisioning. More on how we price.

No models matching your filters.

Cheapest listed provider per model. Models without a hosted price are not on the chart.

Common questions

What is the cheapest LLM API?

The cheapest priced model we track is Llama 3.1 8B at $0.02 per 1M input tokens and $0.04 per 1M output tokens via DeepInfra. The median across all 184 priced models is $0.50 per 1M input tokens.

What does a price per 1M tokens mean?

US dollars per one million tokens (about 750,000 English words), with input and output billed at separate rates. A 2,000-token prompt with a 500-token reply costs 2,000 x the input rate plus 500 x the output rate, divided by one million; the LLM cost calculator does this for any workload.

Why do output tokens cost more than input tokens?

Output is generated one token at a time, re-reading everything before it, so it takes several times the compute of input and is priced 3x to 8x higher. Read-heavy work (classification, extraction) follows the input rate; drafting and code generation follow the output rate.

Why does the same model cost different amounts at different providers?

Anyone can serve an open-weight model, so hosts compete on hardware, batching, quantisation and margin, and the same weights can differ severalfold in price. Closed models are resold at rates close to the creator's own.

What is an open-weight model, and can I run one myself?

One whose creator publishes the trained weights, so it can run on your own hardware or a rented GPU; 116 models here are listed that way. Each open model's page estimates the GPU cost; see cloud GPU pricing and the LM Studio guide for running one locally.

Which prices are listed here?

Base-tier, on-demand rates in USD per 1M tokens, converted at ECB reference rates where a provider publishes in another currency. Cached-input, batch, long-context and prepaid tiers are not included.

How often are LLM prices updated?

By hand, against each provider's published pricing page; last updated December 2, 2026. Every row links to the page its figure came from.

Last updated .

Back to top ↑