310 comments

[ 1.4 ms ] story [ 36.5 ms ] thread
Wait, Google Cloud finally added hard caps on spending per service? I've been wanting that for so many years! They sure took their sweet time.

https://cloud.google.com/blog/topics/cost-management/new-ear...

What that's awesome? Yeah they definitely waited until the competitors did it first...
It was fucking on purpose, if we had a functioning government, this is one of things they would have nailed them on.
As awful a practice as it is, I'd _much_ rather have an internet where its reform is prompted by competition than by the cops.

  > reform is prompted by competition than by the cops
i think we all would prefer this, but then who prompts the competition?
But it isn’t and won’t be, so we need to do the next best thing
Yeah, should should should. They should compete on features, not how they screw their customers less.
The hard caps work on projects created in AI studio
surprise $10k bill is getting off easy
These shouldn't even exist without a negotiated contract.

I can subscribe to your service for a specific fee on a monthly basis ($20/month say), and take the risk of losing that month's fee if your service or I make mistakes, or I can choose to drop another $20 mid-month, or anything for convenience.

Saying that the computer will "control" the billing and can run haywire tells me that I don't want to be anywhere near your pile of bad incentives.

Monthly electricity bills are based on usage. The difference is the relative orders of magnitude you can be charged for these services you can go from 20$/month to 200k/month without warning.
There is also a hard physical limit on how much electricity you can use before you blow out the fuse box
> but there’s a limit to how surprising a bill can be

I think they explicitly said that.

In the UK there are prepaid electricity providers: there's a card reader at the power panel. When you run out of credit, power cuts off, it resumes when you pay again.
Why would your vendor want to make it harder for you to accidentally give them a million dollars?
Because I would go to the vendor who does.
But there's no such vendor… the joys of free market.
Lately it's been dawning on me that good things don't necessarily survive free market.

Maybe because good for me but not good for the majority, or just the big corps.

If it is good for the free market and is competitive, it will get bought by a competitor.
Because it’s unlikely they’ll actually be able to collect that million dollars from a lot of those customers. Rephrased: why would your vendor want to make it harder to accidentally give you a million dollars of services in exchange for debt of dubious quality?
Ideally because I'll pick a different vendor who protects me from such mistakes.
It should be illegal to not have them
Anytime someone says “there sight to be a law that…” there almost always shouldn’t be.
Agreed. Or at least, customers should only be liable for expenses they incur up to the hard caps they set.

If you don’t have a mechanism for enforcing hard caps, you don’t get to send customers a bill for unlimited amounts.

Probably should also have spend controls for gambling too but seems like we're a long ways off from good legislation there.
we should make it illegal to be unhappy too, that way we can solve depression!
Everyone in this thread should be vibe coding legislation with lean 4. We can at least have utopia for a couple months.
I wonder if BigCorp adding spending caps is due to them getting sick of customers solving it for themselves with virtual cards.
Virtual cards don't solve anything. They just send you an invoice instead.

It works for some non-B2Bs.

Good thing virtual cards let you put any street address and name.
Ubicloud does not have hard budget caps, which I only realized this morning after moving all my CI over to them over the past few months. Fortunately I didn't learn the hard way.
I'm surprised this isn't law. Should it be?
So if you use more electricity next month the CEO of the electric company should be put in jail?
Analogies are not the core of your cognition.
I understand this is snark, but if you think about it, this is already implemented in electrical infrastructure. If I use too much power, the circuit breaker trips to protect me and protect the electrical grid. OP is about a billing breaker, but the parallels should be obvious.

If the CEO of the electric company didn't mandate circuit breakers, he should go to jail.

The breaker in this analogy is equivalent to rate quota limits, it limits peak throughput.

You can rack up an outrageous monthly electricity bill without tripping a breaker.

The peak throughput does result in an overall monthly limit though. For a house with a 200A main breaker, that effectively limits your electric bill to $7,000/month, which is very reasonable compared to the tens of thousands of dollars in a single day that a lot of cloud billing disasters end up costing.
Utilities required for basic survival are expected to remain on for obvious reasons. Like not letting people die.
(comment deleted)
I wouldn't be surprised if some people here will genuinely argue that AI access is just as important. I've already seen Altman and the nVidia guy pontificate on providing AI as a public utility.
Why do people think new laws are needed to solve every last problem in the world?

Google implemented caps because their competitors offered them. Before that, customers could choose one of several competitors, rent the GPUs at a fixed rate, or buy the GPUs and install them on-premises.

At no point was any law needed to solve any of this.

