{"version":"v1","resource":"llm-token-cost-pricing","updated":"2026-11-30","currency":"USD","unit":"USD per 1M tokens","source":{"name":"OpenRouter Models API","url":"https://openrouter.ai/api/v1/models","retrieved":"2026-11-30","notes":"List prices returned by the OpenRouter models endpoint on the retrieval date. OpenAI and Anthropic cache read/write prices come from the same snapshot. Google rows use implicit prompt caching: cache writes are billed at the normal input price and explicit cache storage is not modelled. DeepSeek peak/off-peak rates, batch discounts, long-context surcharges, tool-call fees, retries and taxes are excluded. Provider-direct billing can differ; verify against your invoice."},"providers":{"OpenAI":{"pricingUrl":"https://openai.com/api/pricing/","cacheDocsUrl":"https://platform.openai.com/docs/guides/prompt-caching"},"Anthropic":{"pricingUrl":"https://www.anthropic.com/pricing","cacheDocsUrl":"https://platform.claude.com/docs/en/build-with-claude/prompt-caching"},"Google":{"pricingUrl":"https://ai.google.dev/gemini-api/docs/pricing","cacheDocsUrl":"https://ai.google.dev/gemini-api/docs/caching"},"DeepSeek":{"pricingUrl":"https://api-docs.deepseek.com/quick_start/pricing","cacheDocsUrl":"https://api-docs.deepseek.com/guides/kv_cache"},"Meta":{"pricingUrl":"https://www.llama.com/","cacheDocsUrl":null}},"models":[{"id":"openai/gpt-6.2-astra","label":"GPT-6.2 Astra","provider":"OpenAI","tier":"flagship","contextWindow":1050000,"maxOutput":128000,"inputPerMTok":8,"outputPerMTok":40,"cacheReadPerMTok":0.4,"cacheWritePerMTok":10,"cacheWritePricing":"api","cacheMode":"automatic","minCacheTokens":1024,"tokenizer":"o200k","sourceUrl":"https://openai.com/api/pricing/"},{"id":"openai/gpt-6.2-sol","label":"GPT-6.2 Sol","provider":"OpenAI","tier":"balanced","contextWindow":1050000,"maxOutput":128000,"inputPerMTok":2,"outputPerMTok":10,"cacheReadPerMTok":0.1,"cacheWritePerMTok":2.5,"cacheWritePricing":"api","cacheMode":"automatic","minCacheTokens":1024,"tokenizer":"o200k","sourceUrl":"https://openai.com/api/pricing/"},{"id":"openai/gpt-6.1-terra","label":"GPT-6.1 Terra","provider":"OpenAI","tier":"balanced","contextWindow":1050000,"maxOutput":128000,"inputPerMTok":1,"outputPerMTok":5,"cacheReadPerMTok":0.05,"cacheWritePerMTok":1.25,"cacheWritePricing":"api","cacheMode":"automatic","minCacheTokens":1024,"tokenizer":"o200k","sourceUrl":"https://openai.com/api/pricing/"},{"id":"openai/gpt-6-luna","label":"GPT-6 Luna","provider":"OpenAI","tier":"budget","contextWindow":1050000,"maxOutput":128000,"inputPerMTok":0.1,"outputPerMTok":0.5,"cacheReadPerMTok":0.01,"cacheWritePerMTok":0.125,"cacheWritePricing":"api","cacheMode":"automatic","minCacheTokens":1024,"tokenizer":"o200k","sourceUrl":"https://openai.com/api/pricing/"},{"id":"anthropic/claude-sonnet-5.5","label":"Claude Sonnet 5.5","provider":"Anthropic","tier":"balanced","contextWindow":1000000,"maxOutput":128000,"inputPerMTok":2,"outputPerMTok":10,"cacheReadPerMTok":0.1,"cacheWritePerMTok":2.5,"cacheWritePricing":"api","cacheMode":"explicit","minCacheTokens":1024,"tokenizer":"proxy","sourceUrl":"https://www.anthropic.com/pricing"},{"id":"anthropic/claude-opus-5.5","label":"Claude Opus 5.5","provider":"Anthropic","tier":"flagship","contextWindow":1000000,"maxOutput":128000,"inputPerMTok":4,"outputPerMTok":20,"cacheReadPerMTok":0.2,"cacheWritePerMTok":5,"cacheWritePricing":"api","cacheMode":"explicit","minCacheTokens":1024,"tokenizer":"proxy","sourceUrl":"https://www.anthropic.com/pricing"},{"id":"anthropic/claude-haiku-5.5","label":"Claude Haiku 5.5","provider":"Anthropic","tier":"budget","contextWindow":1000000,"maxOutput":128000,"inputPerMTok":0.1,"outputPerMTok":0.5,"cacheReadPerMTok":0.01,"cacheWritePerMTok":0.125,"cacheWritePricing":"api","cacheMode":"explicit","minCacheTokens":2048,"tokenizer":"proxy","sourceUrl":"https://www.anthropic.com/pricing"},{"id":"google/gemini-4-neon","label":"Gemini 4 Neon","provider":"Google","tier":"flagship","contextWindow":1048576,"maxOutput":943718,"inputPerMTok":3,"outputPerMTok":15,"cacheReadPerMTok":0.15,"cacheWritePerMTok":3,"cacheWritePricing":"input","cacheMode":"automatic","minCacheTokens":2048,"tokenizer":"proxy","sourceUrl":"https://ai.google.dev/gemini-api/docs/pricing"},{"id":"google/gemini-4-carbon","label":"Gemini 4 Carbon","provider":"Google","tier":"balanced","contextWindow":1048576,"maxOutput":943718,"inputPerMTok":2,"outputPerMTok":10,"cacheReadPerMTok":0.1,"cacheWritePerMTok":2,"cacheWritePricing":"input","cacheMode":"automatic","minCacheTokens":2048,"tokenizer":"proxy","sourceUrl":"https://ai.google.dev/gemini-api/docs/pricing"},{"id":"google/gemini-4-hydrogen","label":"Gemini 4 Hydrogen","provider":"Google","tier":"budget","contextWindow":1048576,"maxOutput":943718,"inputPerMTok":1.5,"outputPerMTok":7.5,"cacheReadPerMTok":0.075,"cacheWritePerMTok":1.5,"cacheWritePricing":"input","cacheMode":"automatic","minCacheTokens":1024,"tokenizer":"proxy","sourceUrl":"https://ai.google.dev/gemini-api/docs/pricing"},{"id":"deepseek/deepseek-v4-pro","label":"DeepSeek V4 Pro","provider":"DeepSeek","tier":"balanced","contextWindow":1048576,"maxOutput":393216,"inputPerMTok":0.82317,"outputPerMTok":1.5393,"cacheReadPerMTok":0.2,"cacheWritePerMTok":0.82317,"cacheWritePricing":"input","cacheMode":"automatic","minCacheTokens":64,"tokenizer":"proxy","sourceUrl":"https://api-docs.deepseek.com/quick_start/pricing"},{"id":"deepseek/deepseek-v4.1-flash","label":"DeepSeek V4.1 Flash","provider":"DeepSeek","tier":"budget","contextWindow":1048576,"maxOutput":943718,"inputPerMTok":0.051,"outputPerMTok":0.567,"cacheReadPerMTok":0.018,"cacheWritePerMTok":0.051,"cacheWritePricing":"input","cacheMode":"automatic","minCacheTokens":64,"tokenizer":"proxy","sourceUrl":"https://api-docs.deepseek.com/quick_start/pricing"},{"id":"deepseek/deepseek-v3.2","label":"DeepSeek V3.2","provider":"DeepSeek","tier":"budget","contextWindow":163840,"maxOutput":147456,"inputPerMTok":0.26,"outputPerMTok":0.38,"cacheReadPerMTok":0.13,"cacheWritePerMTok":0.26,"cacheWritePricing":"input","cacheMode":"automatic","minCacheTokens":64,"tokenizer":"proxy","sourceUrl":"https://api-docs.deepseek.com/quick_start/pricing"},{"id":"meta-llama/llama-3.3-70b-instruct","label":"Llama 3.3 70B Instruct","provider":"Meta","tier":"open","contextWindow":131072,"maxOutput":32768,"inputPerMTok":0.59,"outputPerMTok":0.79,"cacheReadPerMTok":null,"cacheWritePerMTok":null,"cacheWritePricing":"none","cacheMode":"none","minCacheTokens":0,"tokenizer":"proxy","sourceUrl":"https://www.llama.com/"}],"defaults":{"outputTokens":500,"requestsPerDay":1000,"cacheableShare":80,"hitRate":80,"daysPerMonth":30},"units":{"inputTokens":"tokens","outputTokens":"tokens","requestsPerDay":"requests","cacheableShare":"percent (0–95)","hitRate":"percent (0–99)","money":"USD"},"limits":{"inputTokens":{"min":0,"max":2000000,"step":1},"outputTokens":{"min":0,"max":200000,"step":1},"requestsPerDay":{"min":1,"max":1000000,"step":1},"cacheableShare":{"min":0,"max":95,"step":1},"hitRate":{"min":0,"max":99,"step":1}},"tokenizers":{"o200k":{"encoding":"o200k_base","exactFor":["GPT-4o","GPT-5","GPT-6","o-series"],"package":"gpt-tokenizer","note":"Exact for OpenAI text using o200k_base; runs in the browser and never uploads the prompt."},"cl100k":{"encoding":"cl100k_base","exactFor":["GPT-4","GPT-3.5"],"package":"gpt-tokenizer","note":"Legacy OpenAI encoding; exact for GPT-4 and GPT-3.5 text."},"proxy":{"note":"Claude, Gemini, DeepSeek and Llama do not expose compatible local tokenizers. Their rows reuse the selected OpenAI count as a labelled estimate; use the provider token-count endpoint for billing reconciliation."}},"formula":{"uncachedInput":"promptTokens * (1 - cacheableShare / 100)","cacheHit":"promptTokens * (cacheableShare / 100) * (hitRate / 100)","cacheMiss":"promptTokens * (cacheableShare / 100) * (1 - hitRate / 100)","inputCost":"(uncachedInput * inputPricePerMTok + cacheHit * cacheReadPerMTok + cacheMiss * cacheWritePerMTok) / 1e6","outputCost":"outputTokens * outputPricePerMTok / 1e6","monthlyBill":"(inputCost + outputCost) * requestsPerDay * 30","savings":"monthlyNoCache - monthlyCached","note":"Per-request expected value: every miss is billed at the cache-write price. Real explicit caches write once per prefix per TTL, so this is conservative for stable prompts. Below the provider minimum cache size, caching is ignored."},"cacheRules":{"openai":"Automatic prompt caching; read discount from the OpenRouter snapshot, cache writes billed at the listed write price when provided.","anthropic":"Explicit prompt caching: 5-minute writes at 1.25× input, reads at 0.1× input. 1-hour writes and cache storage are not modelled.","google":"Implicit prompt caching: reads at the listed cache-read price, writes at the normal input price. Explicit cache storage is not modelled.","deepseek":"Automatic context caching: hit price from the snapshot, misses at the normal input price. Peak/off-peak rates are not modelled.","meta":"No prompt caching discount in the snapshot; savings are zero."},"calculator":{"en":"https://www.sogoh.com/tools/llm-token-cost-calculator/","zh":"https://www.sogoh.com/zh/tools/llm-token-cost-calculator/"},"license":"Free to reuse with attribution and a link to the source page."}