The 100k-user cost sizing kit (per unit first, cache second)
The short version
I asked Claude what my app would cost to run if it grew to 100,000 users, and the answer came back under $200 a month. Not because the app is small, but because every provider in the chain bills per unit of work, and the unit of work is a six second voice note.
The method is boring and that is the point. Count the real events per month, price one event to the fraction of a cent, multiply, then go looking for the part of the bill you are paying twice. In my case that was the same instruction block sent with every request, and caching it cut the AI line in half.
Copy these prompts
Paste them into Claude Code, or any AI that can see your project, in this order. The first one is the one people skip, and it is the one that decides the answer.
1. Count the events before you price anything
Read my codebase and list every external call that costs money per request: transcription, model calls, storage, egress, hosting. For each one tell me what a single user action triggers, how many calls, and what unit the provider bills in (seconds of audio, tokens, requests, GB). Do not estimate cost yet. Just give me the unit and the count per action.
2. Price one action, then multiply
Using that list, price ONE user action end to end in fractions of a cent, showing the provider's published rate and the arithmetic. Then build a table for 1,000 / 10,000 / 100,000 users at these usage assumptions: [X% active weekly, Y actions each]. Flag which line grows fastest and which one is basically flat.
3. Find the part I am paying for twice
Look at my prompts and requests for repeated content sent on every call: system prompts, instructions, schemas, few shot examples. Tell me how many tokens of that are identical every time, whether my provider supports prompt caching, and what the cached rate would do to the number from step 2. Show the before and after.
Here is the actual chain, with the arithmetic left in, because the arithmetic is the deliverable.
The usage model
Start with events, not users. 100,000 signups is not a bill. Voice notes are.
100,000 users
x 20% active in a given week
x 2 voice notes each week
x ~4.3 weeks
= roughly 172,000 voice notes a month
Every line below is priced against that one number. If you cannot write your own version of this block, you do not have a cost model, you have a guess.
Bill 1: transcription
Speech to text is billed by the hour of audio, at 2 cents an hour on the fast hosted models. My voice notes run about six seconds.
6 seconds = 1/600 of an hour
2 cents / 600 = about 1/100 of a cent per voice note
172,000 notes = about $63 a month
The insight is the unit. Priced per user it sounds expensive. Priced per second of audio it is nothing, because short recordings are what the app actually produces.
Bill 2: the model, before caching
An open weight model on a fast inference host, billed per million tokens: 15 cents in, 60 cents out. Each voice note sends about 7,000 tokens in (the instructions plus the user's data) and gets about 300 tokens back.
in: 7,000 / 1,000,000 x $0.15 = $0.00105
out: 300 / 1,000,000 x $0.60 = $0.00018
about a tenth of a cent per voice note
172,000 notes = about $148 a month
Bill 2 again: the same bill with the prefix cached
Of those 7,000 input tokens, about 6,000 are byte for byte identical on every single call. That is the system prompt: the rules, the output shape, the examples. Only the last thousand tokens change.
Providers that support prompt caching detect that stable prefix and charge roughly half rate for the cached part. Same output, same model, no code rewrite beyond one rule:
Put everything that never changes at the FRONT of the prompt, and everything that changes at the END. A cache hit is a prefix match. One user specific line at the top invalidates the whole thing.
$148 a month -> about $75 a month
That is the single highest leverage change in the whole model, and it is a reordering.
Bill 3: hosting
Serverless hosting at that traffic, about $35 a month. It is the flattest line on the sheet, which is the useful thing to know: at this scale hosting is not what you optimize.
The total
transcription $63
AI, cached $75
hosting $35
-------------------------
about $178 a month at 100,000 users
Under two dollars per thousand users per month. That is what it costs, and now it is a number I can defend instead of a feeling I can panic about.
Steal this for your app
- Find your unit. Per user is never the unit. Per second of audio, per token, per image, per request. Price that, then multiply. Every scary infrastructure number gets small when you divide it back down to one action.
- Cache the prefix, not the answer. Response caching only helps on repeats. Prefix caching helps on every single call, because the instructions never change. Order the prompt for it.
- Look for the line that grows fastest, not the biggest line today. Hosting is flat. Per action costs are the ones that turn 1,000 users into 100,000 users worth of bill.
- Do this before you need it. The exercise takes twenty minutes and it changes what you build. I would have written a very different prompt if I had priced it after launch.
- Write the assumptions down. 20% weekly active, 2 notes each. If those are wrong the answer is wrong, and you want the wrongness visible in the sheet rather than buried in the total.
Run this on your codebase
Paste this into a Claude session in your repo:
Build me a cost model for this app at 100,000 users. Report before changing anything:
1. Every metered external call, with the provider's billing unit and the count per user action.
2. The cost of ONE user action, to the fraction of a cent, with the arithmetic shown.
3. A monthly total at 1k / 10k / 100k users, stating the usage assumptions you used.
4. Repeated tokens: how much of every request is identical, and what prompt caching would save.
5. Rank the lines by growth rate, not by size today, and name the first one that breaks.