Last reviewed: · Prices from our dataset, rechecked against each provider’s official page · Price history

The list price per million input tokens is rarely what a production workload pays. Two mechanisms change it the most: prompt caching, which bills repeated input at a fraction of the normal rate, and batch processing, which discounts work you can wait for. Every provider we track handles them differently. This page sets out the rules from each provider’s own documentation and prices two workloads with them.

What caching and batching actually discount

Prompt caching applies to the start of a prompt that repeats exactly: a system prompt, tool definitions, a long document, or the earlier turns of a conversation. The provider keeps the processed prefix for a while; when the next request begins with the same tokens, those tokens are billed at the cached (or “cache hit”) rate. Change one token early in the prompt and everything after it is a miss.

Batch processing means submitting many requests as a job and accepting results later (OpenAI, Anthropic and Google describe a window of up to 24 hours). In return, the provider discounts every token in the job. It suits evaluations, classification backfills, nightly summaries and embeddings-style bulk work; it does not suit a user waiting for a reply.

Provider by provider

Anthropic (Claude)

OpenAI

Google (Gemini)

xAI (Grok)

DeepSeek

Every model’s cache and batch rates

ModelInput $/MCache read $/MRead savingCache write $/MBatch discount
Anthropic Fable 5.1$10$0.2598%$12.550%
Anthropic Opus 5.5$4$0.295%$550%
Anthropic Sonnet 5.5$2$0.195%$2.550%
Anthropic Haiku 5.5$0.1$0.0190%$0.12550%
OpenAI GPT-6 Astra$10$190%$12.550%
OpenAI GPT-6.1 Sol$2$0.195%$2.550%
OpenAI GPT-6 Luna$0.1$0.0190%$0.12550%
OpenAI GPT-5.6 Sol$4$0.490%$550%
OpenAI GPT-5.5 Pro$30———50%
OpenAI GPT-5 nano$0.05$0.00590%—50%
Google Gemini 4 Argon$2$0.195%—50%
Google Gemini 3.8 Flash$0.75$0.07590%—50%
Google Gemini 3.1 Pro$2$0.290%—50%
Google Gemini 3.5 Flash-Lite$0.3$0.0390%—50%
Google Gemini 3.1 Flash-Lite$0.25$0.02590%—50%
xAI Grok 4.7$2$0.575%—20%
xAI Grok Build 0.1$1$0.280%—none
DeepSeek V4 Pro$1.32$0.04497%——
DeepSeek V4.1 Flash$0.3$0.00698%——

“Cache write” is shown only where the provider charges a separate write rate (Anthropic’s 5-minute lifetime, OpenAI’s 30-minute default). DeepSeek rates are peak-hour; Gemini 4 Argon and 3.8 Flash have announced price increases (see the Gemini page).

When a cache write pays for itself

With a 1.25× write and a 0.1× read, writing a prefix once and reading it once costs 1.35× its normal input price, against 2× for sending it twice uncached; OpenAI’s documentation works through the same numbers. Over ten uses the cached version costs 2.15× instead of 10×. So caching pays from the second hit, as long as the hits arrive before the entry expires: within 5 minutes on Anthropic’s default, 30 minutes on OpenAI’s. Low-traffic apps that send a request every 20 minutes may pay write prices again and again without ever reading, which is what the longer (and pricier) lifetimes are for.

Example A: a support assistant with a long fixed prefix

5,000 requests a day. Each sends a 6,000-token fixed prefix (instructions plus product documentation), 300 tokens of question, and gets 300 tokens back. The prefix is 95% of the input and clears every provider’s minimum length. At this traffic (several requests a minute) the cache stays warm, so we treat the prefix as read from cache and ignore the occasional write.

ModelPer month, no cachingPer month, prefix cachedSaving
OpenAI GPT-5 nano$65.25$24.7562%
Anthropic Haiku 5.5$117$36.0069%
OpenAI GPT-6 Luna$117$36.0069%
Google Gemini 3.1 Flash-Lite$304$10167%
DeepSeek V4.1 Flash$338$72.9078%
Google Gemini 3.5 Flash-Lite$396$15361%
Google Gemini 3.8 Flash$878$27069%
xAI Grok Build 0.1$1,035$31570%
DeepSeek V4 Pro$1,426$27781%
xAI Grok 4.7$2,160$81063%
Anthropic Sonnet 5.5$2,340$63073%
OpenAI GPT-6.1 Sol$2,340$63073%
Google Gemini 4 Argon$2,340$63073%
Google Gemini 3.1 Pro$2,430$81067%
Anthropic Opus 5.5$4,680$1,26073%
OpenAI GPT-5.6 Sol$4,680$1,44069%
Anthropic Fable 5.1$11,700$2,92575%
OpenAI GPT-6 Astra$11,700$3,60069%
OpenAI GPT-5.5 Pro$36,450——

On Sonnet 5.5, for example, the bill falls from $2,340 to $630 a month. Notice that the saving is never the full read discount: output tokens and the uncached question are billed at the normal rates, and output is the expensive part (see input vs output pricing).

Example B: an offline classification job through the Batch API

200,000 support tickets a month, labelled overnight. Each request is 800 input tokens and 50 output tokens, and nobody is waiting for the answer, so it can go through a batch job.

ModelStandard API / monthBatch API / month
OpenAI GPT-5 nano$12.00$6.00
Anthropic Haiku 5.5$21.00$10.50
OpenAI GPT-6 Luna$21.00$10.50
Google Gemini 3.1 Flash-Lite$55.00$27.50
DeepSeek V4.1 Flash$60.00—
Google Gemini 3.5 Flash-Lite$73.00$36.50
Google Gemini 3.8 Flash$158$78.75
xAI Grok Build 0.1$180—
DeepSeek V4 Pro$251—
xAI Grok 4.7$380$304
Anthropic Sonnet 5.5$420$210
OpenAI GPT-6.1 Sol$420$210
Google Gemini 4 Argon$420$210
Google Gemini 3.1 Pro$440$220
Anthropic Opus 5.5$840$420
OpenAI GPT-5.6 Sol$840$420
Anthropic Fable 5.1$2,100$1,050
OpenAI GPT-6 Astra$2,100$1,050
OpenAI GPT-5.5 Pro$6,600$3,300

A dash means the provider publishes no batch discount for that model. For DeepSeek, running the same job outside peak hours halves it instead. Batch and caching can be combined on Anthropic, OpenAI and Google, but a shared prefix of 800 tokens is too short to cache on Gemini (4,096-token minimum) and on OpenAI (1,024), which is why this example uses batch alone.

Common mistakes

To try your own cache hit rate, set the cached share in the calculator.

Sources

Spotted something out of date? Email contact@quotacost.com and we will correct it and log the fix on the changelog.

Read next