Prompt caching pricing compared: cached input per model

Every chat model with a cached-input price, grouped by developer, ours beside the developer's list rate, with a worked agent-loop example of what caching saves.

Checked 2026-11-22

·All posts·Models

Cached input is the price that decides an agent's bill, and on this catalog it runs from a free read to a fraction of the input rate depending on the developer; below is every chat model with a cache_read price, 138 ids from 19 developers, our rate next to the developer's list rate. Prices are read live from /v1/catalog when this page renders, so the figures are today's, not the day the page was written.

Why the cached rate, not the input rate, sets an agent's cost

A single question-and-answer turn is billed on three counts: fresh input tokens, cached input tokens and output tokens. In a one-shot call almost everything is fresh. In an agent loop the picture flips: the system prompt, the tool definitions and the growing transcript are sent again on every step, and only the newest tool result is new. After the first step most of the input is a repeat, and a repeat that the model's cache recognises is billed at pricing.cache_read instead of pricing.input.

There is no separate feature to switch on for the model-side prompt cache: when the SDK sends the same prefix twice within the developer's cache window, the cached tokens are reported in the response body's usage and billed at the cached rate. A model with no cached rate on the catalog bills repeated tokens at its full input rate, which is why a model that looks cheaper on the input column can cost more in a loop than a dearer model with a deep cache discount.

Two things differ from calling a developer directly. First, the cached rate here is our rate, read from the same row as the input and output rates; the table shows ours and the developer's list cached read side by side, and a few rows do not follow the input-column pattern, so read the row rather than assuming it. Second, on Anthropic-format requests a large system prompt that many accounts send can receive a cache breakpoint without the request asking for one, so those reads bill at the cached rate; the request can opt out per call, and no prompt text is stored, only hashes. The response cache, which answers an exact repeat of a whole request without calling a model, is a different feature and is described on /features/caching; this page is about the model-side prompt cache only.

How to read the tables

Each developer below gets one table, one row per id. The column to compare across developers is Cached input / 1M against Input / 1M on the same row; the ratio is what a loop saves. The two List columns are the developer's own published rates on the reading date, from the catalog's list_pricing field; an empty cell means the developer publishes no list price on record for that id, not that the developer has none.

Every id below is served at the same price in every wire format and on every route behind it, so a Claude id costs the same through the Anthropic SDK and the OpenAI SDK, and a failover never changes the rate.

Anthropic

ModelidInput / 1MCached input / 1MOutput / 1MList inputList cached input
Claude Fable 5.2claude-fable-5.2$3.88$0.184$19.40$8.00$0.20
Claude Haiku 4.5claude-haiku-4-5$0.60$0.06$3.00$1.00$0.10
Claude Haiku 4.5claude-haiku-4-5-20251001$0.60$0.06$3.00$1.00$0.10
Claude Haiku 5.5claude-haiku-5-5$0.0582$0.01$0.1455$0.10$0.01
Claude Opus 4.7claude-opus-4-7$1.80$0.16$7.50$5.00$0.50
Claude Opus 5claude-opus-5$1.80$0.16$7.50$5.00$0.50
Claude Opus 5.5claude-opus-5-5$2.716$0.1455$9.70$4.00$0.20
Claude Sonnet 4.6claude-sonnet-4-6$1.80$0.18$9.00$3.00$0.30
Claude Sonnet 5claude-sonnet-5$1.20$0.12$3.00$2.00$0.20
Claude Sonnet 5.5claude-sonnet-5-5$1.164$0.075$2.91$2.00$0.10

Anthropic publishes a cached-read rate for its models, and the catalog carries it in list_pricing.cache_read, so this table is the cleanest like-for-like comparison on the page. For a quick read: claude-sonnet-5-5 shows $0.075 cached against $1.164 fresh, with the developer's list cached read at $0.10.

OpenAI

