AI for Business How-to Intermediate Updated

Estimate what an AI feature will cost you per month

Token maths, the multipliers people forget, and the two costs that dwarf inference.

2 min read 26 min to complete 4 steps Last updated 1 Aug 2026

Before you start

  • A defined feature
  • A rough estimate of monthly usage

What you will be able to do

  • Convert a feature description into a defensible monthly number
  • Account for the multipliers that break naive estimates
  • Put a cap in place before the first invoice, not after

The arithmetic is simple and the inputs are the problem. Nobody misprices the model; they misprice how many times it gets called and how much goes in each call.

Work through it in this order and the estimate lands within a factor that will not embarrass you.

Measure one real request end to end

6 min

Actual token counts from an actual call. Estimates are wrong by multiples.

Build one representative request and read the token counts the API returns for input and output separately — they are priced differently, often by a factor of three or more.

Use a realistic input. People estimate with a tidy example and ship with documents ten times the size, which is the single largest source of error in the whole exercise.

Count what you resend every time

6 min

The system prompt and the conversation history are billed on every call.

A long system prompt is charged on every single request. In a chat feature the history is resent each turn too, so a twenty-turn conversation is not twenty short requests — it grows quadratically and the last turns cost many times the first.

This is where "it is fractions of a cent" becomes a real invoice. Check whether your provider offers caching for the fixed prefix; it is frequently the largest single saving available.

Tips
  • Price the longest plausible conversation, not the average one. The tail is where the budget goes.

Multiply by the things that are not one

5 min

Retries, validation passes, and users who try again.

Almost nothing is one call per user action. Add failed calls that get retried, any second call that validates or reformats the first, and the user who was unhappy and regenerated.

A factor of 1.5 to 3 over the naive count is normal. Assuming 1.0 is how estimates come in at a third of reality.

Add the costs that are not inference

5 min

Embeddings, storage and engineering time usually exceed the model bill.

If you are doing retrieval, embedding the corpus is a one-off and re-embedding on every change is not. Vector storage is priced monthly. Monitoring and evaluation are real line items.

And the engineering time to build and maintain it is, for most features, larger than the entire model spend. An estimate that omits it is not an estimate of the feature.

Warning Set a hard cap and an alert on day one

4 min

The runaway loop is a when, not an if.

Set a spending limit at the provider and an alert at a fraction of it, before the feature is live. A bug that retries in a loop, or a script left running over a weekend, can spend a month's budget in hours.

Per-user rate limits matter too — the cost is unbounded per user by default, and one enthusiastic customer can cost more than the rest combined.

Measure one real request, multiply honestly, then add the retries and the failures. A cap and an alert are not optimisation — they are the difference between a surprise and an incident.

Common questions

Not necessarily. A cheaper model that needs two attempts and a validation pass can cost more per successful result than one good call. Measure per completed task, not per call.

Was this guide useful?

75% of readers found this useful

S

Sabir Verified

Founder & AI Enthusiast · AIToolsay

Founder of AIToolsay and a passionate AI enthusiast dedicated to building practical, user-friendly AI tools that simplify everyday tasks.

Read next