TryLLMCost
All 20 Calculators/Head-to-Head Comparisons
Multi-Provider Gateway

OpenRouter & Multi-LLM Gateway Cost Comparison Calculator

Compare all 25 models in one normalized table before routing traffic through OpenRouter, LiteLLM, or direct provider keys — and simulate blended multi-model stacks.

Reference public API rates (2025–2026) — editable inline
32 tok
33 tok
~378 tok
40%
0–90%
Async Batch API (24h SLA)
Live Token EstimatorEnglish Prose
OpenAI (o200k)
65
Claude (~1.08x)
70
Gemini (~1.03x)
67
Input Words
42
Characters
293
Out Tokens
378
Cheapest Match (1k calls):Llama 3.1 8B Instant (Groq) · $0.04
#Model & ProviderContext / SpeedInput $/1M (edit)Output $/1M (edit)Cached $/1M1 Call1,000 Calls100,000 Callsvs GPT-4o
1
Llama 3.1 8B Instant (Groq)
Meta (Groq)·Fast / Budget
128K ctx
560 tok/s
N/A$0.000035$0.04$3.52-99%
2
Gemini 2.0 Flash-Lite
Google·Fast / Budget
1.0M ctx
210 tok/s
$0.019$0.0001$0.12$12.02-97%
3
Mistral Small 3.1
Mistral·Fast / Budget
128K ctx
150 tok/s
N/A$0.0001$0.13$13.07-97%
4
Llama 4 Scout 17B (Groq)
Meta (Groq)·Fast / Budget
131K ctx
460 tok/s
N/A$0.0001$0.14$14.11-96%
5
GPT-4.1 nano
OpenAI·Fast / Budget
1.0M ctx
170 tok/s
$0.025$0.0002$0.16$15.58-96%
6
Grok 3 MiniFocus
xAI·Reasoning
131K ctx
155 tok/s
$0.075$0.0002$0.21$20.69-95%
7
GPT-4o mini
OpenAI·Fast / Budget
128K ctx
135 tok/s
$0.075$0.0002$0.23$23.46-94%
8
Gemini 2.5 FlashFocus
Google·Balanced
1.0M ctx
165 tok/s
$0.037$0.0002$0.24$24.04-94%
9
Llama 4 Maverick (Together)
Meta (Together)·Balanced
1M ctx
140 tok/s
N/A$0.0004$0.35$35.24-91%
10
Llama 3.3 70B (Groq)
Meta (Groq)·Balanced
128K ctx
280 tok/s
N/A$0.0004$0.35$35.38-91%
11
DeepSeek V3 (Chat)Focus
DeepSeek·Balanced
128K ctx
68 tok/s
$0.070$0.0004$0.44$43.71-89%
12
GPT-4.1 miniFocus
OpenAI·Fast / Budget
1.0M ctx
115 tok/s
$0.10$0.0006$0.62$62.30-84%
13
DeepSeek R1
DeepSeek·Reasoning
128K ctx
54 tok/s
$0.14$0.0009$0.87$87.08-78%
14
Amazon Nova Pro (Bedrock)
Amazon·Balanced
300K ctx
98 tok/s
$0.20$0.0013$1.30$129.57-67%
15
Claude 3.5 Haiku
Anthropic·Fast / Budget
200K ctx
120 tok/s
$0.080$0.0017$1.67$166.78-57%
16
OpenAI o4-mini
OpenAI·Reasoning
200K ctx
95 tok/s
$0.28$0.0017$1.71$171.33-56%
17
Mistral Large 2
Mistral·Frontier
128K ctx
65 tok/s
N/A$0.0026$2.61$261.40-33%
18
GPT-4.1
OpenAI·Frontier
1.0M ctx
78 tok/s
$0.50$0.0031$3.12$311.50-20%
19
OpenAI o3
OpenAI·Reasoning
200K ctx
52 tok/s
$0.50$0.0031$3.12$311.50-20%
20
GPT-4o
OpenAI·Frontier
128K ctx
85 tok/s
$1.25$0.0039$3.91$391.00Baseline
21
Gemini 2.5 Pro
Google·Reasoning
1.0M ctx
88 tok/s
$0.31$0.0039$3.95$394.86+1%
22
Grok 3
xAI·Frontier
131K ctx
74 tok/s
$0.75$0.0059$5.93$592.86+52%
23
Claude Sonnet 4Focus
Anthropic·Frontier
200K ctx
72 tok/s
$0.30$0.0063$6.25$625.44+60%
24
Claude 3.7 Sonnet
Anthropic·Frontier
200K ctx
75 tok/s
$0.30$0.0063$6.25$625.44+60%
25
Claude Opus 4
Anthropic·Frontier
200K ctx
42 tok/s
$1.50$0.03$31.27$3,127.20+700%

Tip: Click any Input or Output $/1M cell to test custom enterprise discounts, Bedrock/Vertex tiers, or Gemini 2.5 Pro >200k long-context rates inline.

