Token Cost Calculator

OpenRouter Pricing Calculator

See what your tokens actually cost after the OpenRouter markup — and when going direct to the provider is cheaper.

Last updated: 2026-10-27

1,000
2,000
400
1,000 × 2,000in + 400out = 2,000,000 input,400,000 output tokens

Estimated cost across 26 models

Google Cheapest

Gemini 2.5 Flash-Lite

$0.360/ month
$4.32 / year
Input
$0.200
Output
$0.160400,000 tokens
Input
$0.10 / 1M2,000,000 tokens
Output
$0.40 / 1M
Context window
1,000,000Last updated: 2026-10-20
OpenAI

GPT-6 luna

$0.400/ month
$4.80 / year
Input
$0.200
Output
$0.200400,000 tokens
Input
$0.10 / 1M2,000,000 tokens
Output
$0.50 / 1M
Context window
1,050,000Last updated: 2026-10-20
MiniMax

MiniMax M3.1 Flash

$0.540/ month
$6.48 / year

Released 2026-10-19; $0.15 / $0.60 / $0.015 (¥1 / ¥4 / ¥0.1). Flat rate — no long-context tier, and unlike M3 it does not accept service_tier=priority.

Input
$0.300
Output
$0.240400,000 tokens
Input
$0.15 / 1M2,000,000 tokens
Output
$0.60 / 1M
Context window
1,000,000Last updated: 2026-10-20
DeepSeek

DeepSeek V4.1-Flash 1017

$1.08/ month
$12.96 / year
Peak hours

Checkpoint DeepSeek-V4.1-Flash-1017 (released 2026-10-17), served under the API model name `deepseek-flash`; open weights on Hugging Face / ModelScope. The 2026-09-10 launch price is unchanged. The launch checkpoint is kept as its own row (deepseek-flash-0910).

Input
$0.600
Output
$0.480400,000 tokens
Input
$0.30 / 1M2,000,000 tokens
Output
$1.20 / 1M
Context window
1,000,000Last updated: 2026-10-20
MiniMax

MiniMax M3

$1.08/ month
$12.96 / year

Released 2026-06-01. service_tier=priority costs 1.5× ($0.45 / $1.80 / $0.09). No separate cache-write charge. The cached-input rate above 512k doubles to $0.12; cost.ts applies the input multiplier to the cached rate as well.

Input
$0.600
Output
$0.480400,000 tokens
Input
$0.30 / 1M2,000,000 tokens
Output
$1.20 / 1M
Context window
1,000,000Last updated: 2026-10-20
Google

Gemini 3.1 Flash-Lite

$1.10/ month
$13.20 / year
Input
$0.500
Output
$0.600400,000 tokens
Input
$0.25 / 1M2,000,000 tokens
Output
$1.50 / 1M
Context window
1,000,000Last updated: 2026-10-20
Google

Gemini 2.5 Flash

$1.60/ month
$19.20 / year
Input
$0.600
Output
$1.00400,000 tokens
Input
$0.30 / 1M2,000,000 tokens
Output
$2.50 / 1M
Context window
1,000,000Last updated: 2026-10-20
Google

Gemini 3.8 Flash

$3.00/ month
$36.00 / year
Introductory rate (until 2026-12-31)

Introductory pricing: $0.75 / $3.75 / $0.075 through 2026-12-31, then $1.50 / $7.50 / $0.15 from 2027-01-01.

Input
$1.50
Output
$1.50400,000 tokens
Input
$0.75 / 1M2,000,000 tokens
Output
$3.75 / 1M
Context window
1,000,000Last updated: 2026-10-20
StepFun

Step 5 Preview

$3.08/ month
$36.96 / year

Preview release (2026-09-20); open weights followed on 2026-10-15. Cache-miss input includes writing to the cache; output tokens include the reasoning trace.

Input
$2.00
Output
$1.08400,000 tokens
Input
$1.00 / 1M2,000,000 tokens
Output
$2.70 / 1M
Context window
1,000,000Last updated: 2026-10-23
OpenAI

GPT-6.1 Terra

$4.00/ month
$48.00 / year

Knowledge cutoff June 2026; 128,000 max output tokens. Cache writes cost $1.25 for 30-minute retention and $2.50 for 12-hour, before the long-context adjustment. Batch and Flex run at half the standard rate, Fast mode at 2×, and regional processing adds 10% where available.

Input
$2.00
Output
$2.00400,000 tokens
Input
$1.00 / 1M2,000,000 tokens
Output
$5.00 / 1M
Context window
1,050,000Last updated: 2026-10-27
Anthropic

Claude Haiku 4.5

$4.00/ month
$48.00 / year
Input
$2.00
Output
$2.00400,000 tokens
Input
$1.00 / 1M2,000,000 tokens
Output
$5.00 / 1M
Context window
200,000Last updated: 2026-10-20
DeepSeek

DeepSeek V4-Pro

$4.22/ month
$50.69 / year
Peak hours
Input
$2.64
Output
$1.58400,000 tokens
Input
$1.32 / 1M2,000,000 tokens
Output
$3.96 / 1M
Context window
1,000,000Last updated: 2026-10-20
Grok

Grok 4.7

$6.40/ month
$76.80 / year
Input
$4.00
Output
$2.40400,000 tokens
Input
$2.00 / 1M2,000,000 tokens
Output
$6.00 / 1M
Context window
500,000Last updated: 2026-10-20
Google

Gemini 2.5 Pro

$6.50/ month
$78.00 / year
Input
$2.50
Output
$4.00400,000 tokens
Input
$1.25 / 1M2,000,000 tokens
Output
$10.00 / 1M
Context window
1,000,000Last updated: 2026-10-20
OpenAI

GPT-6 sol

$8.00/ month
$96.00 / year
Input
$4.00
Output
$4.00400,000 tokens
Input
$2.00 / 1M2,000,000 tokens
Output
$10.00 / 1M
Context window
1,050,000Last updated: 2026-10-20
Anthropic

Sonnet 5

$8.00/ month
$96.00 / year
Input
$4.00
Output
$4.00400,000 tokens
Input
$2.00 / 1M2,000,000 tokens
Output
$10.00 / 1M
Context window
1,000,000Last updated: 2026-10-20
Moonshot

Kimi K3.1 Pro

$8.00/ month
$96.00 / year

Released 2026-10-24; $2.00 / $10.00 / $0.20 (¥13 / ¥68 / ¥1.30) per 1M tokens. Cache writes are billed separately by TTL: $2.00 for 5 min, $4.00 for 1 h. The Highspeed twin costs 2× for 2-3× the output speed.

Input
$4.00
Output
$4.00400,000 tokens
Input
$2.00 / 1M2,000,000 tokens
Output
$10.00 / 1M
Context window
1,048,576Last updated: 2026-10-24
Google

Gemini 3.1 Pro Preview

$8.80/ month
$106 / year
Input
$4.00
Output
$4.80400,000 tokens
Input
$2.00 / 1M2,000,000 tokens
Output
$12.00 / 1M
Context window
1,000,000Last updated: 2026-10-20
Moonshot

Kimi K3

$12.00/ month
$144 / year

Still sold alongside Kimi K3.1 Pro, and dearer: $3.00 / $15.00 / $0.30 (¥20 / ¥100 / ¥2.00) per 1M tokens. Cache writes are billed separately by TTL: $3.00 for 5 min, $6.00 for 1 h.

Input
$6.00
Output
$6.00400,000 tokens
Input
$3.00 / 1M2,000,000 tokens
Output
$15.00 / 1M
Context window
1,048,576Last updated: 2026-10-24
Anthropic

Opus 5.5

$16.00/ month
$192 / year
Input
$8.00
Output
$8.00400,000 tokens
Input
$4.00 / 1M2,000,000 tokens
Output
$20.00 / 1M
Context window
1,000,000Last updated: 2026-10-20
Google

