by Wowfunhappy · 1d ago · 0 comments
I of course don't know what it costs Anthropic to keep the cache warm—but since their subscription plans use one hour, Anthropic must have concluded a longer cache is more economical for most users. And there's a big difference between one hour and five minutes.
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...
Okay, but isn't it weird that the default is a giant footgun?
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.
Their API customers should know about changes affecting them well ahead of time. They should have a zero surprise policy around any change that influences cost (cache is one such thing, price difference between a cache hit/miss is 2x-5x input cost per request).
These vendors are interchangeable, the business models and sectors are largely the same, I doubt there’s a purely business reason behind that decision, likely a technical leadership decision
The more opinionated a vendor is within a category that’s merging, the worse the user experience
And about your second point, Anthropic is not exactly a friend. It’s dubious to be knocking open models the way they do, while simultaneously restricting free use for others. That’s not a normal thing to do
Why would anyone prefer something they don't notice unless it's more expensive?
The root comment mentions commands that take over five minutes to complete. How often is the agent doing that, versus something quicker? Usage tends to be, the agent does a ton of quick back and forth actions with directory listings and edits and file reads, and then after many quick rounds it eventually kicks off some slower compile/test/run stage which might exceed five minutes. If you use the 1h cache then that slower stage might be cheaper, but all of those quick rounds leading up to it are definitely more expensive. For 1h to work out in your favor, you need a substantial proportion of your work to wait between 5-60 minutes between rounds, including all those little back and forth rounds that happen while the agent is working and barely appear in the UI. This isn't very likely.
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.
What a load-bearing observation. Good instinct!
Why not 30 minutes and 1 hour?
Because 5 minutes is probably good only for uninterrupted agentic work, if I have to pause and read anything, it's expired.
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.
We save about $1,000 per week by implementing an Opus cache warmer that keeps the 5-minute cache alive for ~30 minutes instead (on the router level).
It's so strange to me that Anthropic does not do this on their end...
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.
Which is not true for many in the enterprise world. Anthropic has been much better (IMHO) at branding than OpenAI, and rather than talking about "agents" many of my coworkers talk about "Claude". I think most of us aren't aware of the cache lifetimes; we just use the model we're used to, and switch only if pressured/forced by our company AI staff to do something different.
Grocery stores are a great example of the power of branding --- some grocery stores are more expensive on the whole but people still shop there for other reasons: because it's conveniently located, because they have certain items in stock, because they have sales, because they just like the shopping environment.
If there was truly no relationship, why cache anything at all instead of making it expire immediately? Why not increase prices infinitely? Why release new Opus models at all, instead of referring to new versions of Sonnet as Opus?
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.
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.
All I'm saying is that Anthropic has an incentive to help you get more done with fewer (uncached) tokens. They are also incentivized to charge you more for those tokens once you've become more efficient, which is obviously not in your interest. But purposefully setting cache lifetimes to a value they knew would screw people over would be insane.
It would be equally stupid for Anthropic to, for example, make the Claude Code harness waste tokens needlessly, as some people seem to believe they do. That doesn't make any sense, because people are paying for how much use they can get out of Claude.
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.
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.
Alice asks Claude to build a brand new operating system with an original C compiler and web browser.
Are Alice and Bob both billed for one completed task?
No, obviously not—you'd have to somehow bill by the amount of effort each task takes. Now you need a way to measure "effort".
Okay, now we need a way to measure effort. Hmm, how about, measuring by the amount of tokens the task consumes? Oh, wait... :)
It's a useful metric, especially for those who know what it means.
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.
Modern business seems to be forgetting this lesson, and Anthropic may not be "smart" by this definition, but it would be completely rational for them to look for ways to cut their customers' costs.
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".
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.