calculate_ai_margin
Calculate an AI product's true monthly margin after token costs, payment fees, refunds, and taxes. Get break-even price, usage cap, and per-customer profit.
Instructions
Turn an AI product's MRR into what the builder actually keeps after the token bill, card processing fees, failed payments, refunds, and sales tax. Also returns the break-even price and the break-even usage cap (tokens per user), the per-customer margin, and a flag when a flat price sits below its own token cost. A metered token bill is owed even past revenue, so a loss is unbounded (not floored at the gross). All monetary values are USD per month. Mirrors Okane Land's margin calculator; directional, not financial advice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vatPct | No | Sales tax / VAT percent you remit (default 0). | |
| refundsPct | No | Percent of gross lost to refunds and disputes (default 3). | |
| intlCardPct | No | Percent of sales on international cards, which carry higher fees (default 40). | |
| pricePerMonth | Yes | What one customer pays per month, in USD. | |
| tokensPerUserM | Yes | Millions of tokens an average user burns per month. | |
| monthlyChurnPct | No | Monthly churn as a percent (default 6.1). | |
| payingCustomers | Yes | Number of paying customers right now. | |
| failedPaymentsPct | No | Percent of gross lost to failed and declined cards (default 9). | |
| blendedTokenPricePerM | Yes | Blended model token price in USD per million tokens (e.g. ~0.5 for Haiku/GPT-mini, ~5 for a Sonnet/GPT-class blend, ~20 for a frontier blend, ~0.1 self-hosted). |