LLM API Pricing & AI Token Cost Calculator
Calculate, compare, and forecast API token expenditures across 50+ frontier models from OpenAI, Anthropic, DeepSeek, Meta, Google, and NVIDIA. Features live pricing for GPT-6 Astra, Claude Sonnet 5, Llama 4 Maverick, DeepSeek V4.1, and Nemotron 3.
API Token Budgeting Experience
Quick & Simple: Popular workload presets, streamlined model pickers, and immediate monthly run rates.
Streamlined view with essential inputs, clear verdicts, and zero cognitive overload.
Production Budget & ROI Analysis
High-Efficiency Choice: Claude Sonnet 5 operates at just $2.00/1M input, making it ideal for high-frequency agent loops, batch document ingestion, and continuous enterprise background workers.
Custom Token Sizing, Reasoning Tokens & Caching Controls▾ Expand Custom Tuning
Workload Token Sizing
🖼️ Vision Tokenizer
Models generate internal reasoning tokens billed at Output rate ($10.00/1M).
Claude Sonnet 5 Rate CardAnthropic
Cross-Model Cost Comparison for Identical Workload
Click any row to select model| Model & Provider | Context | Cost per Call | Monthly Total | Difference vs Claude Sonnet 5 | Switch |
|---|---|---|---|---|---|
Claude Sonnet 5Current Anthropic | 1,000,000 | $0.05 | $133 | Baseline | |
AAion 3.5 Aion-labs | 256,000 | $0.09 | $225 | +69% more | |
AAion 3.5 Mini Aion-labs | 256,000 | $0.02 | $52.50 | 61% cheaper | |
Qwen 3.8 Flash Alibaba | 1,000,000 | $0.0025 | $6.16 | 95% cheaper | |
Qwen 3.8 Max Alibaba | 1,000,000 | $0.04 | $98.47 | 26% cheaper | |
Qwen3.8 Max Prime Alibaba | 1,000,000 | $0.06 | $161 | +21% more | |
Qwen3.8 Omni Flash Alibaba | 1,000,000 | $0.0025 | $6.16 | 95% cheaper | |
Qwen4 Max Alibaba | 1,000,000 | $0.02 | $60.35 | 55% cheaper | |
Claude Fable 5.1 Anthropic | 1,000,000 | $0.27 | $666 | +400% more | |
Claude Fable 5.2 Anthropic | 1,000,000 | $0.17 | $413 | +210% more | |
Claude Haiku 5.5 Anthropic | 1,000,000 | $0.0021 | $5.16 | 96% cheaper | |
Claude Opus 5.5 Anthropic | 1,000,000 | $0.19 | $486 | +265% more | |
Claude Sonnet 5.5 Anthropic | 1,000,000 | $0.04 | $103 | 23% cheaper | |
ERNIE-Light-DT-1.0 Baidu | 1,000,000 | $0.04 | $95.25 | 28% cheaper | |
Command A+ Cohere | 192,000 | $0.01 | $28.13 | 79% cheaper | |
DeepSeek V4.1 Flash DeepSeek | 1,000,000 | $0.0031 | $7.71 | 94% cheaper | |
DeepSeek V4.1 Flash 1017 DeepSeek | 1,000,000 | $0.0031 | $7.85 | 94% cheaper | |
EGlimpse Elorian | 256,000 | $0.02 | $56.25 | 58% cheaper | |
Ember-1 Fireworks | 1,000,000 | $0.11 | $281 | +111% more | |
Gemini 3.1 Pro Google | 1,000,000 | $0.05 | $124 | 7% cheaper | |
Gemini 3.8 Flash Google | 2,000,000 | $0.0060 | $14.92 | 89% cheaper | |
Gemini 4 Argon Google | 1,000,000 | $0.07 | $188 | +41% more | |
Gemini 4 Carbon Google | 1,000,000 | $0.07 | $188 | +41% more | |
Gemini 4 Hydrogen Google | 1,000,000 | $0.06 | $141 | +6% more | |
Gemini Omni 1.1 Flash Google | 128,000 | $0.06 | $150 | +13% more | |
Gemini Omni 1.2 Flash Google | 128,000 | $0.06 | $150 | +13% more | |
Nano Banana 2.1 Google | 66,000 | $0.06 | $141 | +6% more | |
IMercury 2.5 Inception | 256,000 | $0.0014 | $3.44 | 97% cheaper | |
IMercury 3 Inception | 1,000,000 | $0.0034 | $8.44 | 94% cheaper | |
ILing 3.0 Flash VL inclusionAI | 256,000 | $0.00068 | $1.70 | 99% cheaper | |
ILing 3.1 Flash inclusionAI | 256,000 | $0.0024 | $6.09 | 95% cheaper | |
ISchematron V2 Small Inference-net | 128,000 | $0.0018 | $4.56 | 97% cheaper | |
ISchematron V2 Turbo Inference-net | 128,000 | $0.0011 | $2.81 | 98% cheaper | |
KMi:dm K 3.0 Pro Kt | 256,000 | $0.0070 | $17.50 | 87% cheaper | |
LLFM2.5-24B-A2B Liquid | 128,000 | $0.0030 | $7.50 | 94% cheaper | |
LLFM3-1.7B Liquid | 256,000 | $0.0025 | $6.25 | 95% cheaper | |
Llama 4 Maverick (401B MoE) Meta | 1,000,000 | $0.0043 | $10.74 | 92% cheaper | |
Llama 4 Scout (70B) Meta | 512,000 | $0.0014 | $3.56 | 97% cheaper | |
Muse Ember Meta | 1,000,000 | $0.0028 | $7.03 | 95% cheaper | |
Muse Spark 1.3 Meta | 1,000,000 | $0.03 | $75.39 | 43% cheaper | |
Muse Spark Open Meta | 1,000,000 | $0.03 | $75.39 | 43% cheaper | |
Muse Wonder Meta | 1,000,000 | $0.11 | $281 | +111% more | |
MiniMax M3.1 Flash Minimax | 1,000,000 | $0.0052 | $13.12 | 90% cheaper | |
Mistral Large 4 Mistral | 1,000,000 | $0.01 | $26.87 | 80% cheaper | |
MMoondream 3 Preview Moondream | 32,000 | $0.01 | $34.38 | 74% cheaper | |
MMoondream 3.1 Moondream | 32,000 | $0.01 | $34.38 | 74% cheaper | |
Kimi K3 Moonshot | 200,000 | $0.06 | $161 | +21% more | |
Kimi K3.1 Pro Moonshotai | 1,000,000 | $0.06 | $141 | +6% more | |
MMotif 3 Motif-technologies | 256,000 | $0.01 | $26.25 | 80% cheaper | |
NNex-N2.6 Nex-agi | 256,000 | $0.0040 | $10.00 | 92% cheaper | |
Nemotron 3 Nano (30B) NVIDIA | 128,000 | $0.0021 | $5.25 | 96% cheaper | |
Nemotron 3 Super (120B) NVIDIA | 256,000 | $0.0025 | $6.35 | 95% cheaper | |
Nemotron 3 Ultra (550B) NVIDIA | 256,000 | $0.02 | $52.50 | 61% cheaper | |
Nemotron 3.5 Lightning NVIDIA | 256,000 | $0.0014 | $3.44 | 97% cheaper | |
Nemotron 3.5 Super VL NVIDIA | 1,000,000 | $0.0035 | $8.75 | 93% cheaper | |
Switchyard NVIDIA | 1,000,000 | $-27500.000000 | $-68750000.000000 | 51643292% cheaper | |
GPT-5.6 Sol OpenAI | 200,000 | $0.06 | $141 | +6% more | |
GPT-6 Astra OpenAI | 1,000,000 | $0.34 | $853 | +541% more | |
GPT-6 Luna OpenAI | 1,100,000 | $0.0028 | $7.03 | 95% cheaper | |
GPT-6 Luna Pro OpenAI | 1,000,000 | $0.0028 | $7.03 | 95% cheaper | |
GPT-6 Sol OpenAI | 1,100,000 | $0.07 | $171 | +28% more | |
GPT-6 Sol Pro OpenAI | 1,000,000 | $0.06 | $141 | +6% more | |
GPT-6.1 Sol OpenAI | 1,000,000 | $0.06 | $141 | +6% more | |
GPT-6.1 Sol Pro OpenAI | 1,000,000 | $0.06 | $141 | +6% more | |
GPT-6.1 Terra OpenAI | 1,000,000 | $0.03 | $70.31 | 47% cheaper | |
GPT-6.1 Terra Pro OpenAI | 1,000,000 | $0.03 | $70.31 | 47% cheaper | |
PParticle-1 Particle-ai | 1,000,000 | $0.0025 | $6.25 | 95% cheaper | |
PPerceptron Mk1.5 Perceptron | 37,000 | $0.0075 | $18.75 | 86% cheaper | |
PTernary Bonsai 2 27B Prism-ml | 256,000 | $0.0031 | $7.81 | 94% cheaper | |
PTernary Bonsai 2 9B Prism-ml | 256,000 | $0.0023 | $5.81 | 96% cheaper | |
RBeam 1.0 501B A23B Reflection | 1,000,000 | $0.03 | $81.25 | 39% cheaper | |
RRipple 65B Preview Ricursiveai | 1,000,000 | $0.0065 | $16.25 | 88% cheaper | |
SFugu Max Sakana AI | 1,000,000 | $0.07 | $163 | +22% more | |
SFugu Ultra v2 Sakana AI | 1,000,000 | $0.17 | $414 | +211% more | |
SExtract Scaledown | 1,000,000 | $0.0010 | $2.50 | 98% cheaper | |
SSummarize Scaledown | 1,000,000 | $0.0010 | $2.50 | 98% cheaper | |
Step 5 Preview Stepfun | 1,000,000 | $0.03 | $79.38 | 40% cheaper | |
Hy4 Tencent | 1,000,000 | $0.01 | $33.88 | 75% cheaper | |
TInkling 2 Small Thinkingmachines | 1,000,000 | $0.01 | $25.00 | 81% cheaper | |
TJev Router Typesafe | 1,000,000 | $-27500.000000 | $-68750000.000000 | 51643292% cheaper | |
UPareto Unbiased | 256,000 | $0.08 | $203 | +53% more | |
UPareto 26.10 Unbiased | 1,000,000 | $0.03 | $70.00 | 47% cheaper | |
UPareto 26.10 Preview Unbiased | 1,000,000 | $0.03 | $70.00 | 47% cheaper | |
UPareto 26.9 Unbiased | 256,000 | $0.08 | $203 | +53% more | |
USolar Mini 4 Upstage | 524,000 | $0.0018 | $4.38 | 97% cheaper | |
Grok 4 Vision xAI | 500,000 | $0.05 | $122 | 8% cheaper | |
Grok 4.6 xAI | 500,000 | $0.07 | $163 | +22% more | |
Grok 4.7 xAI | 500,000 | $0.07 | $181 | +36% more | |
XMiMo-V2.6-Flash Xiaomi | 1,000,000 | $0.0042 | $10.50 | 92% cheaper | |
XMiMo-V2.6-Pro Xiaomi | 1,100,000 | $0.0080 | $19.94 | 85% cheaper | |
XMiMo-V2.6-Pro-UltraSpeed Xiaomi | 1,000,000 | $0.13 | $326 | +145% more | |
ZGLM 5.3 Flash Z.ai | 1 | $0.00052 | $1.30 | 99% cheaper | |
ZGLM 5.3 FlashX Z.ai | 1,000,000 | $0.0061 | $15.33 | 88% cheaper | |
ZGLM 5.3 FlashX Legal Z.ai | 1,000,000 | $0.0061 | $15.33 | 88% cheaper | |
ZGLM 5.3 Prime Z.ai | 1,000,000 | $0.04 | $112 | 16% cheaper |
Need More VRAM? Deploy On-Demand Cloud GPUs
Bypass local memory limits. Spin up an RTX 4090 or A100 80GB in under 60 seconds with per-minute billing.
Instant cloud GPUs with 1-click vLLM, Ollama, and PyTorch templates. RTX 4090 to 8x H100.
Decentralized GPU marketplace with aggressive per-hour rates for consumer & datacenter cards.
High-speed networked enterprise clusters with low latency and dedicated NVMe storage.
Rates verified weekly. Transparent disclosure: We may receive an affiliate commission from partner signups at no extra cost to you.
Engineering LLM API Economics: Complete Cost Optimization Guide
Building scalable infrastructure on frontier foundation models requires deterministic unit economic modeling. Without proactive architectural safeguards, compounding context windows, un-cached system prompts, and unmonitored internal reasoning traces can inflate monthly operational expenditures by 300% to 800%.
How are 2026 LLM API token prices structured across input, output, and reasoning tokens?
| Token / Billing Tier | Data Unit | 2026 Rate Range ($/1M Tokens) | Technical Behavior & Cost Constraints |
|---|---|---|---|
Standard Input (Prompt) | per 1M tokens | $0.02 – $2.50 | Parallel prefill pass. Scaled by system prompts, conversation history, and RAG chunks. |
Standard Output (Completion) | per 1M tokens | $0.08 – $10.00 | Autoregressive generation pass. Memory bandwidth bound; priced 3× to 5× higher than input. |
Reasoning / Thinking Tokens | per 1M tokens | $0.42 – $50.00 | Internal Chain-of-Thought (CoT). Hidden in UI but charged strictly at full Output Token pricing. |
Cached Prompt Read | per 1M tokens | $0.02 – $0.50 | Re-reads existing prefix KV-cache in memory. Provides 75% to 90% direct price reduction. |
Batch API Requests | per 1M tokens | 50% Discount | Asynchronous, non-realtime batch queue with guaranteed 24-hour turnaround SLA. |
How do Prompt Caching and Batch API discounts reduce production LLM expenditures?
Deterministic Production API Cost Formula:
Total Cost = [(Uncached Input × P_in) + (Cached Input × P_cache) + ((Output + Reasoning) × P_out)] × (1 − Batch_Discount)
Example Calculation (Claude Sonnet 5: 1,000 calls with 25K prompt, 80% cached, 2K output, 4K reasoning):
Uncached Input: 5M tokens × $2.00/1M = $10.00
Cached Read Input: 20M tokens × $0.20/1M = $4.00
Output + Reasoning: 6M tokens × $10.00/1M = $60.00
Total Call Expense: $74.00 (vs. $135.00 without caching — 45.2% instant savings)
| Model Name | Provider | Context Window | Input / 1M | Output / 1M | Cache Read Rate | Production Architecture Tier |
|---|---|---|---|---|---|---|
DeepSeek V4.1 Flash | DeepSeek | 1,000,000 | $0.14 | $0.42 | $0.035 (75% off) | Tier 1 — Ultra-Fast Router & Triage |
Ling 3.0 Flash VL | InclusionAI | 256,000 | $0.02 | $0.06 | $0.005 (75% off) | Tier 1 — High-Volume Event Ingestion |
Llama 4 Maverick | Meta (Open-Weights) | 1,000,000 | $0.188 | $0.653 | $0.050 (73% off) | Tier 2 — Primary Synthesis Workhorse |
Gemini 3.8 Flash | 1,000,000 | $0.75 | $3.75 | $0.187 (75% off) | Tier 2 — Long-Context Multimodal Agent | |
Claude Sonnet 5 | Anthropic | 1,000,000 | $2.00 | $10.00 | $0.200 (90% off) | Tier 3 — Flagship Engineering & Coding |
Nemotron 3 Super (120B) | NVIDIA | 256,000 | $0.08 | $0.24 | $0.020 (75% off) | Tier 2 — Enterprise On-Prem & Private Cloud |
GPT-6 Astra | OpenAI | 1,000,000 | $10.00 | $50.00 | $2.500 (75% off) | Tier 3 — Maximum Reasoning & Scientific Proofs |
Recommended 3-Tier Production Cascade
Leading engineering teams avoid routing 100% of user traffic directly to expensive Tier 3 flagship models. Instead, they deploy a 3-tier cascaded architecture:
- Tier 1 — Ultra-Fast Routers & Triage ($0.02–$0.15/1M): Deploy ultra-efficient models like DeepSeek V4.1 Flash, Ling 3.0 Flash VL, or Mercury 2.5 to parse user intent, run safety guardrails, and execute lightweight SQL or CRM queries.
- Tier 2 — Core Workhorse Synthesis ($0.18–$0.75/1M): Handle 80% of standard production generation, chat dialogues, code drafting, and summarization using Llama 4 Maverick, Gemini 3.8 Flash, or Nemotron 3 Super.
- Tier 3 — Complex Reasoning Escalation ($2.00–$10.00+/1M): Escalate only multi-file architecture refactoring, complex mathematical validation, or autonomous agent decision loops to Claude Sonnet 5, GPT-6 Astra, or DeepSeek-R1.
Frequently Asked Questions
How are 2026 LLM API token prices structured across input, output, and reasoning tokens?
In 2026, foundation models charge across three distinct tiers: Input Tokens ($0.02 to $10.00/1M) processed in parallel across attention heads; Output Tokens ($0.08 to $50.00/1M) computed sequentially token-by-token; and internal Reasoning / Thinking Tokens (generated by models like GPT-6 Astra, Claude Sonnet 5, and DeepSeek-R1) which are billed at the higher Output Token rate, often doubling or tripling effective per-request costs.
How do Prompt Caching and Batch API discounts reduce production LLM expenditures?
Prompt Caching allows providers (Anthropic, DeepSeek, Google, OpenAI) to persist compiled prompt prefixes in GPU memory across requests, granting 75% to 90% discounts on cache reads ($0.10 to $0.50/1M). Asynchronous Batch APIs provide a guaranteed 50% discount on standard token rates for non-urgent jobs processed within a 24-hour SLA.
What is the cost difference between open-weights hosting and proprietary foundation APIs?
Open-weights models such as Llama 4 Maverick (401B MoE) and Nemotron 3 Super (120B) offer token rates as low as $0.188 input / $0.653 output per 1M tokens through optimized cloud inference providers, compared to $2.00–$10.00 input / $10.00–$50.00 output for proprietary frontier flagships like Claude Fable 5.1 and GPT-6 Astra.
How do you accurately estimate token counts for unstructured developer documents?
On modern byte-pair encoding (BPE) tokenizers like o200k_base, 1 English token corresponds to roughly 4 characters or 0.75 words. A 250-word book page corresponds to 330–350 tokens, a 500-word document consumes ~670 tokens, and 1,000 lines of typical TypeScript code averages 8,000–10,500 tokens.