Studio Yeodan Get $12 Kit

Costs · 6 min read

How to estimate an AI bill before you build

Almost every AI project that runs out of budget did so because someone multiplied a price per million tokens by a guess about usage. Four multipliers decide the real bill.

The arithmetic

Cost = input tokens × input price + output tokens × output price, per request, times requests. Output tokens cost several times more than input tokens on every major provider, which is why a feature that generates long answers is not the same cost as one that classifies short ones.

monthly = requests × (in × p_in + out × p_out) ÷ 1,000,000

Four multipliers people leave out

  1. Prompt overhead. A system prompt, examples and retrieved context add up. A 200-token question sent with 3,000 tokens of instructions costs fifteen times what the question alone would.
  2. Retries and agents. One user action can become five model calls: a router, a retrieval step, a draft, a critic, a formatter. Multiply by the number of calls, not the number of users.
  3. Context windows that grow. Chat features resend the whole conversation each turn. The tenth message costs ten times the first.
  4. Cached input. Most providers discount repeated prompt prefixes heavily (often 50–90%). Using it is a bigger saving than switching models in many cases.

Why the headline price is the least useful number

A model at half the price per token that needs two attempts to get it right costs the same as the expensive one. A cheaper model that needs a longer prompt costs the same. The number to compare is cost per successful task, which is price × attempts × tokens per attempt — and the middle term is where the quality difference shows up.

A worked check

Suppose a feature runs 20,000 times a month, sends 1,500 input tokens and receives 300 output tokens. At $3 per million input and $15 per million output that is $90 of input and $90 of output — $180 a month, before retries. Add a 1.3 retry factor and a 3,000-token system prompt and the bill roughly triples. That is the entire reason to model it before you ship.

What to do about it

  • Cache the system prompt and the static examples; it is usually the single largest saving.
  • Route: a small model for classification, a larger one only for generation.
  • Cap output length. Every token you do not generate is a token you do not pay for.
  • Set a per-user or per-day spend limit before launch, not after the first surprise invoice.

Frequently asked

Are token prices likely to fall?

They have fallen consistently for two years, and you should not build a business that only works if they fall further. Model for today's price and treat the drop as margin.

What is the difference between input and output tokens?

Input is what you send; output is what the model writes. Output is usually 3–5× the price because generating is more expensive than reading.

Do cached tokens really save money?

Yes, where the provider supports prompt caching — often 50–90% off the cached portion. It only helps if the same prefix is reused, which is exactly what a system prompt is.

How accurate is an estimate like this?

Within a few tens of percent if your request volume is known, and wildly wrong if it is a guess. Estimate, then measure the first week.

Written 2026-12-02 · Studio Yeodan. Figures are planning ranges, not measurements of any particular account. Nothing here is legal, tax or financial advice.