LLM API Pricing Comparison (per 1M tokens)

Input and output prices for 43 models across 10 API hosts, with a calculator for your monthly bill. Sort by any column, or enter your own token volumes.

Prices updated · Source: OpenRouter models API · refreshed daily

Price table and cost calculator

HostContext
Llama 3.1 8BMeta (open weights)Groq$0.050$0.080131K$0.660
gpt-oss-20bOpenAI (open weights)Groq$0.075$0.30131K$1.35
GPT-6 LunaOpenAIOpenAI$0.10$0.501.05M$2.00
Claude Haiku 5.5AnthropicAnthropic$0.10$0.501M$2.00
DeepSeek V4.1 FlashDeepSeekDeepSeek$0.15$0.601.05M$2.70
Mistral Small (2603)MistralMistral$0.15$0.60262K$2.70
gpt-oss-120bOpenAI (open weights)Groq$0.15$0.60131K$2.70
gpt-oss-120bOpenAI (open weights)Together$0.15$0.60131K$2.70
GPT-5.4 nanoOpenAIOpenAI$0.20$1.25400K$4.50
Codestral (2508)MistralMistral$0.30$0.90256K$4.80
DeepSeek V4.1 FlashDeepSeek (open weights)Together$0.30$1.201.05M$5.40
Gemini 3.1 Flash-LiteGoogleGoogle AI Studio$0.25$1.501.05M$5.50
Command A PlusCohereCohere$0.30$1.50192K$6.00
Llama 3.3 70BMeta (open weights)Groq$0.59$0.79131K$7.48
Gemini 3.5 Flash-LiteGoogleGoogle AI Studio$0.30$2.501.05M$8.00
Gemini 2.5 FlashGoogleGoogle AI Studio$0.30$2.501.05M$8.00
DeepSeek V4 ProDeepSeekDeepSeek$0.66$1.981.05M$10.56
Mistral Large 4MistralMistral$0.68$2.091.05M$10.98
Llama 3.3 70BMeta (open weights)Together$1.04$1.04131K$12.48
Grok Build 0.1xAIxAI$1.00$2.00256K$14.00
Gemini 3.8 FlashGoogleGoogle AI Studio$0.75$3.751.05M$15.00
GPT-5.4 miniOpenAIOpenAI$0.75$4.50400K$16.50
Grok 4.3xAIxAI$1.25$2.501M$17.50
Grok 4.20xAIxAI$1.25$2.502M$17.50
Claude Haiku 4.5AnthropicAnthropic$1.00$5.00200K$20.00
Mistral Medium 3.5MistralMistral$1.50$7.50262K$30.00
Grok 4.7xAIxAI$2.00$6.00500K$32.00
Qwen 3.8 MaxAlibabaAlibaba$2.00$6.001M$32.00
Gemini 2.5 ProGoogleGoogle AI Studio$1.25$10.001.05M$32.50
Gemini 3.5 FlashGoogleGoogle AI Studio$1.50$9.001.05M$33.00
GPT-6.1 SolOpenAIOpenAI$2.00$10.001.05M$40.00
Claude Sonnet 5.5AnthropicAnthropic$2.00$10.001M$40.00
Gemini 3.1 Pro (preview)GoogleGoogle AI Studio$2.00$12.001.05M$44.00
Command ACohereCohere$2.50$10.00256K$45.00
Kimi K3Moonshot (open weights)Together$2.70$13.501.05M$54.00
GPT-5.4OpenAIOpenAI$2.50$15.001.05M$55.00
Claude Sonnet 4.6AnthropicAnthropic$3.00$15.001M$60.00
Claude Opus 5.5AnthropicAnthropic$4.00$20.001M$80.00
Claude Opus 4.8AnthropicAnthropic$5.00$25.001M$100.00
GPT-5.5OpenAIOpenAI$5.00$30.001.05M$110.00
GPT-6 AstraOpenAIOpenAI$10.00$50.001.05M$200.00
Claude Fable 5.1AnthropicAnthropic$10.00$50.001M$200.00
GPT-5.5 ProOpenAIOpenAI$30.00$180.001.05M$660.00

Sponsor slot

Sponsor this table

Reach developers comparing LLM API prices. One sponsor at a time, clearly labelled.

Get in touch

Head-to-head price comparisons

Notes on reading the table

FAQ

What is the cheapest LLM API?

For a workload of 10M input and 2M output tokens a month, the cheapest model in this table is Llama 3.1 8B on Groq, at $0.050 per 1M input tokens and $0.080 per 1M output tokens. Among models sold by the lab that trained them, it is GPT-6 Luna (OpenAI). Rankings change with your input:output ratio, so use the calculator above with your own numbers.

Which LLM API has the most expensive output tokens?

GPT-5.5 Pro on OpenAI, at $180.00 per 1M output tokens ($30.00 per 1M input).

How is LLM API price per token calculated?

Providers bill input (prompt) tokens and output (completion) tokens separately, quoted per 1 million tokens. Monthly cost = input tokens (millions) × input price + output tokens (millions) × output price. Output tokens usually cost 3–8× more than input, so output-heavy workloads such as long generations or reasoning models are dominated by the output price.

Where do these prices come from?

From OpenRouter's public models API, refreshed daily. Each row is the standard-tier price that one named host publishes there; batch, flex and priority tiers are excluded. A model is left out rather than guessed when its host has no standard-tier listing. Last refresh: October 10, 2026.

Is the API up right now?

A cheap API you can't reach costs more than an expensive one that answers. Live status for these providers: