LLM Cost Calculator
Estimate and compare monthly LLM API token spend across 40 verified models from Anthropic, OpenAI, Google Gemini, DeepSeek, xAI Grok, Moonshot Kimi, and Zhipu GLM—free with no login. Pre-loaded with a 100,000 req/month workload (3,000 input, 800 output tokens, 50% prompt cache hit).
| Model & Provider | Official In / Out ($/1M) | Cache Read ($/1M) | Official / mo | UniRoute Discounted / mo |
|---|---|---|---|---|
| GPT 6 Luna OpenAI · gpt-6-luna | $0.1 / $0.5 | $0.01 | $56.50 | Official ref |
| Claude Haiku 5 5 Anthropic · claude-haiku-5-5 | $0.1 / $0.5 | $0.01 | $56.50 | Official ref |
| GPT 5.6 Luna OpenAI · gpt-5.6-luna | $0.2 / $1.2 | $0.02 | $129.00 | Official ref |
| DeepSeek Flash DeepSeek · deepseek-flash | $0.3 / $1.2 | $0.006 | $141.90 | Official ref |
| Grok Build 0.1 xAI Grok · grok-build-0.1 | $1 / $2 | $0.2 | $340.00 | Official ref |
| Gemini 3.8 Flash Google Gemini · gemini-3.8-flash | $0.75 / $3.75 | $0.075 | $423.75 | Official ref |
| Gemini 3.6 Flash Google Gemini · gemini-3.6-flash | $0.75 / $3.75 | $0.075 | $423.75 | Official ref |
| Kimi K2.6 Moonshot Kimi · kimi-k2.6 | $0.95 / $4 | $0.16 | $486.50 | Official ref |
| Kimi K2.7 Code Moonshot Kimi · kimi-k2.7-code | $0.95 / $4 | $0.19 | $491.00 | Official ref |
| DeepSeek V4 Pro DeepSeek · deepseek-v4-pro | $1.32 / $3.96 | $0.044 | $521.40 | Official ref |
| Claude Haiku 4 5 Anthropic · claude-haiku-4-5 | $1 / $5 | $0.1 | $565.00 | Official ref |
| GLM 5.3 Zhipu GLM · glm-5.3 | $1.4 / $4.4 | $0.26 | $601.00 | Official ref |
| GLM 5.2 Zhipu GLM · glm-5.2 | $1.4 / $4.4 | $0.26 | $601.00 | Official ref |
| GLM 5.1 Zhipu GLM · glm-5.1 | $1.4 / $4.4 | $0.26 | $601.00 | Official ref |
| Grok 4.5 xAI Grok · grok-4.5 | $2 / $6 | $0.3 | $825.00 | Official ref |
| Grok 4.6 xAI Grok · grok-4.6 | $2 / $6 | $0.5 | $855.00 | Official ref |
| Grok 4.7 xAI Grok · grok-4.7 | $2 / $6 | $0.5 | $855.00 | Official ref |
| Gemini 2.5 Pro Google Gemini · gemini-2.5-pro | $1.25 / $10 | $0.125 | $1,006.25 | Official ref |
| GPT 6.1 Sol OpenAI · gpt-6.1-sol | $2 / $10 | $0.1 | $1,115.00 | Official ref |
| Claude Sonnet 5 5 Anthropic · claude-sonnet-5-5 | $2 / $10 | $0.1 | $1,115.00 | Official ref |
| GPT 6 Sol OpenAI · gpt-6-sol | $2 / $10 | $0.2 | $1,130.00 | Official ref |
| Claude Sonnet 5 Anthropic · claude-sonnet-5 | $2 / $10 | $0.2 | $1,130.00 | Official ref |
| GPT 5.6 Terra OpenAI · gpt-5.6-terra | $2 / $12 | $0.2 | $1,290.00 | Official ref |
| Gemini 3.1 Pro Preview Google Gemini · gemini-3.1-pro-preview | $2 / $12 | $0.2 | $1,290.00 | Official ref |
| GPT 5.2 OpenAI · gpt-5.2 | $1.75 / $14 | $0.175 | $1,408.75 | Official ref |
| Claude Sonnet 4 6 Anthropic · claude-sonnet-4-6 | $3 / $15 | $0.3 | $1,695.00 | Official ref |
| Claude Sonnet 4 5 Anthropic · claude-sonnet-4-5 | $3 / $15 | $0.3 | $1,695.00 | Official ref |
| Kimi K3 Moonshot Kimi · kimi-k3 | $3 / $15 | $0.3 | $1,695.00 | Official ref |
| Claude Opus 5 5 Anthropic · claude-opus-5-5 | $4 / $20 | $0.2 | $2,230.00 | Official ref |
| GPT 5.6 Sol OpenAI · gpt-5.6-sol | $4 / $20 | $0.4 | $2,260.00 | Official ref |
| Claude Opus 5 Anthropic · claude-opus-5 | $5 / $25 | $0.5 | $2,825.00 | Official ref |
| Claude Opus 4 8 Anthropic · claude-opus-4-8 | $5 / $25 | $0.5 | $2,825.00 | Official ref |
| Claude Opus 4 7 Anthropic · claude-opus-4-7 | $5 / $25 | $0.5 | $2,825.00 | Official ref |
| Claude Opus 4 6 Anthropic · claude-opus-4-6 | $5 / $25 | $0.5 | $2,825.00 | Official ref |
| Claude Opus 4 5 Anthropic · claude-opus-4-5 | $5 / $25 | $0.5 | $2,825.00 | Official ref |
| GPT 5.5 OpenAI · gpt-5.5 | $5 / $30 | $0.5 | $3,225.00 | Official ref |
| Claude Fable 5 2 Anthropic · claude-fable-5-2 | $8 / $40 | $0.2 | $4,430.00 | Official ref |
| Claude Fable 5 1 Anthropic · claude-fable-5-1 | $10 / $50 | $0.25 | $5,537.50 | Official ref |
| GPT 6 Astra OpenAI · gpt-6-astra | $10 / $50 | $1 | $5,650.00 | Official ref |
| Claude Fable 5 Anthropic · claude-fable-5 | $10 / $50 | $1 | $5,650.00 | Official ref |
Estimates in USD for budgeting only—not a billing invoice. Excludes long-context tier step-ups, priority/fast modes, cache write fees, reasoning-token variance, and taxes.
LLM Cost Calculator: Token Pricing Formula & Prompt Cache Math
Production LLM APIs bill separately for input tokens and output tokens, measured in USD per 1 million tokens. Output tokens are typically 3× to 5× more expensive than uncached input tokens, while real-world coding agents, RAG assistants, and tool-calling pipelines repeatedly resend large system prompts, tool schemas, and conversation history on every turn.
This LLM cost calculator models monthly spend using the exact per-million blended formula: monthly = requests × [(input × (1 − cache_hit) × input_rate + input × cache_hit × cache_read_rate + output × output_rate) / 1,000,000]. When a provider publishes a dedicated prompt cache read price, the cached portion of each request is billed at that lower rate—commonly 50% to 90% below standard input pricing. Models without a published cache read rate conservatively fall back to their standard input rate so savings are never overstated.
Token-to-word sizing rules: In English prose, 1,000 tokens equal roughly 750 words (about 4,000 characters). Source code, diffs, and JSON tool payloads consume 20% to 35% more tokens per character due to punctuation and indentation, while CJK text averages 500 to 700 characters per 1,000 tokens. When budgeting autonomous agents or reasoning models, add a 20% buffer for retries and hidden chain-of-thought output tokens.
Transparent scope & exclusions: Every official price in the 40-model table above reflects standard first-party context-window list rates and is paired side-by-side with UniRoute's live discounted channel where available. Estimates intentionally exclude long-context tier step-ups, explicit 5-minute or 1-hour cache-write premiums, priority or fast-mode multipliers, batch API discounts, and regional taxes. Click any model row to inspect full vendor pricing tables or open dedicated single-model rate sheets.
Related Developer Pricing & Status Tools
Frequently Asked Questions
Is this LLM cost calculator free to use without signing up?
Yes. The calculator runs 100% free in your browser with no account or credit card required. If you choose to call models through the UniRoute API gateway later, API usage is billed pay-as-you-go with no subscription and no free credits.
How are monthly LLM API costs calculated?
For each model, monthly cost equals requests_per_month × [(input_tokens × (1 − cache_hit_share) × input_rate + input_tokens × cache_hit_share × cache_read_rate + output_tokens × output_rate) ÷ 1,000,000]. All token rates are verified in USD per 1 million tokens.
Where do the 40 model prices come from?
Official standard rates are compiled from published first-party API price sheets (Anthropic, OpenAI, Google Gemini, DeepSeek, xAI, Moonshot Kimi, and Zhipu GLM) and paired with live UniRoute gateway feed prices where available.
Why can real API invoices differ slightly from calculator estimates?
This calculator models standard-context text token pricing and prompt cache reads. It excludes regional residency premiums, priority/fast modes, batch API discounts, cache write surcharges, reasoning-token variance, long-context step-ups, and applicable taxes.
How many words or characters equal 1,000 tokens?
As a rule of thumb, 1,000 English tokens correspond to roughly 750 words (about 4,000 characters), while 1,000 Chinese/Japanese/Korean tokens typically cover 500–700 characters depending on the tokenizer.
How much does prompt caching actually save on monthly spend?
For system prompts, tool schemas, and RAG contexts that repeat across turns, cached input reads typically cost 50% to 90% less than uncached input tokens. Raising cache hit share from 0% to 50% often cuts total agent spend by 25%–45%.
