Your AI Coding Bill Has a Hidden Timer. It’s Called Prompt Caching.
TL;DR: Uber got through its entire 2026 AI budget in the first few months of the year, then spent the rest of it working out why. Its engineers found that the biggest costs weren’t the clever work — they were idle time, oversized context, and unused tools. The mechanism behind the first one is prompt caching, and understanding it will change how you work even though you can’t change the settings Uber changed.
What prompt caching is, and why idle time costs money
When you chat with an AI coding tool, every single turn re-sends the whole conversation. Uber’s engineering post puts it plainly: “Every turn re-sends the full conversation history, project context, and tool results.” Your twentieth message isn’t billed as one message — it carries everything before it.
Prompt caching is the discount that makes this bearable. The model provider stores the unchanged front portion of your conversation, and re-reading it costs “just 0.1x the standard input token rate” — a tenth of the price.
Here’s the catch, and it’s the bit nobody mentions. That cache expires. Uber found the default lifetime is five minutes. Writing a cache entry that lasts an hour instead costs “2x” the normal rate, against “1.25x” for the five-minute version.
So the sequence that quietly costs you money is this: you work for twenty minutes, build up a long conversation, go and make a cup of tea, come back — and the cache has gone. Your next message pays full price to reload everything. Uber’s own words: “Because engineers often leave interactive sessions idle for more than 5 minutes, we transitioned from the default 5-minute TTL to a 1-hour window. These frequent idle gaps previously invalidated the prefix cache.”
What Uber actually found
The scale first. Between February and August 2026, Uber’s weekly agentic requests grew 9.4x across all its AI tools. According to a report in The Information cited by VentureBeat, the company used up its 2026 AI budget in the first few months of the year.
What it changed, per its engineering post:
- Prompt caching lifetime raised from five minutes to an hour for main sessions, kept at five minutes for short-lived sub-tasks.
- Automatic compaction at 400,000 tokens — summarising earlier conversation — “even for 1M context window models”.
- Reasoning effort defaulted to medium, not high. Medisetty said newer models “perform much better at medium effort level” and show “some degradation at high”.
- Tool definitions no longer preloaded. With over 100 tools installed, their descriptions added “approximately 50K-70K tokens of schema overhead to the initial prompt, which was subsequently re-sent on every context turn.”
The result: cost per 1,000 requests down “almost 34%” from its peak, cost per session down 52% from its June peak, with total spend roughly flat since April while usage kept climbing.
Two honest caveats. Uber says plainly that “specific cost reductions we measure are unique to our environment and your mileage may vary” — and it does not break out how much any single change saved. The underlying talk was given on 28 October; VentureBeat published its write-up on 19 November.
The part you can’t copy — and the part you can
Let’s be straight about this, because a lot of coverage won’t be.
You cannot change what Uber changed. Every one of those four settings is an organisation-level default, pushed to engineers through an internal wrapper and A/B tested across staff. As VentureBeat puts it, the engineer “didn’t pick any of those settings; Uber picked them.” The tool change depends on Uber running its own gateway. Nothing in either source says an individual on a paid plan can set a cache lifetime or a compaction threshold, so this article won’t tell you to go and do it.
What transfers is the understanding, and five behaviours that follow from it:
- Start a new session for a new task. A long conversation re-sends itself every turn. Carrying yesterday’s debugging into today’s feature is a cost you pay repeatedly.
- Don’t leave a session idle and come back. The default cache window is five minutes. If you’re stopping for longer, you’ll pay full price to resume — so finish the thought, or start fresh afterwards.
- Remove tools and integrations you don’t use. Tool descriptions load into the conversation before you type a word and get re-sent every turn. Uber measured one connector with 49 tools at around 22,000 tokens of pure overhead.
- Use a cheaper model for simple work. Uber’s named anti-pattern is “Executing simple multi-turn sessions on Opus that Sonnet could easily fulfill.” Changing the model cut the cost of one routine job by 90%.
- Don’t let big outputs sit in the conversation. Uber flags “Large MCP payloads (for example, 40KB responses) persisting in context” — once something huge is in there, you re-send it every turn.
Why this matters if you don’t write code
If you build with Lovable, Replit, Bubble or anything that bills in credits, you have almost certainly had the experience of watching a balance drain faster than the work seemed to justify. This is a large part of why. You weren’t being charged for the clever bit; you were being charged, repeatedly, for carrying everything you’d already said. Prompt caching is what normally keeps that affordable — and a cache that has quietly lapsed is what makes a bill jump for no visible reason.
That reframes the advice we gave when we looked at which AI tools let you set a hard spending cap and when Bubble changed its credits. A cap stops the bleeding. Shorter sessions, fewer connected tools and a cheaper model for routine work stop the wound.
And it explains a thing many people notice without understanding: the same request can cost wildly different amounts depending on when, and in what session, you make it.
Who should care
- Building a revenue app: most of all. A habit change here compounds every working day.
- An internal tool for your business: worth one read, then get on with it.
- A website or landing page: largely irrelevant — short sessions anyway.
- Learning: genuinely useful to know early, before you build expensive habits.
- No idea yet: the one line worth keeping is that long conversations cost more than short ones.
Not sure which you are? The 60-second Tool Finder quiz sorts it in a minute.
Our take
The most valuable thing here isn’t a setting, it’s a mental model: you are billed for the whole conversation, every time, unless prompt caching is holding it — and that cache has a timer. Once that lands, a lot of unexplained AI bills stop being mysterious.
We’d also note what Uber’s lead engineer said about interactive chat generally: it is “the least efficient way to run an agent”. That is an uncomfortable thing to read if chatting is how you build. It doesn’t mean stop — it means the long, meandering session is the expensive one, and breaking work into shorter, better-defined pieces is cheaper as well as usually better.
Finally, a word about those headline numbers. A 34% and 52% reduction sounds like something you could replicate. Uber says otherwise, and we’d take them at their word: those figures come from a company running its own gateway, its own wrapper and its own dashboards. Treat them as evidence the problem is real, not as a target.
Some links on this page are affiliate links. If you buy through them we may earn a commission at no extra cost to you.
FAQ
What is prompt caching in simple terms?
It’s a discount for repetition. Because every turn of a chat re-sends the whole conversation, providers store the unchanged earlier part and charge about a tenth of the normal rate to re-read it. If the stored copy expires, the next message pays full price again.
How long does prompt caching last?
Uber’s engineering post describes a default lifetime of five minutes, with a one-hour option that costs twice as much to write while reads stay at a tenth of normal. OpenAI is named as offering a 30-minute option. Uber moved its main sessions to the one-hour window.
Can I change these settings myself?
Nothing in Uber’s post or VentureBeat’s report says an individual can. The four changes were organisation-level defaults pushed to staff through an internal wrapper, with the tool change relying on Uber’s own gateway. What you can change is session length, connected tools and which model you pick.