ModelidInput / 1MCached input / 1MOutput / 1MList inputList cached input
Codex Auto Reviewcodex-auto-review$0.72$0.015616$1.12——
GPT 5.4 Nanogpt-5.4-nano$0.40$0.04$2.50——
GPT 5.6gpt-5.6$1.19994$0.260704$7.199472——
GPT 6.1 Terragpt-6.1-terra$0.294116$0.029412$1.470588——
GPT 6.2 SOLgpt-6.2-sol$0.176472$0.011764$0.882352——
GPT-4.1 Nanogpt-4.1-nano$0.10$0.025$0.40$0.10$0.03
GPT-4ogpt-4o$2.50$1.25$10.00$2.50$1.25
GPT-5.3-Codexgpt-5.3-codex$1.75$0.18$14.00$1.75$0.175
GPT-5.4gpt-5.4$1.50$0.15$9.00$2.50$0.25
GPT-5.4 Minigpt-5.4-mini$0.75$0.075$4.50$0.75$0.075
GPT-5.5gpt-5.5$1.80$0.16$9.00$5.00$0.50
GPT-5.6 Lunagpt-5.6-luna$0.12$0.012$0.72$0.20$0.02
GPT-5.6 Terragpt-5.6-terra$1.20$0.12$3.60$2.00$0.20
GPT-6 Astragpt-6-astra$3.00$0.30$15.00$10.00$1.00
GPT-6 Astra Progpt-6-astra-pro$4.00$0.40$20.00——
GPT-6 Astra Pro Maxgpt-6-astra-promax$5.882352$0.294116$29.411764——
GPT-6 Lunagpt-6-luna$0.0625$0.0125$0.20$0.10$0.01
GPT-6 Luna Plusgpt-6-luna-plus$0.12$0.012$0.60——
GPT-6 Solgpt-6-sol$0.60$0.12$3.00$2.00$0.20
GPT-6.1 Solgpt-6.1-sol$0.582$0.0582$2.91$2.00$0.10
GPT-6.1 Sol Plusgpt-6.1-sol-plus$4.00$0.20$20.00——
GPT-6.1 Sol Progpt-6.1-sol-pro$0.80$0.04$4.00——
GPT-6.1 Sol Pro Maxgpt-6.1-sol-pro-max$1.60$0.08$8.00——
gpt-oss-120bgpt-oss-120b$0.20$0.04$1.80——

OpenAI's cached input is automatic on its side when a prefix repeats, and the same applies here. gpt-6.1-sol bills $0.0582 per million cached tokens against $0.582 fresh; the developer's list cached read is $0.10.

Google

ModelidInput / 1MCached input / 1MOutput / 1MList inputList cached input
Gemini 2.5 Flashgemini-2.5-flash$0.30$0.03$2.50$0.30$0.03
Gemini 2.5 Flash Litegemini-2.5-flash-lite$0.075$0.06$0.30$0.10—
Gemini 2.5 Progemini-2.5-pro$0.9375$0.09375$7.50$1.25$0.125
Gemini 3.1 Flash Litegemini-3.1-flash-lite$0.15$0.15$0.90$0.25—
Gemini 3.1 Flash Lite Previewgemini-3.1-flash-lite-preview$0.1875$0.01875$1.125$0.25$0.025
Gemini 3.1 Pro Previewgemini-3.1-pro-preview$1.20$0.12$7.20$2.00$0.20
Gemini 3.1 PRO Preview Customtoolsgemini-3.1-pro-preview-customtools$4.80$0.48$28.80——
Gemini 3.5 Flashgemini-3.5-flash$1.50$0.15$9.00$1.50$0.15
Gemini 3.5 Flash Litegemini-3.5-flash-lite$0.225$0.0225$1.875$0.30$0.03
Gemini 4 Argon PROgemini-4-argon-pro$1.764704$0.176472$8.823528——
Gemini 4 Carbongemini-4-carbon$1.032588$0.386764$5.16294——
Gemini Flash Latestgemini-flash-latest$1.80$0.18$9.00——
Gemini Flash Lite Latestgemini-flash-lite-latest$0.72$0.072$6.00——
Gemini PRO Latestgemini-pro-latest$4.80$0.48$28.80——
Gemma 3 27Bgemma-3-27b-it$1.20$0.80$1.20——
Gemma 3n E2Bgemma-3n-e2b-it$0.12$0.00$0.08——
Gemma 3n E4Bgemma-3n-e4b-it$0.20$0.00$0.16——
Gemma 4 12Bgemma-4-12b-it$0.40$0.20$1.20——
Gemma 4 26B-A4Bgemma-4-26b-a4b-it$0.56001$0.30546$1.60002——
Gemma 4 31Bgemma-4-31b-it$3.000008$2.454552$4.000029——

