World of the Developers
All guides
AI

Pricing an AI Product: How to Keep Your Margins Positive

October 28, 2026 · 6 min read

Traditional software has near-zero cost per extra user. AI products don't: every request a user makes costs you real money in tokens or compute. That changes how you should price, and it's the reason flat subscriptions can quietly lose money on your most engaged customers.

Start with cost per user

Cost per user per month = requests per user × cost per request. The cost per request comes from the tokens you send and receive, multiplied by your provider's rates.

Illustration: if a typical request costs $0.01 and a typical user makes 300 requests a month, that's $3 per user. On a $20 plan that leaves about 85% gross margin before other costs.

The heavy-user problem

Usage is rarely evenly spread. If a heavy user makes ten times as many requests — 3,000 a month — the same user costs $30 on a $20 plan, a loss of $10. A handful of such users can erase the profit from many light ones, and they're often the most enthusiastic customers.

Pricing structures that protect margin

Common approaches, often combined:

  • Usage limits or fair-use caps inside a flat plan.
  • Credits that are consumed per action, with top-ups for heavy use.
  • Tiered plans where higher tiers include more usage and more capable (costlier) models.
  • Pure usage-based pricing for developer-facing products.

Costs beyond the model

Remember the rest of the cost stack when calculating margin:

  • Hosting, databases, and vector storage.
  • Payment processing fees.
  • Support and customer success.
  • Free-tier and trial users who cost money without paying.

Levers that lower your cost per request

As usage grows, these protect the margin you priced in:

  • Routing simple requests to a smaller, cheaper model.
  • Caching repeated prompts and responses where appropriate.
  • Trimming prompts and limiting the context you send.
  • Using batch endpoints for work that doesn't need an instant answer.

Track it from day one

Log token usage and cost per user from launch. Model prices change, and so do user habits, so margins you calculated at launch can drift. Watching the distribution — not just the average — shows you problems before they become losses.

Model your own plan

Our AI SaaS Cost Calculator helps you estimate per-user cost and margin at different usage levels, so you can set plan limits and prices with real numbers behind them.

Try the calculator

AI SaaS Cost Calculator