Gemini 4 Argon

$16.00/ month
$192 / year
Standard rate

Introductory pricing: $2 / $10 / $0.10 through 2026-11-30, then $4 / $20 / $0.20 from 2026-12-01. Implicit caching only — explicit caching is not supported. Batch and Flex run at half the standard rate; Priority is 1.8×.

Input
$8.00
Output
$8.00400,000 tokens
Input
$4.00 / 1M2,000,000 tokens
Output
$20.00 / 1M
Context window
1,048,576Last updated: 2026-10-20
Moonshot

Kimi K3.1 Pro Highspeed

$16.00/ month
$192 / year

Released 2026-10-24; $4.00 / $20.00 / $0.20 (¥26 / ¥136 / ¥1.30) per 1M tokens. Same intelligence as Kimi K3.1 Pro at 2-3× the output speed, for 2× the price.

Input
$8.00
Output
$8.00400,000 tokens
Input
$4.00 / 1M2,000,000 tokens
Output
$20.00 / 1M
Context window
1,048,576Last updated: 2026-10-24
OpenAI

GPT-5.6 sol

$22.00/ month
$264 / year
Standard rate

Promotional pricing ($4 / $20 / $0.40) is available at least through 2026-11-21; the pre-promo rate was $5 / $30. Re-check after that date.

Input
$10.00
Output
$12.00400,000 tokens
Input
$5.00 / 1M2,000,000 tokens
Output
$30.00 / 1M
Context window
1,050,000Last updated: 2026-10-20
OpenAI

GPT-6 astra

$40.00/ month
$480 / year
Input
$20.00
Output
$20.00400,000 tokens
Input
$10.00 / 1M2,000,000 tokens
Output
$50.00 / 1M
Context window
1,050,000Last updated: 2026-10-20
Anthropic

Fable 5.1

$40.00/ month
$480 / year
Input
$20.00
Output
$20.00400,000 tokens
Input
$10.00 / 1M2,000,000 tokens
Output
$50.00 / 1M
Context window
1,000,000Last updated: 2026-10-20
OpenAI

GPT-5.6 cyber

$55.00/ month
$660 / year
Input
$25.00
Output
$30.00400,000 tokens
Input
$12.50 / 1M2,000,000 tokens
Output
$75.00 / 1M
Context window
400,000Last updated: 2026-10-20

Prices verified 2026-10-27. Source: official provider pricing pages. · Machine-readable: /api/prices.json

Quick takeaways
  • 1Output tokens usually cost 2.7× to 8.3× more than input — keeping replies short is the highest-leverage cost saver.
  • 2Prompt caching drops repeat-input cost by 75–98% depending on provider and model — Anthropic 90–98% off, OpenAI 90–95% off, Google 90–95% off, DeepSeek 97–98% off the standard input rate.
  • 3DeepSeek off-peak hours bill at 50% less than peak — schedule batch jobs accordingly.
  • 4Long-context surcharges are real: a model with a long-context band bills 2× input above the band threshold (from 200K tokens) — check the model card before sending a huge context.

OpenRouter markup, explained

OpenRouter bills inference at the provider’s list price on every plan — it does not mark up the per-token rate. Its platform fee (5.5% on Standard, 8% on Business) is charged when you purchase credits, not on individual requests. The OpenRouter column here models that fee as a 1.05× multiplier on token price, which is our own approximation, not an OpenRouter quote: it spreads a credit-purchase fee across token rates, so the real total depends on how much you top up and how much of the plan you use. Use it as a rough sense of scale; check openrouter.ai for the live per-model rate.

Estimated multiplier used here: ×1.05 (5%) — our assumption, not an OpenRouter figure

When going direct is cheaper

If your workload is single-model, high-volume, and latency-sensitive, going direct to the provider's API almost always wins: lower latency, no aggregator in the request path, and you can negotiate volume pricing the aggregator can't match. OpenRouter wins when you need (a) automatic fallback across providers, (b) one bill for many models, or (c) access to models that aren't available on your home region.

