AI

What an AI feature really costs to run in your MVP

AI features are billed per request, so the LLM API cost grows with every user and every message. For most MVPs the numbers are small, but only if you do the arithmetic before you build. Here is the maths in plain terms, with a worked example you can copy for your own product.

The short version
  • Tokens: you pay for input (instructions, documents, history) and output, and input is usually where the volume is.
  • Worked example: 1,000 users sending 20 messages a month costs about $0.03 to $0.32 per user at our example rates.
  • Model choice: route most requests to a small model and escalate only when the task needs a flagship.
  • Caching: put the fixed part of the prompt first so it can be cached at a reduced rate.
  • Guardrails: per user caps, output limits, rate limits, budget alerts, cost logging and a kill switch.
  • Pricing: keep AI cost under 10% of the revenue from the users who generate it.

Why AI cost surprises founders

Most software gets cheaper per user as you grow. Hosting a thousand users costs little more than hosting a hundred. AI features work differently. Every time a user asks your assistant a question, you pay the model provider for that request. More users and more usage mean a bigger bill, in a straight line.

That is not a reason to avoid AI features. It is a reason to do the arithmetic before you build. The good news: for most MVPs the numbers are small, and a few design choices keep them small. This post walks through the maths in plain terms, with a worked example you can copy for your own product.

Tokens in plain English

Model providers charge by the token. A token is a chunk of text, often part of a word. A rough rule of thumb for English is that 1,000 tokens is about 750 words. Prices are usually quoted per million tokens.

There are two kinds of token on every request, and they are priced differently:

  • Input tokens are everything you send to the model: your instructions (the system prompt), any documents or data you include, the conversation so far and the user's new message.
  • Output tokens are what the model writes back. They typically cost several times more per token than input.

The part founders miss is the input side. The user types one short question, but your app may send thousands of tokens of instructions, help articles and chat history along with it. On most features, input is where the volume is.

The example rates we will use

Model prices change often, sometimes monthly, so we are not going to quote any vendor's real prices. Instead, here are round example rates for two tiers of model. Treat them as example rates, check each vendor's pricing page on the day you budget.

Model tier (example)Input, per million tokensOutput, per million tokens
Small model$0.50$2
Flagship model$5$20

The exact figures matter less than the shape. A flagship model costing about ten times a small one is a common pattern, and output costing several times input is too. Swap in today's real numbers and the method below still works.

Worked example: cost per user for a support assistant

Say your MVP has a support assistant that answers customer questions using your help docs. You have 1,000 active users and each sends 20 messages a month.

Step 1: count messages. 1,000 users × 20 messages = 20,000 messages a month.

Step 2: estimate tokens per message. Suppose each request sends 2,000 input tokens (instructions, a couple of relevant help articles and the question) and gets back a 300 token answer, roughly 225 words.

Step 3: total tokens.

  • Input: 20,000 × 2,000 = 40 million tokens.
  • Output: 20,000 × 300 = 6 million tokens.

Step 4: apply the rates.

Model (example rates)Input costOutput costMonthly totalPer user
Small40 × $0.50 = $206 × $2 = $12$32$0.03
Flagship40 × $5 = $2006 × $20 = $120$320$0.32

Both are comfortably under a dollar per user per month. For an MVP with a few hundred users, the small model costs less than a coffee. This is why we tell founders not to let AI cost fears stop them testing an AI feature. The risk is not the base case. It is what happens when the inputs grow.

When the context grows

Real conversations are rarely one question long. If your assistant resends the full chat history with every message, a ten message conversation sends message one ten times. Add longer documents, and input per request can easily triple.

Rerun the example with 6,000 input tokens per message instead of 2,000, output unchanged:

  • Input: 20,000 × 6,000 = 120 million tokens.
  • Small model: 120 × $0.50 = $60 input, plus $12 output = $72 a month, about $0.07 per user.
  • Flagship model: 120 × $5 = $600 input, plus $120 output = $720 a month, about $0.72 per user.

Nothing about the product changed from the user's point of view. The bill went up by more than double because of what you send behind the scenes. Three habits keep this in check:

  • Trim history. Send the last few turns, or a short summary of older ones, not the whole transcript.
  • Retrieve less. Send the two most relevant help articles, not the whole knowledge base.
  • Cap output. Set a maximum response length. Most support answers do not need 1,000 words.

Small model or flagship model

In the examples above, the flagship model costs ten times the small one for the same traffic. So the question is not "which is best" but "which is good enough for this task".

Small models are usually fine for:

  • Classifying or tagging text, such as routing a ticket to the right team.
  • Extracting fields from a document or email.
  • Short answers grounded in a document you supply.
  • Summaries and rewrites.

Flagship models earn their price on:

  • Multistep reasoning, planning or analysis.
  • Writing that needs judgment, nuance or a consistent voice over many pages.
  • Complex code or data work.

A common pattern is routing: send every request to the small model first, and only escalate to the flagship when the task needs it. If 80% of your traffic can stay on the small model, your blended cost lands much closer to the small model's line than the flagship's. Build the MVP so the model is a setting, not a rewrite, and you can test both against real user questions in week 2.

