AI costs
What an AI feature really costs to run, and how to estimate it before you build
Model usage is only one line on the bill. A simple method to estimate running costs per use, and five ways to keep them down.
3Innovators team · 25 November 2026 · 6 min read
Build cost gets most of the attention, but an AI feature also costs money every time someone uses it. Estimating that early avoids an unpleasant surprise once usage grows.
The components
- Model usage: providers typically charge per token, a small chunk of text, for both the input you send and the output you receive.
- Retrieval: storing and searching your documents, for example in a vector database, if the feature answers from your own content.
- Infrastructure: servers or functions that run the workflow, plus logging and monitoring.
- People: review time for outputs that need approval, and ongoing evaluation and improvement.
A simple estimate
Work out the cost of one typical use, then multiply. For one use: estimate the input size (the question plus any retrieved passages and instructions) and the output size, multiply each by the provider's current price per token, and add any retrieval cost. Multiply by uses per day and by 30 for a monthly figure. Then add infrastructure and review time.
Always estimate with real examples from your own data. Retrieved context is often much larger than the question itself, and it dominates input cost.
Five ways to keep it down
- Use the smallest model that meets your quality bar, and test that bar on real cases.
- Send less: retrieve only the most relevant passages instead of whole documents.
- Cache answers to frequent, identical questions.
- Route by difficulty: simple requests to a cheaper model, hard ones to a stronger model.
- Set budgets and alerts, and review spend per feature every month.
Prices for models change often, usually downwards, so recalculate periodically. Designing so you can switch models without rewriting the feature keeps you free to take advantage of better prices later.