Business & Money
AI Cost & Margin Model: LLM API Pricing, Token Spend & Break-Even Spreadsheet
A spreadsheet to price an AI product properly: model costs, margins and the break-even point, before you publish a plan.
Regular price $29 Black Friday price $20.30 with BF30
Black Friday: the button applies code BF30 automatically for 30% off. Valid until Mon 30 Nov 2026, 23:59 (Madrid time).
Who it’s for
- Founders and developers who need to price an AI product or feature before they publish a plan.
- Teams running agent loops, where every step re-sends the conversation and input tokens grow quadratically.
- Anyone who wants to see which AI feature is eating the bill.
What’s inside
You don't know your margin per AI user. This spreadsheet tells you in 5 minutes: token spend, API cost per customer, and the break-even price for your AI product. Works in Google Sheets & Excel.
Your AI feature's margin is a guess until you model it. This is the spreadsheet that does it properly.
Most token calculators multiply tokens by price. That's right for one API call and wrong for everything you actually ship — because every step of an agent loop re-sends the whole conversation so far. Step 3 carries the system prompt plus two turns. Step 12 carries eleven. Your input tokens grow quadratically while your pricing page stays flat, and you find out from the invoice.
This model handles that. Nine tabs, live formulas, no macros, no subscription.
What's in it
- Model Prices — every current model from Anthropic, OpenAI, Google and DeepSeek in one editable table with an "as of" date. Input, output, cache read, cache write, batch discount. Every other tab reads from it, so when prices move you change one row.
- Features — one line per AI feature. Tokens in, tokens out, cache hit rate, calls per user. Out comes cost per call and cost per user per month, plus which feature is eating your bill.
- Unit Economics — per pricing plan: revenue, AI cost, gross margin, and the break-even price you'd have to charge just to cover the tokens. Including what your free tier is quietly costing you.
- Agent Loops — the expensive one. Models context growth across a multi-step run, sub-agent fan-out, retries, and what caching would actually save. Prints the naive estimate next to the real number so you can see the gap.
- Model Compare — one workload priced across every model in the table, ranked against the cheapest.
- Scale & Runway — twelve months of growth, spend and cash left.
- Reality Check — nine checks that read your own numbers and tell you when the plan doesn't work. Negative margin, one feature eating everything, a retry rate you left at zero, AI cost climbing past a quarter of revenue. It does not congratulate you.
- Sources — every figure, where it came from, and what I could not verify.
Why the numbers are honest
Where a provider publishes its cache and batch rates, they're in the table. Where I could only verify list prices, the cache columns are set to the full input price and batch to zero — the sheet assumes no discount at all. An unknown that rounds in your favour is how a model tells you a feature is profitable when it isn't, so the unknowns round against you and a Verified column says which is which.
Same reason the Reality Check thresholds sit where a number stops being survivable rather than where it stops being comfortable.
What it is not
Not a billing integration. It doesn't read your provider invoice or connect to your account. It's a planning model: change an assumption, watch your margin move, before the invoice tells you. It won't guarantee a cost or a margin, and prices change without notice — re-check them against your provider before you bet a pricing page on it.
Works in
Excel (2019 or newer), Microsoft 365, Google Sheets, LibreOffice, Numbers. Instant download, two .xlsx files: a blank model and a filled worked example built around a coding-assistant SaaS, so you can see every tab doing its job before you type anything.
Made with the help of AI/automated tools. The formulas, the tab structure, the agent-loop cost model and the reality-check thresholds are my own original design — not a resold or purchased template.
How to use it
- Open the filled worked example (a coding-assistant SaaS) to see every tab doing its job.
- In the blank model, check the Model Prices table and its “as of” date against your provider, and edit any row that has changed.
- Add one line per AI feature on the Features tab: tokens in, tokens out, cache hit rate, calls per user.
- Enter your pricing plans in Unit Economics and model multi-step runs in Agent Loops.
- Read the Reality Check tab — nine checks that flag when the plan doesn't work.
Frequently asked questions
What format is the AI cost model?
An instant download of two .xlsx files: a blank model and a filled worked example. Nine tabs, live formulas, no macros, no subscription.
Which apps does it open in?
Excel (2019 or newer), Microsoft 365, Google Sheets, LibreOffice and Numbers.
Does it connect to my OpenAI or Anthropic account?
No. It is a planning model, not a billing integration. It doesn't read your provider invoice or connect to your account.
Are the model prices current?
The Model Prices table has an “as of” date and a Verified column. Where only list prices could be verified, cache columns are set to the full input price and batch to zero, so unknowns round against you. Prices change without notice — re-check them with your provider.
What licence do I get?
The product page doesn't spell out licence terms, so check the Gumroad page before using it beyond your own business.
What is the refund policy?
Please see the Gumroad product page for the current refund terms before you buy.
Do I get updates?
Your purchase stays in your Gumroad library, where you can download the files currently published for the product. No fixed update schedule is promised.
Regular price $29 Black Friday price $20.30 with BF30
Related guide
Related products
Free AI API Cost Calculator Lite
A small spreadsheet that turns model prices, tokens and usage into cost per user and a simple margin. Opens in Excel and Google Sheets.
Free (pay what you want)
Details about Free AI API Cost Calculator Lite Get it free on Gumroad
AI Builder Pack (bundle)
Four AI-builder products together: the cost and margin model, Nimbus chat UI, Aether agent dashboard, and the AI Search Visibility Kit. $121 separately, $59 in this pack.
Regular price $59 Black Friday price $41.30 with BF30
Details about AI Builder Pack (bundle) Buy on Gumroad — $41.30 with BF30$59