At the quarterly review, the discussion reaches the AI roadmap, and someone asks a simple question: which of these features make money? There is plenty of evidence in the room. The quality dashboards show every feature above its bar, the latency graphs sit comfortably inside their targets, and the adoption curves are moving the right way. But no one can put a margin next to any feature's name, because finance has one invoice for the whole product and engineering has token counts that have never been linked to revenue. So people decide based on what they believe. The feature that loses money on every use happens to be one people love, so it survives another quarter, and its cost is still buried in the single invoice for the whole product.
This part opened in Why good AI features die of bad unit economics with a feature that fails because the cost of serving each user climbs while the revenue from each user stays flat, and each chapter since has covered one of the decisions that prevent that, from what a task costs to what the user pays. Each of those decisions is recorded wherever you made it, in a dashboard, a routing configuration or a pricing memo, and in this chapter you move them onto one signed page.
One page per feature that puts its margin in writing
With the Inference Budget, one person signs for a feature's economics: its cost target, its latency budget, the quality bar each model must pass before it serves traffic, and alarms that page a specific person by name.
The budget comes as a fillable PDF, and you write one for each feature rather than one for the whole product, because you decide margin one feature at a time, and a single invoice for the whole product never shows which feature loses money. Each of its first six sections turns one chapter of this part into fields you can fill in within an afternoon. After them come the alarms, the sign-off (the PDF's name for the signature section) and a pressure test against three scenarios. Once you fill it in, you have a written answer to the review's question, and the rest of this chapter goes through it section by section.
The diagram, titled BUDGET ANATOMY, shows the six sections moving onto the page, the three alarms (cost, escalation and hit rate) hung on its edge, and the signature at the bottom.
Name the unit and set the latency budget
The unit and its target. The first section holds the receipt (the itemized cost of one task) from The bill of materials: cost the task, not the call: the task and its completion marker (the email sent, the ticket resolved), the per-task cost today, taken from real logs rather than from a per-call figure that makes the cost look lower, and the target that cost must reach, with a date next to it, because without a date your team never schedules the work of reaching it. Set the target from what the task earns, not from what you would like to reach.
The latency budget. The second section holds the two targets from Latency: design how fast it feels: a first-token target and a completion target that fit the feature class (the PDF's fields are "First token by" and "Complete by"), whether the feature is a chat reply, a requested report or a bulk job. Once they are in the budget, every later cost cut has to stay within them, because a cascade or a cache that makes the feature miss its completion target saves money by making the feature worse.
Record the routing plan and the caching plan
The routing plan. This section comes from Routing and cascades: the cheapest model that passes your bar. It holds a table of your traffic slices (groups of requests of one kind) and the model serving each one, the escalation gate (the check that sends a request on to the stronger model), and, for each model, the eval bar (the quality bar from your evals) it passed before it was allowed to serve its slice. If a slice's model has no eval result next to it, the model is serving that slice because somebody thought it looked fine, so leave the eval bar field empty until the evals have run.
The caching plan. This section comes from Caching: never pay for the same thinking twice. It lists the caches this workload can use, from the prompt prefix (the opening part of the prompt that every request shares) to the answers that repeat across users. For each cache you tick its box (prompt, response or semantic) and note a lifetime short enough that what it stores stays accurate. You also decide what cache hit rate you expect, and you set an alarm on that rate in the alarms section.
Draw the realtime split and take the pricing stance
The realtime split. This section comes from Batch and background: choose the realtime line. It sorts every job the feature runs into realtime work a user watches, background work a user expects soon, and batch work that only has to be done by a deadline and runs on the discounted batch tier. The sort looks like a scheduling decision but is really a spending decision, so every job you put on the realtime side of the line gets one sentence saying who is watching while it runs.
The pricing stance. This section comes from Pricing: charge in a currency your costs track. It records the currency the user is charged in (seat, usage, outcome or a hybrid) and how closely it tracks the tokens you spend, the allowance included in each plan, and the margin at the median user and at the heavy user. The per-token rates behind the arithmetic stay in the dated Price Sheet, not on the page, so the page does not go out of date every time a provider changes its rates.
Set up the alarms
Without alarms, a budget is only a forecast, and you find out that its numbers are wrong only when the invoice arrives. So give three numbers from the earlier sections a threshold and the name of the person who gets paged.
- Per-task cost crossing its threshold means the receipt has changed: the context grew, retries climbed, or your traffic changed.
- Escalation rate (the share of requests sent on to the stronger model) climbing means you are moving toward paying flagship prices (the rate for the provider's top model) for everything.
- Cache hit rate (the share of requests served from a cache) falling means your workload changed and you are no longer getting a saving you counted on.
Set up each threshold like the drift alarms in Production signals: evals after the ship: a check that runs on live traffic and interrupts a person when the number crosses the threshold, not a chart someone might open. Write the name of the person who gets paged in the alarm's Owner column, because when an alarm notifies "the team", no one in particular is responsible for responding.
Sign it, review it, and pressure-test it before shipping
In the sign-off section, the person accountable for the feature's economics (the PDF's "Accountable owner"), usually you, signs with a name and a date, because until someone's name is on the page, its numbers have no owner. Next to the signature, write the two review triggers: the provider changes its prices, or the workload changes (an alarm fires or the traffic mix shifts). When either one happens, you reopen the page and write down any amendments, so the page stays the record.
Before anyone signs, test the page on paper against three possible futures (the PDF's "Pressure test" section).
- Adoption triples. Does the margin at the median user hold at three times the volume, does the extra work that can wait go to the batch tier, and which alarm fires first?
- The provider cuts prices on the order of half. At half the price per token, the routing arithmetic comes out differently, and the pricing stance may change too. Does the page say who reruns the numbers, and whether you keep the saving as margin or pass it on as a lower price?
- One customer becomes a heavy user overnight. Does the allowance cap the loss, and does the per-task cost alarm page someone before the invoice arrives?
If you can answer all three from the page without holding a meeting, it is ready to sign; wherever you cannot, the field behind that question is not really filled in.
You started this part with a feature that works and a single invoice for the whole product. You finish with a feature whose economics you can defend: a unit with a cost target, a wait you designed, every slice of traffic served by a model that passed its evals, nothing paid for twice, nothing run in realtime that did not need to be, a price that tracks the cost, and alarms that page a specific person, all on one signed page. Bring that page to the next quarterly review. The earlier parts of The Frontier apply the same discipline to what your product knows, how you put agents to work, and what high-stakes industries demand.
Try it now
This drill is the capstone of the part, so set aside an afternoon and bring one real feature.
Get the budget. Download the fillable Inference Budget and gather your notes from this part's earlier drills: the per-task receipt, the latency targets, the escalation rate, the caches, the realtime split, and the pricing arithmetic. Those notes already hold drafts of most of the fields.
Fill it end to end. Work in the order this chapter followed: unit and target, latency budget, routing plan, caching plan, realtime split, pricing stance, then the alarms. Where a field has no answer, make the decision now rather than typing a placeholder. Scale it down: where the logging does not exist yet, enter an order-of-magnitude estimate, mark it as an estimate, and make logging the real number the first request you give engineering.
Run the three pressure scenarios. On paper, triple the adoption, cut the provider's prices by about half, and imagine one customer using the feature heavily all month. Note every field that had no answer or pointed at a person who would not actually be paged.
Amend what failed and sign it. Fix the fields the scenarios showed you could not answer, put a name and the review triggers in the sign-off section, and bring the page to the next roadmap review.
Chapter Summary
- The Inference Budget is one signed page per feature that records this part's decisions: the unit and its cost target, the latency budget, the routing plan, the caching plan, the realtime split, and the pricing stance, plus alarms, a sign-off and a pressure test.
- The unit section names the task, its per-task cost today from real logs, and the target that cost must reach by a date.
- The latency budget records the first-token and completion targets, and every later cost cut has to stay within them.
- The routing plan records which traffic gets which model, the escalation gate, and the eval bar each model passed before it was allowed to serve its slice of traffic.
- The caching plan lists the caches that fit the workload, each with a lifetime, plus the cache hit rate you expect.
- The realtime split sorts every job into realtime, background or batch, and batch jobs get the batch tier's discount.
- The pricing stance records the currency, the included allowance, and the margin at the median user and the heavy user.
- Per-task cost, escalation rate and cache hit rate each get a threshold and the name of the person paged when it is crossed, set up like the drift alarms on production traffic.
- Before the feature ships, you test the budget against tripled adoption, halved prices and an overnight heavy user; then the person accountable for the feature's economics signs it, and reopens it when the provider changes its prices or the workload changes.
- This chapter ends The Unit Economics of AI. The earlier parts of The Frontier apply the same signed-page discipline to what your product knows, to fleets of agents and to high-stakes industries.
Sources
- Chen, L., Zaharia, M., & Zou, J. (2023). FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performance. arXiv.
- Huyen, C. (2025). AI Engineering: Building Applications with Foundation Models. O'Reilly Media.
- Anthropic, OpenAI, and Google pricing, batch, and prompt caching documentation (last verified July 2026).
- The dated Price Sheet for current per-token rates and tier ratios.