Control AI spend on worker-built apps¶
Put a hard cap and alerts on every AI tool and every app that calls a model, attribute spend to apps in the registry, and pre-approve small pilot budgets. Never run a consumption leaderboard. Usage-based pricing makes AI spend volatile, so review the numbers monthly and tie each budget to a named owner. As of October 2026.
Who this is for
This page is about AI cost control for internal apps. It's for finance partners, IT managers and platform leads who pay for AI tools and model calls that workers' apps now make. You get a list of where spend comes from, the controls to switch on, and a budget routine. About 6 minutes.
Where does AI spend come from?¶
Four sources behave differently, so control them differently.
| Source | How it's billed | What goes wrong | First control |
|---|---|---|---|
| Seats | Per user per month | Licences nobody uses | Review usage at renewal; remove idle seats |
| Usage in builder and coding tools | Credits or tokens, sometimes after an allowance | Complex tasks cost far more than simple ones; pricing changes | Per-tool cap and alerts |
| AI features in apps | Per call or token to a model provider | A popular app, or a loop, multiplies the bill | A per-app key with a spend limit |
| Agent loops | Many model calls per task | An agent retries without end or runs wide | Limits on steps, tokens and run time |
Is there evidence of runaway AI bills from worker-built apps?¶
Less than we'd like. As of October 2026 we found no documented public case of a worker-built app running up a large AI bill, so the evidence is indirect, and the rule of keeping a cap rests on it.
- A leading AI coding tool moved from request-based to usage-based pricing in June 2025 (post of 4 July 2025). The vendor's own post describes unexpected charges, refunds, and complex tasks that "cost an order of magnitude more" than simple ones.1
- Transaction data from one spend-management company's 85,000+ US customers shows the top 1% of firms that pay for AI spending about 600 times the median per employee. The median is about $15.70 a month (September 2026). The sample is its own customers, built from receipts and bills, not only cards.2
- OWASP's 2025 list of risks for LLM applications includes unbounded consumption (LLM10): an app that lets anyone, or any loop, trigger unlimited model calls can cause cost and availability harm.3
We expect usage-based spend to swing by more than 25% month to month in a pilot cohort without controls (A-027). Test it: compare each month's spend per tool with the month before.
What controls should you switch on?¶
Start with the cheap ones, in this order.
- A hard cap per tool, per key. Use the cap the platform or model provider offers: a budget limit in the builder's admin console, or a spend limit on the model key. The enforcement matrix shows the builder platform enforcing it and the provider backing it up. Check each tool at approval, because not every tool has one. A cloud billing budget usually alerts without stopping spend, so confirm the limit actually blocks calls, and test it.
- Alerts before the cap. Alert at a fraction of the budget (for example half and four-fifths) and send them to a person, the app owner or the finance partner, not to a shared inbox nobody reads.
- One key per app. Give each app that calls a model its own key or project, held in a server-side secret store (never in the browser). Then the bill names the app. Record the key's name and owner in the app registry so spend lines up with a record.
- Limits on agents and loops. Cap steps, tokens per run and run time for every agent and automation. Add rate limits where an app is open to many users. These also reduce the damage if a prompt injection tells an agent to keep going.3
- Model routing. Send simple tasks to cheaper models and keep large ones for tasks that need them. Provider organization controls can do this per project. A gateway can do it across providers; see the note below.
- Usage exports. Export usage monthly, per tool and per key, to a sheet. That is your first dashboard.
Don't: run uncapped agent loops
An agent that can keep calling a model, with no step or token limit, turns any bug into a bill. An agent with standing access to live systems is also an incident risk (AP4). Cap it, scope it, and test the cap.
Don't: publish a consumption leaderboard
Ranking staff by tokens or usage rewards waste and teaches people to game the metric. Practitioners report the same gaming of acceptance-rate metrics for AI code.4 Measure outcomes against a baseline instead (citizen developer ROI).
Depends on your circumstances (C8)
If you pay per token across many apps or several providers, a model-access layer (an AI gateway) can hold keys, apply caps and log usage in one place. We found no independent adoption data for gateways. Start with provider controls and add a gateway when you have several providers or can't attribute spend any other way. Hosting covers the decision.
What budget rhythm works?¶
- Pilot budgets are pre-approved and small. Each pilot or Sandbox-to-Team app gets a fixed amount agreed at intake, so a builder doesn't wait for approval to test an idea. The amount is yours to set, and you'll adjust it after the first month's numbers.
- Monthly review. One person (the platform lead or finance partner) compares spend per tool and per app with budget and flags outliers to the app owner.
- Quarterly re-forecast. Re-check prices and plan terms, because vendors change them. Fold in apps that grew.
- Spend triggers a review. An app whose spend rises sharply has gained users or a loop; re-answer its six tier questions and check its owner.
- Cut the unused. An app nobody uses still costs hosting and calls. Feed usage into retirement.
Download the budget template as a spreadsheet: ai-spend-budget-template.csv. Prompt to Prototype, Control AI spend on worker-built apps, https://prompt-to-prototype.com/operations/ai-spend/, as of October 2026. Licensed CC BY-SA 4.0. Using or adapting it inside your business isn't distribution under the licence.
Illustrative composite
An invented month for an ops-team app with an AI feature, using round numbers. The app has its own key with a limit of $200 a month. An alert at $100 goes to the app owner on day 12. The owner finds a retry bug in a nightly job that calls the model six times per record, fixes it, and spend ends the month at $140. Without the key limit, the bug would have run all month, and nobody would have known which app caused it.
What does each app cost per unit?¶
Divide the month's spend by something the business counts: records processed, requests answered, active users. That unit cost is what you compare with the manual process the app replaced. Spend per app alone says little, because a busy, valuable app should cost more. Put the unit cost beside the baseline from baselining, and retire the apps whose unit cost exceeds the value.
Assumptions and evidence¶
- A-027 (Medium): usage-based spend is volatile and concentrated, so cost needs caps, alerts and per-app attribution. We expect month-to-month swings above 25% without controls; test this on your own exports.
Evidence: one vendor's pricing post, one spend index drawn from a single company's customers and a risk list; no public case study of controls reducing spend, and nothing for non-developer builders. A figure that circulates for one large company's AI budget isn't used here because its primary source is paywalled and we haven't read it. Facts on this page are as of October 2026.
Related¶
- Where to host worker-built apps: the model-access layer and when you need it.
- Guardrails for AI app deployment: which layer enforces spend caps.
- Citizen developer program ROI: counting cost against value.
- AI features in worker-built apps: checks before an app with a model call launches.
- Run a worker-built app in production: the other operating signals.
-
Cursor, pricing update post (post of 4 July 2025, on the June change), describing the change to usage-based pricing, unexpected charges and refunds. [vendor] Accessed 2026-10-22. ↩
-
Ramp, AI Index, September 2026; share of Ramp customers paying for AI tools and spend per employee. 85,000+ US firms, from receipts and bills. Top 1% of firms paying for AI: $9,567.53 per employee per month; median among firms paying for AI: $15.70; $9,567.53 ÷ $15.70 ≈ 610. [survey] Skewed sample: Ramp's own customers. Accessed 2026-10-22. ↩
-
OWASP, Top 10 for LLM Applications 2025, LLM10 Unbounded Consumption. [standard] A community risk list, not a standard. Accessed 2026-10-22. ↩↩
-
LeadDev, The rise and looming fall of acceptance rate, 2025. [news] Accessed 2026-10-22. ↩