Counterpoint: if you can automate API calls on the client side, why can't you automate billing caps? If you want a machine that can run 24-7 and make money for you while you sleep (which let's face it is the motivation for a lot of AI takeup), isn't the onus on you to install cicuit-breakers?
Because many cloud services have incredibly complex or opaque pricing structures that make it difficult to impossible to determine how much something is going to cost you ahead of time, especially if it's usage-based a la network egress (and the usage statistics don't update frequently enough to make such circuit breakers possible to implement client-side).
I would just not sign up for a service without price transparency, or pre-calculate my liability based on available information before pushing the (metaphorical) Deliver Now button.
Sometimes the invisible hand of the market needs to be paired with a good swift legislative kick in the ass to speed things up a little.
Making incredibly complex and opaque pricing structures is not necessary for the providers to charge for and make a profit on their service. And being technically difficult is a lazy excuse. Cloud platforms have to solve many, much more difficult challenges to offer their services at all, they just don’t want to invest the time in more customer friendly billing because they expect it will result in reduced revenues.

I know your post isn’t explicitly defending the platforms, but the arguments they use feel transparently flimsy.

They might not be able to predict your bill but how much time do they need to add up what you already spent to minimize your overage? And TBH how much time should be acceptable to exceed your cap before it's their fault for the lag in their software.
Stop making excuses for the cloud providers. They build these on purpose, for that purpose, working as intended.
Last time I checked it was impossible to get relevant info from API, for example for AWS.

Or if there was info that was after potentially horrible expensive operation.

That was blocking automated checking.

Yes and no. I suspect many of the hard limits were set arbitrarily, and we'll see a relaxation of limits as people get frustrated with the limited use they get out of them. And some services will genuinely need to be re written to support higher rps or risk losing customers
What do people think of apps switching to a lower tier of model if your $$ threshold was exceeded?
Cloudflare also doesn't have any hard budget caps.
If you own a resource that is desired and paid for by usage then that's your income and the open market determines the money thing (price)

What on earth is Simon whittering on about?

bro this is HN, the "open market" where willing customers can choose whether or not to buy a service is the root of all evil here.
It doesn’t matter who is offering the service, or even if it’s free: HN will criticize it.

Good.

A bunch of vendors provide this exact feature already, so I'm clearly not weird in wanting it.
About desire to have hard caps, to avoid runaway costs for example due to misconfiguration.
(comment deleted)
This is about budget caps (“I don’t want to spend more than $100, cut me off once I spend that much”) not price caps (“no one is allowed to charge more than this price per token”).
(comment deleted)
These already exist, it's the most standard contract imaginable.
the premise seems a bit faulty to me. why should we be giving next token predictors access to spend our money? like what great benefit do we get from this that we should allow them unfettered access, but with safeguards in the form of hard budget caps?
I don't think Simon means you should hand off the spending to agents/LLM (which would also make me uneasy) but that if you're probing one for hosting/SaaS providers they should default to recommending ones with budget caps
if the llms aren't spending, why do they need cost caps?
Because they cost money to run - Simon is discussing this in terms of the billing from services, not some hypothetical scenario with LLMs spending money on your behalf

If you were recommending VPS providers to someone new to making web apps, it would be malpractice to recommend one that can bill them thousands if they misconfigure things (like AWS previously did), and Simon's argument is that LLMs should likewise favor services with budget caps

So weird, cause it seems a lot of services are suddenly adding them. Huh, wonder what changed?
I'd support this provided we have the converse as well: if the customer doesn't pay their bill on time, the service gets shut down immediately. (Disclosure: I sell SaaS services to people who don't pay their bills on time).
It'd be nice if more than AI spend worked this way, autoscaling is almost a mixed blessing because unpredictable pricing can be worse than the cost savings...
I’m glad programming is finally coming to an end. It’s no good to live a life obsessing over something like this. Thank you god , for ending this miserable enterprise.
Having a monthly summary or estimate of how your spending is going would be really useful, too.

Even if we have a negotiated yearly contract for $X spend per year, maybe we’ll hit that spend in 6 months instead of 12. Having some kind of automated telemetry saying how we’re trending would be so useful.

I’ve gotten vague warnings from customer success people saying vaguely that, but without any warning of what’s truly happening. The more we abstract away from money (tokens, credits, etc), the more we need a way to translate right back to money, to see how close we’re getting to any limits over time.

I don’t want to find out in month 5 that the contract which was expected to cover a year is now going to run out in 14 days.

My org has a leaderboard for AI spending each month, and I have found it interesting how fast the distribution decays, just within the top 10 users. I often think “what did these people do with all those tokens?” It’s interesting to think the answer to that question is “maybe not a lot?”
I am far and away the biggest consumer of tokens but I’m building meaningful stuff requested by others at the org.

That said, the limits are accurate with Claude to a handful of cents over the last few months. I just don’t see it as a big deal.

Our Gemini API usage is also similarly accurate.

The LLM costs are way more accurate than the limits on our GCP env as a whole.

  > “what did these people do with all those tokens?”
asked claude to check big query (raises hand)
We always did, the clouds convinced us that overages were the norm. You can blame credit ratings as another vector for big business to screw everyone over. Everything should have been pay in advance with an alternate billing method for overages if you want it.
I had an api key set to read only that somehow ran up a $400 bill, I contacted openai about it and never heard back. Not quite the same thing, but still, I find this very annoying.