LLM API Pricing Calculator

Compare real token costs across 17 models from 6 providers. Workload-aware — chat costs different from summarization. Includes prompt caching (up to 90% off) and batch processing (up to 50% off) discounts. All calculations client-side. No data leaves your browser.

📋 Workload Configuration

Select a workload profile to auto-fill typical token ratios, or configure custom values. Token counts are approximate — different providers use different tokenizers, so the same text produces different token counts. The calculator uses your numbers uniformly; see the methodology note below.

Prompt Cache Hit Rate: 0%
% of input tokens billed at the cache-read rate instead of the full input rate. Cache reads run 2–20% of input depending on provider.
Batch Processing: 50% off for async on OpenAI, Anthropic, Google and Mistral. DeepSeek and Together AI publish no batch tier.

Why LLM API Pricing Isn't a Simple Multiplication

The pricing page says $2.00 per million input tokens. Your mental math: "10,000 requests × 2,000 tokens × $2.00/M = $40/day." Then the bill arrives and it's $120/day. Four structural reasons the napkin math fails every time.

1. Input ≠ Output Token Counts

Most pricing pages quote input and output prices separately — but your workload determines the ratio. A chat application with system prompts and conversation history averages roughly 1:0.4 input-to-output tokens (2.5× more input than output). A summarization pipeline averages 8:1 (long document in, short summary out). A code generation agent averages 1:2 (short prompt, longer code block out). Since output tokens are priced 5× higher than input tokens across the current flagship tier — 6× on Gemini 3.1 Pro, 3–4× at DeepSeek and Mistral — the workload ratio is a cost multiplier. A summarization workload at 8:1 pays mostly input prices; a code generation workload at 1:2 pays mostly output prices. Same daily request count, same provider — 3× cost difference between profiles.

2. Prompt Caching: The Most Underutilized Discount

A cache read is the cheapest token on any price card. OpenAI and Anthropic both bill one at 10% of the input rate — a 90% discount — and Claude Opus 5.5 goes further, at 5%. Google bills Gemini cache reads at 10%, Mistral at 10% and DeepSeek at 2–3%. If your application sends the same system prompt with every request — and most do — that's 500–2,000 tokens per request that qualify for caching. A 2,000-token system prompt at 1M requests/month saves $7,600/month on Claude Opus 5.5 alone. The discount exists. Most teams never configure it.

3. Batch Processing: Half Price for Patience

OpenAI, Anthropic, Google and Mistral all publish a 50% batch discount for asynchronous processing, traded for a completion window instead of a realtime SLA. For offline workloads — evaluation runs, dataset labeling, embedding generation, nightly summarization jobs — batch pricing cuts the bill in half with no downsides. Stacked with caching, a batched cache hit bills at 5% of the sticker input rate — 50% batch × 90% cache. DeepSeek and Together AI publish no batch tier; there the lever is the cache hit, worth 80–98% off input.

4. Tokenizer Variance: 1,000 Tokens ≠ 1,000 Tokens

OpenAI, Anthropic, Google, DeepSeek and Mistral each ship a different tokenizer, and none of them quotes a token count for your text. The same English paragraph can measure 800 tokens on one provider's tokenizer, 750 on another's and 880 on a third; on Chinese text with interleaved English technical terms the spread is wider still. Across 1 million requests per day, a 10% tokenizer efficiency difference translates to thousands of dollars per month in cost variance — before you even compare the per-token prices. The calculator uses uniform token counts for comparability; in practice, benchmark your actual text across providers before committing.

How to Use This Calculator

  1. Pick your workload profile — this sets realistic input/output token ratios.
  2. Set your daily request volume and adjust token counts if needed.
  3. Slide the prompt cache hit rate based on what percentage of your requests share a common prefix (system prompts, few-shot examples, RAG context).
  4. Toggle batch processing for offline/non-realtime workloads.
  5. Compare the "Annual Cost" column (no optimizations) with "Optimized Annual" (cache + batch) — the gap is savings you're leaving on the table.

Pricing Basis, Sources & Assumptions

Every rate on this page is a published vendor list price — no negotiated discounts, private pricing, or credit offsets. Totals are in USD and exclude tax. Rates were last checked against the sources below on .

Pricing inputBasis used on this page
RegionGlobal USD list rates. Five of the six vendors publish one worldwide rate card, so the page carries no region selector. The exceptions are stated rather than modelled: Google prices a non-global endpoint about 10% above the global one, Mistral charges 10% for regional inference, and Azure OpenAI is regional by deployment type.
CurrencyUSD — on-demand list price, tax excluded
Last checked — The roster was rebuilt on this date against the vendor price pages linked below. Every model listed is drawn from the vendor's current published line-up, and every rate is the listed per-million-token price for the model named rather than a retired generation's. Where a vendor publishes context-length tiers, peak and off-peak hours, or an introductory price, the assumption list below says which one this page uses. Treat the linked price pages as authoritative.

Modelling assumptions

What this model excludes

Sources

  1. OpenAI (2026). "OpenAI API Pricing." Per-million-token input, output, and cached-input rates for the OpenAI models listed. developers.openai.com
  2. Anthropic (2026). "Claude API Pricing." Per-million-token rates and prompt-caching discounts for the Claude models listed. platform.claude.com
  3. Google Cloud (2026). "Generative AI on Vertex AI Pricing." Gemini per-million-token rates on both the standard and batch tiers. cloud.google.com
  4. DeepSeek (2026). "DeepSeek API Pricing." Per-million-token rates for the DeepSeek models, including off-peak discounts. api-docs.deepseek.com
  5. Mistral AI (2026). "API Pricing." Per-million-token rates for Mistral Large 3, Medium 3.5 and Small 4, plus the batch, caching and regional-inference terms. mistral.ai
  6. Together AI (2026). "Together AI Pricing." Third-party hosting rates for the open-weight models listed: Kimi K3, GLM-5.3 and MiniMax M3. together.ai

Vendor list prices change without notice — re-check the linked pages before committing spend. jslet takes no vendor sponsorship and carries no affiliate links; see about.