Direct vs OpenRouter — every model priced both ways

The same token, priced by the provider and by this site’s estimate of OpenRouter. The gap is our 5% multiplier, not a markup OpenRouter applies to requests.

ModelDirect APIVia OpenRouterMarkup
Gemini 2.5 Flash-Lite$0.1 / $0.4$0.105 / $0.42+5%
GPT-6 luna$0.1 / $0.5$0.105 / $0.525+5%
MiniMax M3.1 Flash$0.15 / $0.6$0.1575 / $0.63+5%
Gemini 3.1 Flash-Lite$0.25 / $1.5$0.2625 / $1.575+5%
DeepSeek V4.1-Flash 1017$0.3 / $1.2$0.315 / $1.26+5%
MiniMax M3$0.3 / $1.2$0.315 / $1.26+5%
Gemini 2.5 Flash$0.3 / $2.5$0.315 / $2.625+5%
Gemini 3.8 Flash$0.75 / $3.75$0.7875 / $3.9375+5%
Step 5 Preview$1 / $2.7$1.05 / $2.835+5%
GPT-6.1 Terra$1 / $5$1.05 / $5.25+5%
Claude Haiku 4.5$1 / $5$1.05 / $5.25+5%
Gemini 2.5 Pro$1.25 / $10$1.3125 / $10.5+5%
DeepSeek V4-Pro$1.32 / $3.96$1.386 / $4.158+5%
Grok 4.7$2 / $6$2.1 / $6.3+5%
GPT-6 sol$2 / $10$2.1 / $10.5+5%
Sonnet 5$2 / $10$2.1 / $10.5+5%
Gemini 4 Argon$2 / $10$2.1 / $10.5+5%
Kimi K3.1 Pro$2 / $10$2.1 / $10.5+5%
Gemini 3.1 Pro Preview$2 / $12$2.1 / $12.6+5%
Kimi K3$3 / $15$3.15 / $15.75+5%
GPT-5.6 sol$4 / $20$4.2 / $21+5%
Opus 5.5$4 / $20$4.2 / $21+5%
Kimi K3.1 Pro Highspeed$4 / $20$4.2 / $21+5%
GPT-6 astra$10 / $50$10.5 / $52.5+5%
Fable 5.1$10 / $50$10.5 / $52.5+5%
GPT-5.6 cyber$12.5 / $75$13.125 / $78.75+5%

Prices are USD per 1M tokens, resolved from the same registry the calculator charges from. The OpenRouter column applies this site’s 1.05× estimate (5%) of OpenRouter’s credit-purchase fee — an approximation, not an OpenRouter-published rate. OpenRouter bills inference at list price and charges 5.5% (Standard) or 8% (Business) when you buy credits.

Token Cost Calculator

How to bring the bill down

  1. 1Use a smaller model for routing / classification — Claude Haiku 4.5 costs 10× less than Claude Fable 5.1, and GPT-6 luna 100× less than GPT-6 astra on output.
  2. 2Cache repeat prefixes (system prompts, tool schemas) — Anthropic cached reads run 90–98% below the standard input rate, depending on the model.
  3. 3Set max_tokens explicitly — output is the expensive side; capping it prevents runaway replies.
  4. 4Batch non-urgent jobs into DeepSeek off-peak hours, which bill at 50% less than peak for both input and output.
  5. 5Trim long context — a long-context band bills 2× input rate above its threshold (from 200K tokens); chunk documents that don’t need the rest.
Token Cost Calculator

Frequently asked questions