Google's rows are the widest spread on the page: the cached fraction of the input rate differs by model generation, and a handful of smaller Gemma ids on the catalog price a cached read at nothing. gemma-3n-e2b-it is one of them: $0.00 per million cached tokens against $0.12 fresh.

DeepSeek

ModelidInput / 1MCached input / 1MOutput / 1MList inputList cached input
Deepseek Flashdeepseek-flash$0.36$0.0072$1.44——
DeepSeek R1deepseek-r1$2.000035$1.0811$8.720244——
DeepSeek V3deepseek-v3$1.000017$0.521748$4.000128——
DeepSeek V3.1deepseek-v3.1$1.08$0.66$4.000064——
DeepSeek V3.1 Terminusdeepseek-v3.1-terminus$1.080011$0.516527$4.000064——
DeepSeek V3.2deepseek-v3.2$1.08$0.240002$1.680063——
DeepSeek V3.2 Expdeepseek-v3.2-exp$1.080025$0.00$1.64004——
DeepSeek V4 Flash 0423deepseek-v4-flash$0.30$0.006$1.20$0.30$0.006
DeepSeek V4 Flash 0731deepseek-v4-flash-0731$0.08148$0.003334$0.1164$0.14$0.0028
DeepSeek V4 Flash Vision Expdeepseek-v4-flash-vision-exp$0.21$0.0042$0.84$0.30$0.006
DeepSeek V4 Pro 0423deepseek-v4-pro$0.792$0.0264$2.376$1.32$0.044
DeepSeek V4 Pro 0813deepseek-v4-pro-0813$0.792$0.0625$1.188$1.32$0.044
DeepSeek V4.1 Flashdeepseek-v4.1-flash$0.0564$0.00625$0.1692$0.30$0.006
DeepSeek V4.1 Flash 1017deepseek-v4.1-flash-1017$0.2425$0.00582$1.164$0.30$0.006

DeepSeek's developer pricing has long had a deep cache discount, and the catalog's list column shows it. Compare deepseek-v4-pro-0813: ours $0.0625 cached, the developer's list cached read $0.044. This is one of the rows where the cached column should be read on its own rather than assumed from the input discount.

Qwen, Z.ai, Moonshot AI, xAI, MiniMax, Xiaomi

