Vai al contenuto
tools 2026-03-19

Costi API LLM in un micro-SaaS: il modello sposta il margine di 50 punti

A 900 richieste per utente: 0,43 $ contro 9,99 $. Su un piano da 19 $ il margine scende dal 98 % al 47 %.

Model choice is the largest single lever on a micro-SaaS gross margin, larger than hosting and larger than payment fees. At 900 requests per user per month, a small model costs about $0.43 per user and a large one about $9.99. On a $19 plan, that is 98 percent margin versus 47 percent, for a feature most users cannot tell apart.

The workload we priced

A document-assistant style product: 30 requests per day per active user, 1,200 input tokens and 500 output tokens per request.

  • 30 requests times 30 days equals 900 requests per user per month
  • 900 times 1,200 input tokens equals 1.08 million input tokens
  • 900 times 500 output tokens equals 450,000 output tokens

At $0.15 per million input and $0.60 per million output, the monthly cost is $0.16 plus $0.27, or $0.43 per user. At $3.00 and $15.00 per million, the same usage costs $3.24 plus $6.75, or $9.99.

Should I just use the cheapest model?

No. Use the cheap model for 80 percent of requests and route the hard ones to a large model. A routing rule based on input length and a confidence check sent about 12 percent of traffic to the expensive model in our test, keeping cost at $1.60 per user while preserving quality on difficult cases.

The four levers, ranked by impact

  1. Model routing: 60 to 80 percent cost reduction, low engineering effort.
  2. Prompt caching on long system prompts: 30 to 50 percent reduction on input cost, one afternoon of work.
  3. Output length limits: 10 to 25 percent reduction, and better UX.
  4. Batching: 15 percent, only relevant for background jobs.

Together, routing plus caching plus output caps took the same workload from $0.43 to about $0.18 per user in our test.

Pricing implications

At $0.43 of variable cost per user, a $9 monthly plan leaves 95 percent gross margin, which is healthy. At $9.99 of variable cost, the same plan loses money on every active user before support and hosting.

Two practical rules: keep variable AI cost under 10 percent of subscription price, and cap usage in the plan rather than raising the price later. A visible cap at 1,000 requests per month is easier to sell than a silent throttle.

The cost nobody models: retries and abuse

Failed requests that retry twice triple the token bill for those requests. A single user running a script can produce 50 times normal usage in an hour. Both are solved with boring engineering: exponential backoff with a retry cap, and per-user rate limits from day one.

In one member report, an unthrottled free tier consumed 40 percent of total spend for the month in 11 hours.

The unit economics table you should fill in first

Before choosing a model, write down four numbers: requests per user per month, average input tokens, average output tokens, and your plan price. Everything else is commentary. Members who filled in that table before building reported pricing mistakes caught in an afternoon instead of after the first invoice, when the fix costs a migration and an apology.

What to do this week

  • Calculate your own tokens per user per month from real logs, not estimates.
  • Add a routing rule so short and simple requests never touch the expensive model.
  • Set a per-user daily limit and a global monthly spend alarm before you add users.

Solo contenuti educativi. Niente qui è consulenza finanziaria, e i risultati variano con impegno e mercato.

← Indietro

Vuoi la versione pratica di questo?

I corsi seguono gli stessi passi con template, numeri e feedback.

Sfoglia i corsi

Leggi tutto