TokenRate
Guide · Building with AI3 min read

Calculate AI API Cost Per Active User

A practical unit-economics worksheet for SaaS teams using request counts, measured token use, failures and feature mix.

By TokenRate · Published · Updated

TL;DR

Cost per active user = total monthly AI usage cost divided by monthly active users. For planning, calculate each feature's cost per request and multiply by requests per active user, including retries and expensive outliers.

Use active users and real feature mix

A monthly API invoice divided by signups hides the spending pattern. Start with monthly active users, then count calls per active user for each AI feature. A summarization call, chatbot turn and document analysis request have different token mixes and prices.

Price one feature at a time

For each feature, record the exact model, average input tokens, average output tokens and per-million rates. Cost per request is (input × input rate + output × output rate) / 1,000,000. Multiply by calls per active user. For example, 20 calls at $0.01 each cost $0.20 per active user before other features.

Include tails and failures

Averages alone can hide power users and long documents. Measure p50 and p95 token use, retry rate and failed calls. Put caps on maximum output and context where product quality allows. If usage is concentrated among a small group, model that group separately so a generous free tier does not surprise you.

Connect cost to margin

Suppose a paid plan earns $10 monthly per active user and AI usage costs $0.80. AI alone uses 8% of revenue; payment, hosting, support and acquisition costs still need room. Monitor cost per successful feature outcome as well as per user. Estimate monthly API spend under several adoption scenarios.

Primary sources

Frequently Asked Questions

Should I divide AI cost by all registered users?

For product unit economics, active users are usually more informative. Also segment heavy users so the average does not conceal large losses.

Try the TokenRate Calculator

Estimate your own usage with TokenRate tools, then compare with the provider's billing page.

Open Calculator →