ModelidInput / 1MCached input / 1MOutput / 1MList inputList cached input
Qwen Flashqwen-flash$0.16$0.0704$1.28——
Qwen2.5 7B Instructqwen2.5-7b-instruct$0.20$0.20$0.20——
Qwen3.5 122B-A10Bqwen3.5-122b-a10b$1.48$0.00$11.76——
Qwen3.5 27Bqwen3.5-27b$1.12$0.00$8.80——
Qwen3.5 35B-A3Bqwen3.5-35b-a3b$0.72$0.44$1.84——
Qwen3.5 Flashqwen3.5-flash$0.36$0.08$1.48——
Qwen3.6 35B-A3Bqwen3.6-35b-a3b$1.08$0.48$6.28——
Qwen3.7 Maxqwen3.7-max$0.64706$0.0885$1.941176$1.475$0.295
Qwen3.7 Plusqwen3.7-plus$0.40$0.08$1.60$0.32$0.064
Qwen3.8 27Bqwen3.8-27b$0.48$0.10$3.20——
Qwen3.8 27B Swiftqwen3.8-27b-swift$1.00$0.52$6.00——
Qwen3.8 Maxqwen3.8-max$0.80$0.60$2.40$2.00—
Qwen3.8 Max (0902)qwen3.8-max-0902$2.054795$0.075$6.164384$2.00$0.25
Qwen4 MAXqwen4-max$1.388236$0.048$4.164704——
Qwen4 MAX Previewqwen4-max-preview$3.235296$3.235296$9.705884——
ModelidInput / 1MCached input / 1MOutput / 1MList inputList cached input
GLM 4.5glm-4.5$1.92$0.352$7.04——
GLM 5glm-5$0.382352$0.076472$1.223528——
GLM 5.1glm-5.1$0.382352$0.325$1.20168$0.966$0.1794
GLM 5.2glm-5.2$0.24$0.068$0.60$0.60$0.15
GLM 5.3glm-5.3$0.317772$0.06596$0.998712$1.092$0.2028
GLM 5.3 Flashglm-5.3-flash$0.0873$0.010864$0.1455$0.15$0.03
GLM 5.3 FlashXglm-5.3-flashx$0.047887$0.045$0.15962$0.075—
ModelidInput / 1MCached input / 1MOutput / 1MList inputList cached input
Kimi K2.6kimi-k2.6$0.95$0.16$4.00$0.95$0.16
Kimi K2.7kimi-k2.7$0.475$0.0475$2.00$0.95$0.095
Kimi K2.7 Codekimi-k2.7-code$0.42598$0.085196$1.7936$0.95$0.19
Kimi K2.7 Code Highspeedkimi-k2.7-code-highspeed$6.08$1.216$25.60——
Kimi K2.8kimi-k2.8$0.529412$0.488$2.571764——
Kimi K3kimi-k3$0.90$0.12$4.50$3.00$0.30
Kimi K3.1kimi-k3-1$0.723528$0.072352$3.617648——
Kimi K3.1 Prokimi-k3.1-pro$0.97$0.097$4.85$2.00$0.20
ModelidInput / 1MCached input / 1MOutput / 1MList inputList cached input
Grok 4.3grok-4.3$1.875$0.30$3.75$1.25$0.20
Grok 4.5grok-4.5$0.60$0.09$1.80$2.00$0.30
Grok 4.6grok-4.6$0.60$0.15$1.80$2.00$0.50
Grok 4.7grok-4.7$0.60$0.15$1.80$2.00$0.50
Grok 4.7 Build Fastgrok-4.7-build-fast$2.00$0.20$6.00$4.00$0.40
Grok 4.7 Heavygrok-4.7-heavy$0.72$0.18$2.16——
ModelidInput / 1MCached input / 1MOutput / 1MList inputList cached input
MiniMax M2.1minimax-m2.1$0.45$0.045$1.80$0.30$0.03
MiniMax M2.5minimax-m2.5$0.405$0.0405$1.62$0.30$0.03
MiniMax M2.7minimax-m2.7$0.315$0.063$1.26$0.30$0.06
MiniMax M3minimax-m3$0.09$0.018$0.36$0.30$0.06
Minimax M3.1 Flashminimax-m3.1-flash$0.105$0.0105$0.42$0.15$0.015
ModelidInput / 1MCached input / 1MOutput / 1MList inputList cached input
MiMo V2.6 Flashmimo-v2.6-flash$0.084$0.0025$0.12$0.14$0.0028
MiMo V2.6 Promimo-v2.6-pro$0.261$0.00375$0.40$0.435$0.0036
MiMo-V2.5mimo-v2.5$0.175$0.011802$0.35$0.14$0.0028
MiMo-V2.5-Promimo-v2.5-pro$0.261$0.00216$0.522$0.435$0.0036

These developers publish a cached rate for some or all of their models, so the list column fills in where the catalog has it. kimi-k3 is a useful anchor for a long-context agent: $0.12 cached against $0.90 fresh, over a 1M-token window.

Meta, NVIDIA, Tencent, ByteDance, Mistral and the rest

ModelidInput / 1MCached input / 1MOutput / 1MList inputList cached input
Llama 3.2 3B Instructllama-3.2-3b-instruct$0.08$0.00$0.20——
Llama 3.3 70B Instructllama-3.3-70b-instruct$0.40$0.20$1.28——
Muse Glimmer 30Bmuse-glimmer-30b$1.50003$0.200004$1.50——
Muse Spark Openmuse-spark-open$4.375$0.525$14.875——
ModelidInput / 1MCached input / 1MOutput / 1MList inputList cached input
Nemotron 3 Ultra 550Bnemotron-3-ultra-550b-a55b$1.50$0.30$1.50——
Nemotron 3.5 Content Safetynemotron-3.5-content-safety$1.50$0.75$1.50——
Nemotron 3.5 Lightning 30B A3Bnemotron-3.5-lightning-30b-a3b$1.50$1.50$1.50——
Nemotron 3.5 Super VLnemotron-3.5-super-vl$0.225$0.03$0.75$0.15$0.02
ModelidInput / 1MCached input / 1MOutput / 1MList inputList cached input
Hy3hy3$0.10625$0.02625$0.44$0.139$0.035
Hy4hy4$1.155$0.05825$3.465——
HY4 Flashhy4-flash$0.111764$0.089412$0.44706——
Hy4 previewhy4-preview$1.251$0.063$3.7515$0.834$0.042
ModelidInput / 1MCached input / 1MOutput / 1MList inputList cached input
Doubao Seed 2.0 Code Previewdoubao-seed-2-0-code-preview-260215$1.52$0.304$7.60——
Doubao Seed 2.0 Minidoubao-seed-2.0-mini$0.096$0.096$0.896——
Doubao Seed Characterdoubao-seed-character$0.525$0.0875$1.29501——
ModelidInput / 1MCached input / 1MOutput / 1MList inputList cached input
Devstral 2 2512devstral-2512$0.60$0.00$2.40——
Ministral 14B 2512ministral-14b-2512$0.20$0.02$0.20$0.20$0.02