Key Cost Benchmarks & Pricing Dynamics

Price Spread Across 25 Models
Up to 300x Variance

The exact same prompt can cost $0.0001 on Llama 3.1 8B or $0.03+ on Claude Opus 4.

Credit Top-Up & Gateway Overhead
Factor ~5% Fee

OpenRouter matches provider base rates with a credit purchase fee (~5%); direct keys avoid markup at scale.

Automatic Fallback Reliability
Multi-Provider Resilience

Knowing the #2 closest-priced model (e.g., GPT-4.1 fallback for Claude Sonnet 4) prevents budget shocks during outages.

Focused Models in This Calculator

DeepSeek V3 (Chat)DeepSeek
Input/1M
$0.27
Output/1M
$1.10
Cached/1M
$0.070
128K context~68 tok/s

Frontier-adjacent quality at 90% lower cost

Gemini 2.5 FlashGoogle
Input/1M
$0.15
Output/1M
$0.60
Cached/1M
$0.037
1.0M context~165 tok/s

High-margin SaaS agents, RAG synthesis, fast multimodal

GPT-4.1 miniOpenAI
Input/1M
$0.40
Output/1M
$1.60
Cached/1M
$0.10
1.0M context~115 tok/s

High-volume agents, classification, extraction

Claude Sonnet 4Anthropic
Input/1M
$3.00
Output/1M
$15.00
Cached/1M
$0.30
200K context~72 tok/s

Autonomous coding agents, editorial writing, tool use

Grok 3 MinixAI
Input/1M
$0.30
Output/1M
$0.50
Cached/1M
$0.075
131K context~155 tok/s

Low-cost reasoning, structured logic, math verification

Production FinOps Optimization Playbook

Use OpenRouter for Prototyping, Direct Keys Above $2k/mo

Unified routing saves engineering weeks early on. Once monthly spend crosses $2k–$5k/mo, moving your top model to direct provider keys or enterprise commits saves gateway fees.

Pin Provider Endpoints to Preserve Prompt Caching

Randomly load-balancing across providers breaks prompt-cache locality. Stick each agent workflow to a deterministic primary model so cache hit rates stay >60%.

Set Per-Tier Fallback Ceilings

Never configure a $15/1M frontier model as an automatic fallback for a $0.15/1M Flash model—an upstream outage can quietly 100x your daily spend.

Frequently Asked Questions

Does OpenRouter charge more per token than OpenAI or Anthropic?

OpenRouter generally passes through upstream provider per-token rates and charges a ~5% platform fee when purchasing credits (or BYOK options). You can inspect base rates above and adjust inline.

How many LLM providers does TryLLMCost compare?

TryLLMCost tracks 25 curated models across 9 providers: OpenAI, Anthropic, Google, DeepSeek, Meta (Groq & Together), Mistral, xAI, and Amazon Bedrock.

Can I model an 80/20 OpenRouter split between two models?

Yes—open the AI Agent & SaaS Gross Margin Simulator tab and use the Model Routing Optimizer to pick any Fast model + Frontier model split.

Do all providers support the same tokenizer?

No. OpenAI, Claude, Gemini, Llama, and Mistral each use distinct vocabularies causing 2%–10% token-count differences. TryLLMCost applies per-model multipliers automatically.

Transparent SaaS Pricing

Free Forever Calculator. Upgrade When Spend Scales.

Model 25 LLMs with zero login today. Upgrade to Pro or Team for automated API price-drop alerts, saved CFO scenarios, and live usage overrun guards.

Free

No Signup
$0/ forever

Everything you need for architecture sizing, prompt tokenization, and SaaS margin checks.

  • Unlimited comparisons across 25+ models
  • Live client-side prompt token counter (EN/Code/CJK)
  • Prompt caching (0–90%) & Batch API 50% toggles
  • AI Agent & SaaS Gross Margin Simulator
  • 80/20 Model Routing Optimizer + inline rate edits
  • Unlimited CSV financial exports
Use Free Calculator Now
Most Popular

Pro

Founders & PMs
$15/ month

Never get blindsided by provider price changes or margin erosion across investor reviews.

  • Everything in Free, plus cloud-saved scenarios
  • Compare multiple multi-agent architecture versions
  • Weekly API price-drop & new-model email alerts
  • 1-click branded CFO / Board Deck PDF export
  • Custom enterprise discount profiles (AWS/Vertex/OpenAI)
  • Historical token price tracker & depreciation notices

Team

Live Guardrails
$39/ month

Connect real production token telemetry and catch runaway agent loops before the bill lands.

  • Everything in Pro for up to 10 team seats
  • Zero-latency live usage telemetry proxy endpoint
  • Real-time Slack & webhook budget overrun alerts
  • Per-customer / per-tenant gross margin leaderboard
  • Automatic anomaly detection on infinite agent loops
  • Scheduled weekly FinOps digest to #ai-infra