What does OpenRouter actually charge?
OpenRouter bills inference at the provider’s official list price — it does not mark up the token rate. It charges a platform fee when you purchase credits: 5.5% on Standard and 8% on Business. The OpenRouter column above is this site’s estimate (1.05×, i.e. 5%), which spreads that credit fee across token price; treat it as a rough total, not a quote.
Is OpenRouter more expensive than going direct?
The inference rate is identical either way — OpenRouter passes the provider’s list price through. What you pay for going direct is nothing extra; what you pay OpenRouter is its credit-purchase fee (5.5% Standard / 8% Business). Below that fee’s share of your spend, direct is cheaper; OpenRouter earns it back with automatic fallback, one bill for many models, and access to models unavailable in your region.
How much does 1 million tokens cost on OpenRouter?
It depends on which model you route to. On GPT-6 astra the official price is $10 / $50 per 1M tokens and OpenRouter bills $10.50 / $52.50. On Claude Sonnet 5 it is $2 / $10 direct and $2.10 / $10.50 via OpenRouter. The table above prices every model both ways.
Does OpenRouter charge per request?
No per-request fee. OpenRouter charges for tokens at the provider’s list price and takes its platform fee (5.5% Standard / 8% Business) when you purchase credits, so the per-request shape is the same as a direct API call.
Can I use my own provider API key with OpenRouter?
Yes — OpenRouter supports BYOK. The provider bills you for inference directly, and OpenRouter’s fee applies only above a plan-dependent allowance (for example $25,000 of list-price inference per month on pay-as-you-go, then 5% of list price). Below the allowance there is no OpenRouter fee on your tokens.
How accurate is this calculator?
The base model prices come from each provider’s official pricing page. The OpenRouter column multiplies those by this site’s estimate (1.05×, about 5%), which approximates OpenRouter’s credit-purchase fee (5.5% Standard / 8% Business) rather than a per-token markup. Re-check the model’s source link before relying on a number for billing.
Which models are available on OpenRouter?
OpenRouter aggregates most major models — the GPT-6 family, Claude Opus 5.5 / Sonnet 5 / Haiku 4.5, Gemini 4 Argon and the Gemini 3.x line, DeepSeek V4-Pro and V4.1-Flash, Grok 4.7, Kimi K3.1 Pro, MiniMax M3.1 Flash and many open-source models. Check the live catalog at openrouter.ai/models for the current count (it changes weekly).
How often are these OpenRouter prices updated?
Whenever the underlying provider changes its price, the estimated OpenRouter column above updates on the same cadence, because it is derived from the same registry. The "Updated 2026-10-27" stamp and /api/prices.json both reflect the latest verification.
More calculators

Pick the right page for your use case

Token Cost Calculator

Compare prices across OpenAI, Claude, Gemini, DeepSeek, MiniMax, and Grok. Real tokenizer for OpenAI, accurate estimates for the rest.

Compare every LLM price →

Claude Token Cost Calculator

Cost per token and monthly estimates for Claude Opus, Sonnet, and Haiku — with the Anthropic API.

Calculate Claude API cost →

DeepSeek API Pricing

V4-Pro and V4.1-Flash per-token rates, off-peak hours, and prompt-cache savings — compared to Claude, GPT, and Gemini.

View DeepSeek API pricing →

ChatGPT API Pricing

GPT-6 and GPT-5 per-token rates, Batch API 50% off, and prompt-cache savings — compared to Claude, Gemini, and DeepSeek.

View ChatGPT API pricing →

Gemini API Pricing

Google Gemini rates per 1M tokens — Gemini 4 Argon, Gemini 3.1 Pro, Gemini 3.8 Flash and the Flash-Lite tier — with the long-context band, the cache rate and the service tiers, priced against every other model.

View Gemini API pricing →

Grok API Pricing

xAI Grok rates per 1M tokens — Grok 4.7 with its long-context band and cached-input rate, plus the retired Grok 4 row — priced against every other model.

View Grok API pricing →

MiniMax API Pricing

MiniMax M3.1 Flash and M3 rates per 1M tokens — a flat rate, the priority lane, the long-context doubling and the cache rate — priced against every other model.

View MiniMax API pricing →

Kimi API Pricing

Moonshot Kimi rates per 1M tokens — K3.1 Pro, the Highspeed twin and the still-sold K3, with the million-token window and the separately billed cache writes.

View Kimi API pricing →