What this LLM pricing calculator does
Most API bills come down to three numbers: how many tokens you send, how many of those are served from the provider's cache, and how many tokens the model writes back. Enter those once and the table prices the same workload on 15 current models from OpenAI, Anthropic, Google and xAI, side by side. Click any column heading to sort; the cheapest model for your workload is tagged.
Every rate in the table was copied from the provider's own pricing page on November 19, 2026. We do not estimate or round prices, and where a provider does not publish a number (a context window, for example) the cell says so instead of guessing. The sources are linked at the bottom of this page.
How to estimate your token counts
- Input tokens are everything you send: system prompt, chat history, retrieved documents, tool definitions and the user's message. One English word is roughly 1.3 tokens, but each provider uses its own tokenizer, so the same text can produce a different count on different models.
- Cached input is the part of the input that repeats between requests and is read from the prompt cache. Long system prompts and agent loops that re-send the same codebase benefit most.
- Output tokens include visible text and any reasoning tokens the model spends before answering. Reasoning models can produce several times more output than the visible reply, so measure a few real requests if you can.
- Requests per month turns the per-request price into a budget.
Not sure where to start? The example buttons load typical shapes: a short chatbot reply, a retrieval-augmented answer, an agent step that re-reads a cached codebase, a single 300K-token document, and a million tiny batch classification calls.
Reading the price table
The table shows the standard, global price per 1 million tokens. A few rules change the real bill, and the calculator applies the ones that can be priced from public numbers:
- Long prompts cost more on some models. GPT-6.2 Sol, GPT-6.2 Astra and the other GPT-6.x models switch to higher rates for the entire request when input exceeds 272K tokens (input and cache prices double, output is 1.5×). Claude Haiku 5.5 has a separate price above 100K prompt tokens, and Grok 4.7 above 200K. Claude Fable 5.2, Opus 5.5 and Sonnet 5.5 keep the same rate across the full 1M context.
- Batch processing halves the price on the OpenAI, Anthropic and Google models listed and takes 20% off Grok 4.7, if you can wait for asynchronous results.
- Scheduled price changes. Google's pricing page lists higher rates for Gemini 4 Carbon and Gemini 4 Argon from December 1, 2026, and for Gemini 3.8 Flash from January 1, 2027. The calculator switches to the new rate automatically on that date.
- Not included: cache-write fees, cache storage, regional or data-residency uplifts (OpenAI and Anthropic list +10% for regional endpoints on recent models), premium speed tiers, tool calls such as web search, and taxes.
Quick comparison: flagship vs. workhorse models
The gap between tiers is large. For the "coding agent step" example (60,000 input tokens of which 50,000 are cached, 2,000 output tokens), GPT-6.2 Sol costs $0.045 per step and GPT-6.2 Astra $0.18, exactly four times more, because every Astra rate is 4× Sol's. Claude Opus 5.5 lists $4 input and $20 output, double Sonnet 5.5's $2 and $10.
Price per token is only half the story: a model that solves a task in fewer tokens or fewer retries can be cheaper per finished task even at a higher rate. Use the calculator to bound the cost, then test on your own prompts.
Pricing pages by provider and model
Each page has the full price list, long-context and batch rules, worked cost examples and a calculator limited to the relevant models:
- OpenAI pricing calculator: every current GPT model, tool fees and batch rules
- GPT-6.2 pricing: Astra at $8 / $40 and Sol at $2 / $10 per 1M tokens
- GPT-6.2 Sol pricing: $2 input, $0.10 cached, $10 output per 1M tokens
- Claude Opus 5.5 pricing: $4 / $20, no long-context surcharge
- Claude Fable 5.2 pricing: $8 / $40 per 1M tokens, $0.20 cache reads, fast mode and batch rates
- Gemini 4 pricing: Carbon, Argon, Neon and Hydrogen, with the December 1 price rise
- Grok 4.7 pricing: $2 / $6 per 1M tokens, 20% off on the Batch API, higher rates from 200K prompt tokens
- MAI Code 2 Flash: Microsoft's coding model, specs, benchmarks and cost claims
Open-weight models
Official prices plus every third-party provider, refreshed daily:
- DeepSeek API pricing: V4.1 Flash at $0.15 / $0.60 off-peak, V4 Pro at $0.66 / $1.98
- Qwen API pricing: Qwen3.8-27B at $0.50 / $3 on Alibaba Cloud (Singapore), plus Qwen4 Max and Flash
- Kimi API pricing: Kimi K3.1 Pro and K3, $2 / $10 on Moonshot
- GLM API pricing: GLM-5.3 and GLM-5.3-Flash on Z.AI and 40+ providers
- DeepInfra pricing: one provider's prices for seven open models, next to the official APIs
Head-to-head comparisons
- Cheapest LLM API: the lowest prices across providers, updated daily
- GPT-6.2 Sol vs Astra: what the 4× price gap means per request
- GPT-6.2 Astra vs GPT-6 Astra: 20% cheaper, cache 60% cheaper
- GPT-6.2 Sol vs Claude Opus 5.5: 2× apart, until prompts pass 272K tokens
- Gemini 4 Neon vs Claude Opus 5.5: near-tied quality, 1.33× price gap
Read how we collect and check prices for the full methodology.