upvote
> I find it really weird that Anthropic uses only a five minute cache on the API.

You can set 5 minute or 1 hour with API requests. It's the user's choice, not something they force on you. You get the cheapest option (5 minutes) if you don't specify the time.

https://platform.claude.com/docs/en/build-with-claude/prompt...

reply
> You get the cheapest option (5 minutes) if you don't specify the time.

Okay, but isn't it weird that the default is a giant footgun?

reply
The API is used for a lot more than agentic coding. I would not be surprised if 5 minute was preferred on average across all types of usage.

If Anthropic set it to the more expensive option by default, we'd be reading articles about people complaining how evil they were for defaulting to the more expensive option.

reply
yeah, not sure why you're downvoted, but the API is clearly for using Claude in your products that you serve to your users. It's also why it's priced higher since it's assumed to be close to where you make money. It's the same with cloud computing, where clouds could charge 1000x the involved compute for some per-access DB, but you wouldn't run a nuclear reactor simulation on Firebase.
reply
> you wouldn't run a nuclear reactor simulation on Firebase.

I mean... you say I wouldn't, but im all up for trying.

reply
It's what their business model tells them to do: maximize profit per token.

Making you spend tokens without noticing it is a free meal to them.

There are various other possibilities to clandestinely extract tokens from you. People just haven't thought about it yet.

reply
> footgun

What a load-bearing observation. Good instinct!

reply
Deepseek seemingly stores the cache for literally days, so its a really odd choice to have it so short.
reply
Latest deepseek kv cache is tiny compared to other models thanks to its architecture, so storing it requires much less space
reply
It's also less vram and hence bandwidth hungry so much friendlier to hold for longer and swapping in and out to storage. If kv cache is large enough and slow enough, then prefill could turn out to be faster than cache restore... Although it depends on how the cluster and infra is setup, either way, Anthropic is subsidizing the subscriptions if all benefits and limits and etc. are included by at least 2 orders of magnitude aka ~100x compared to API which is rather insane..

It's surprising, and also not really surprising that they then charge enterprises and companies with over 100/150 employees full API prices with some bulk discounts. I have seen a bill for a small 100+ person company for their tokens and it's insane when you compare it to how many tokens I burn in a week.

I waste more tokens on chasing useless stuff over a couple weeks, then their entire company spends in an entire month tbh that might include resets but this is madness, I am not sure if the music will stop but if it does I don't feel like I nor my current employer will be paying the full price for the tokens.

reply
If the KV cache is in RAM (whether system or GPU) it's because RAM is at a huge $$$ premium right now.
reply
it takes claude 15-30 min to add a disk layer cache after system memory FYI... have this going on my 8x v100 server for all openweight models I'm running. currently preferring glm-5.3-flash. prefill is around 3k tok/s, decode is about 80 tok/s. have room for 3x 262k sessions with room to spare. and memory for another million. then a 6.4TB NVMe for quite a bit more.

deepseek-v4.1-flash per token kv is IIRC 600-700 bytes. this is much, much less than other models. and 500x less than deepseek v3.

reply
Since the API is bare, the use cases will be broader than just agent sessions -- automated scripting and customer-served chatbotting are two obvious supplemental use-cases. Those are likely to have very different cache dynamics compared to a Claude Code session, so 5m expiry might be the hit-rate-optimizing point.
reply
Interesting that you'd conclude Anthropic is looking out for the economic interests of their customers over their own.
reply
They are for subscription plans, where they pay by token and the user pays a fixed cost.

Subscription plans best align the user’s interest with the company’s interest. Presumably, the user’s goal is not token burn but some underlying task. The cheaper the company can accomplish that task, the more money the company keeps. If the user has to constantly retry because the model is bad, that’s more cost to the provider. If the model is big and slow and wastes tokens, that’s more cost to the provider. The more tasks that can be accomplished in the fixed quota, the better value perception by the user.

reply
It seems like what would best align the interests of the customer and company would be if they’d charge by completed task instead of… tokens/time. (Why are these internal compute metrics being exposed to the customers?).
reply
For the same reason cars are sold with fuel gauges and people ask how many liters of gas they need to go 100 km.

It's a useful metric, especially for those who know what it means.

reply
That's not true.

It's rather an equilibrium based on what they can get away with.

It's safe to say, that equilibrium is a safe distance from what's in the users interest.

reply
The amount Anthropic can charge per token is determined by how much value users get from those tokens. If users are getting more value, Anthropic can charge more and take a bigger profit.

Which means it is in Anthropic's interest to set cache lifetimes at a number that will let users get the most value from their tokens, relative to whatever it costs Anthropic to maintain the cache.

reply
Does the average user even know what value they are getting from Anthropic? As though there is some kind of metric?

I don't think value is some immediately obvious and observable phenomenon. The average person doesn't even know what prompt caching is. It's completely feasible for them to set defaults that overcharge customers without them knowing.

reply
> The amount Anthropic can charge per token is determined by how much value users get from those tokens. If users are getting more value, Anthropic can charge more and take a bigger profit.

I feel like statements like that, looked at most charitably, benefit from the confusion between some technical definition of "value" and a a more colloquial definition.

The easiest way to interpret that is: "what's good for you is good for Anthropic, so trust Anthropic," but that's almost never what's going on when you're dealing with a sophisticated business. In all market interactions, "value" is relative and everything is almost always obscured by intense information asymmetries. The business wants to maximize profit for itself, which often entails minimizing the value provided to customers (because more "value" usually costs something) and maximizing the price they pay for it.

reply
The interest of any provider of proprietary inference is to make the most money per token.

Users don't have such a precise metric that would allow them to discriminate value per token reliably. Or have you never seen those comparison sites, with dozens of different scales?

If they can make you reload your cache statistically more often without you noticing (increasing their profits), their business model mandates them doing so.

reply
From their side as well it's preferable for uses to hit the cache. Definitely cheaper for them too
reply
I regularly favor the economic interests of my customers over my own.

I’m also not running a multi billion or trillion dollar company, and probably never will if I keep doing it.

I’m okay with that.

reply
There are many such open questions about "clandestine token-maxing" that get glossed over.

For any provider of proprietary inference, the targeted optimization of how (long) their models work according to their own goals is a central part of their business.

People believe those optimizations being about giving them the "best" inference. They fail to notice whose "best".

reply
It's a competitive market, is it not? If they don't, they'll lose market share to Google or OpenAI
reply
They probably do around the edges. But I bet they'd lose more if they raised the list price per token and included a longer cache time by default even if it the average bill works out the same.
reply
[dead]
reply
[dead]
reply