How to keep AI running costs under control

To keep AI running costs under control: use the smallest model that meets your quality bar, keep prompts and answers short, cache repeated answers, route simple requests to cheaper models or the device, set per-user and daily limits, and monitor cost per feature and per user from day one. These steps often cut costs by half or more without users noticing.
AI features are cheap to try and easy to over-spend on at scale. In our AI product development work we plan running costs alongside build costs. For build budgets, see how much it costs to add AI to an app.
Where AI running costs come from
| Cost driver | Why it matters |
|---|---|
| Number of requests | More users and more usage mean more calls |
| Tokens per request | Longer prompts, documents and answers cost more |
| Model choice | Larger models can cost many times more per token |
| Retrieval and storage | Search indexes, embeddings and databases |
| Hosting and orchestration | Servers that run your AI logic |
| Retries and agents | Multi-step agents make several model calls per task |
Providers publish per-token prices, for example Anthropic's pricing. Model your costs with current prices before launch.
1. Choose the right model for each task
Not every task needs the most capable model. Classification, extraction and short replies often work well with smaller, cheaper models. Use your test set to find the cheapest model that meets your quality target. See how to scope an AI MVP.
2. Route requests
Send simple requests to a small model and only escalate complex ones to a larger model. A simple router based on task type or confidence can reduce costs substantially.
3. Keep prompts lean
- Remove unnecessary instructions and examples.
- Retrieve only the most relevant passages, not whole documents. See RAG for business.
- Summarise long conversation history.
- Ask for concise answers.
4. Cache
Many questions repeat. Cache answers to common requests and reuse them. Many providers also offer prompt caching for repeated context, which can lower costs for long shared instructions.
5. Use on-device AI where it fits
Short, frequent and private tasks can run on the phone with no per-request fee. See on-device AI on iPhone.
6. Set limits
- Daily and monthly spending caps with your provider.
- Per-user rate limits to prevent abuse.
- Maximum answer lengths.
- Alerts when spending passes thresholds.
7. Monitor cost per feature and per user
Log tokens, model and cost for each request, tagged by feature. Review weekly. Unexpected growth usually comes from one feature, one prompt change or a few heavy users.
A worked example
An app with 20,000 monthly active users has an AI assistant used by 30% of them, averaging 10 questions a month. That is 60,000 requests a month.
| Step | Illustrative monthly cost |
|---|---|
| Large model for everything, long prompts | £1,800 |
| Shorter prompts and retrieval of top passages only | £1,100 |
| Cache common answers (30% hit rate) | £770 |
| Route simple questions to a smaller model | £450 |
Illustrative figures; your costs depend on current prices and usage. The pattern is typical: each step trims cost while quality stays at target, checked against the test set.
Agents need extra care
Agents make several calls per task: planning, tool calls and summaries. Limit the number of steps, use smaller models for routine steps and stop runs that loop. See AI agents inside apps.
Budgeting
- Estimate cost per active user per month at launch, and at ten times the usage.
- Include AI costs in pricing for paid products.
- Review model options every few months; prices and capabilities change quickly.
Questions to ask your developer
- What does each AI feature cost per use, and per active user per month?
- Which model does each feature use, and why?
- Where do we cache, and what is the hit rate?
- What limits stop a single user or bot running up costs?
- What alerts do we have for unusual spend?
- What happens to the feature if the AI provider is down or the budget is reached?
Signs your costs are out of control
- Monthly AI bills rise faster than active users.
- Nobody can say which feature drives most cost.
- Prompts have grown over time with extra instructions and examples.
- The most expensive model is used for every request "to be safe".
- Agents call tools in loops without limits.
Each of these is fixable, and fixing them often cuts costs by half or more without users noticing. See AI agents inside apps and RAG for business for the features that tend to drive cost.
The short version
- Use the smallest model that meets your quality bar.
- Route, cache and keep prompts lean.
- Use on-device AI for simple, frequent tasks.
- Set limits and monitor cost per feature and per user.
Worried about AI costs in your app? Book a call and we will review your setup.
Frequently asked questions
How much does an AI feature cost to run per user?
Often pennies per user per month for light use, more for heavy chat or agent use. Model it with your own usage patterns.
Will cheaper models reduce quality?
For some tasks, no. Test with your own examples; only use larger models where the difference matters.
Can we pass AI costs on to users?
For paid products, yes, through pricing tiers or usage limits.
How often should we review AI costs?
Weekly in the first months after launch, then monthly.
Is it cheaper to host our own AI model?
Sometimes, at high volume or for specialist models. For most apps, managed APIs are cheaper once you include hosting, engineering and maintenance.
Talk it through with one of our co-founders. 30 minutes, no pressure.