Caching and batching

Two features offered by many providers can cut the bill without changing the product. Terms differ by vendor, so check the details.

Prompt caching. If the start of every request is the same, such as your system prompt and a standard set of documents, many providers let you cache that prefix and charge a reduced rate when it is reused. Take the 6,000 token flagship example and assume 4,000 tokens are a stable prefix, billed in our example at 10% of the normal input rate:

  • Uncached input: 20,000 × 2,000 = 40 million × $5 = $200.
  • Cached input: 20,000 × 4,000 = 80 million × $0.50 = $40.
  • Output: $120.
  • Total: $360 a month, down from $720.

The design lesson is simple: put the parts that never change at the start of the prompt and the parts that change (history, the user's message) at the end.

Batching. Some work does not need an answer in two seconds: overnight report generation, tagging last week's tickets, enriching a list of records. Some vendors offer a discount for batch jobs that can wait hours. If a feature is not interactive, ask whether it can run as a batch.

Guardrails on spend

Averages hide the user who pastes in a 300 page PDF, or the script that hits your endpoint ten thousand times overnight. Before launch, put these in place:

  1. Per user limits. A daily or monthly cap on messages or tokens per account, with a friendly message when it is reached.
  2. Input size limits. Reject or truncate uploads above a set length.
  3. Maximum output length on every request.
  4. Rate limits on the endpoint, so a bug or a bad actor cannot run up the bill in an hour.
  5. Budget alerts in the provider's dashboard, set well below the number that would hurt.
  6. Cost logging. Record tokens and estimated cost per request, per user. You cannot manage what you cannot see.
  7. A kill switch. A setting that turns the AI feature off or falls back to the small model without a deploy.

None of these is hard to build. All of them are much harder to add after the first surprise invoice.

Price your plan so AI stays under 10%

A useful rule: AI cost should stay under 10% of the revenue from the users who generate it. That leaves room for hosting, support, payment fees and profit.

Work it backwards. On a $20 a month plan, your AI budget is $2 per user per month. Now check the heavy case. In the 6,000 token flagship example without caching, one message costs:

  • (6,000 × $5 + 300 × $20) ÷ 1,000,000 = $0.03 + $0.006 = $0.036 per message.

The average user at 20 messages costs $0.72, well inside budget. But a power user sending 200 messages costs $7.20, more than three times the budget. You have four levers:

  • Include a set amount. 50 messages on the base plan is $1.80 at flagship rates, just under $2.
  • Charge for heavy use. A higher tier or credit packs for people who need more.
  • Route to the small model. The same message costs $0.0036 on the small model, a tenth of the flagship.
  • Cache the prefix. As shown above, this can halve the flagship cost.

If your product is free, the same maths tells you how many free users one paying customer can support. Track the number from launch alongside your other first 90 days metrics.

What AI costs mean for your MVP development budget

For most MVPs, AI running costs are not the big number. Building the feature properly is: the prompt design, retrieval, guardrails, logging and the testing that tells you the answers are good. Plan for that work in your scope, and keep running costs visible with a simple per user cost line in your admin.

When you scope your MVP, write down three numbers next to every AI feature: expected messages per user, tokens per message and the plan price. If the arithmetic says under 10% of revenue at realistic usage, build it. If not, change the design before you write any code.

If you want help with this, our AI MVP development service builds these controls in from the start, and our MVP development cost guide covers what the build itself costs. Or send us your idea and request a quote and get a fixed scope and price within 48 hours. Ask us to walk through the running cost of your AI features on the same call.

FAQ

How much does it cost to add AI to an MVP?

Running costs are often small: in our worked example, 1,000 users sending 20 messages a month cost $32 a month on a small model and $320 on a flagship, at example rates. The bigger cost is usually building the feature properly, including prompts, retrieval, guardrails and testing.

What is a token?

A token is a chunk of text, often part of a word. A rough rule of thumb for English is that 1,000 tokens is about 750 words. Providers charge separately for input tokens you send and output tokens the model writes.

Should I use a small model or a flagship model?

Start with the smallest model that passes your quality test. Small models handle classification, extraction, short grounded answers and summaries well. Use a flagship for multistep reasoning or complex writing, ideally only for the requests that need it.

How do I stop one user running up a huge AI bill?

Set per user message or token caps, limit input size and output length, add rate limits on the endpoint and set budget alerts with your provider. Log cost per request so you can spot heavy users early, and keep a switch to turn the feature off without a deploy.

Are the prices in this post real vendor prices?

No. Model prices change often, so we used round example rates to show the method. Check each vendor's pricing page on the day you budget and plug those numbers into the same arithmetic.

Let's build

Want this plan run on your product?

Send us your idea or your prototype. You get a fixed scope, a fixed price and a launch date within 48 hours.

Keep reading

More from the blog.

All posts
Request a quote

Tell us what you're building.

Step 1 of 3

What are you building?

Product type
Where are you today?

Thanks! Your brief is in. You'll get a fixed scope, price and launch date within 48 hours.