Open-weight models hosted behind the catalog carry a cached rate set by the route, not by the developer, so most list cells here are dashes. Meta's llama-3.3-70b-instruct is a typical row: $0.20 cached against $0.40 fresh, 1/2 of input, with no developer list figure to compare against.

A worked example: one agent step, fifty times

Take an agent with a 6,000-token system prompt and tool block, a transcript averaging 14,000 tokens, and 400 output tokens per step, for 50 steps: roughly 20,000 input tokens per step, almost all a repeat after the first. With the cache doing its job, the run is one step of 20,000 fresh tokens and 49 steps where about 18,000 tokens read from cache and about 2,000 are fresh.

ModelAll input billed fresh (1,000,000 in, 20,000 out)With cached reads (118,000 fresh, 882,000 cached, 20,000 out)
claude-sonnet-5-5$1.22$0.2617
gpt-6.1-sol$0.6402$0.1782
gemini-3.1-pro-preview$1.34$0.3914
deepseek-v4-pro-0813$0.8158$0.1723
kimi-k3$0.99$0.302

The second column is the one to budget against. The token counts above are an example; for your own prompt sizes the cost calculator takes fresh, cached and output counts and prices them on any id.

Seeing the cached count on your own requests

Nothing changes in the request. Send the same prefix twice with the OpenAI SDK and read the body's usage on the second response; the cached token count appears there as usage.prompt_tokens_details.cached_tokens, and the body's usage.cost is the charge in dollars for that call.

python
from openai import OpenAI

client = OpenAI(base_url="https://api.uplinkswitch.com/v1", api_key="sk-uplink-live-...")

system = open("system_prompt.txt").read()  # a long, stable prefix

for question in ["First question.", "Second question."]:
    r = client.chat.completions.create(
        model="claude-sonnet-5-5",
        messages=[{"role": "system", "content": system},
                  {"role": "user", "content": question}],
    )
    print(r.usage)

Anthropic-format requests may still set cache_control breakpoints exactly as the Anthropic SDK does; where a request sets none, the shared-prefix rule above may add one for a prompt many accounts send. Each billed request's token split, fresh, cached and output, is also on the request id in the response headers, looked up afterwards in the usage log.

Where the cached rate does not help

  • Prompts that change at the top. A timestamp or a user name at the start of the system prompt defeats the cache from the first token. Put stable content first, variable content last.
  • Gaps longer than the cache window. A cache that is not touched for the developer's time-to-live expires, and the next step is all fresh input. For Claude Code the default window is five minutes.

For the choice of model itself, which is a separate question from how it caches, see the provider comparison and the full price index.

Questions and answers

Tokens the model reads from its prompt cache are billed at the model's cached-input rate instead of the full input rate. In an agent loop or a long chat, most of each step's input is a repeat of the previous step, so the cached rate applies to most of the tokens and the fresh rate only to what is new.

Any chat id on /v1/catalog whose pricing.cache_read is not null, 138 ids from 19 developers on the reading date, including Anthropic, OpenAI, Google, DeepSeek, Qwen, Z.ai, Moonshot AI and xAI models. A model with no cached rate bills repeated tokens at its input rate.

Yes. When the request repeats a prefix the model's cache recognises, the cached tokens are reported in the response body's usage and billed at the cached rate with no header or setting. Anthropic-format requests can also set cache_control breakpoints as usual, and a widely shared system prompt may be cached for you.
Join on Telegram
Help