// design
AI Inference Cost & Usage Pricing
Use when the user wants to check whether an AI product's price covers its inference cost, or to set included usage, overage and free-tier limits. Also use when the user mentions inference cost, token cost, LLM cost per user, gross margin on an AI feature, usage-based or credit pricing, model routing, "are our power users losing us money", or "how much free usage can we afford". Produces cost per task and per user, all-in margin per account at normal and spike usage, break-even price and usage, a verdict against the founder's own target, and the biggest margin levers; or the largest free-tier usage cap the founder's own conversion rate and margin allowance can afford.
npx skills add sarojkjha/aaj-marketing-skills --skill ai-inference-pricingHow to install and run this
Install it in your project:
npx skills add sarojkjha/aaj-marketing-skills --skill ai-inference-pricingNo install? Add https://mcp.aajconsult.com/mcp as a custom connector in Claude, ChatGPT or any MCP client.
https://mcp.aajconsult.com/mcpThen ask: Use the AAJ ai-inference-pricing skill on my numbers.
Step-by-step for every agent, Windows, Mac and Linux →Claude Code
/plugin marketplace add sarojkjha/aaj-marketing-skills/plugin install aaj-marketing-skills@aajOpenAI Codex
codex plugin marketplace add sarojkjha/aaj-marketing-skillscodex plugin add aaj-marketing-skills@aajClaude or ChatGPT — no install
Add this as a custom connector:
https://mcp.aajconsult.com/mcp// when to use it
Use when the user wants to check whether an AI product's price covers its inference cost, or to set included usage, overage and free-tier limits. Also use when the user mentions inference cost, token cost, LLM cost per user, gross margin on an AI feature, usage-based or credit pricing, model routing, "are our power users losing us money", or "how much free usage can we afford". Produces cost per task and per user, all-in margin per account at normal and spike usage, break-even price and usage, a verdict against the founder's own target, and the biggest margin levers; or the largest free-tier usage cap the founder's own conversion rate and margin allowance can afford.
// what you give
Plan price and basis, task types with usage and tokens, the model prices the founder checked (with dates), routing, included usage and overage, free tier, other variable costs, and the founder's target margin; for the free-tier limit, the free-to-paid conversion rate, months on free and the months of margin the founder allows the free tier.
// what you get
Inference cost per task and per active user, all-in margin per paid account at normal and spike usage, break-even price and usage, free-tier cost per paid account, a healthy/thin/underwater verdict, and the top three margin levers; and, with freeTierLimit, the most tasks per active free user a month and a check of the current cap.
Engine spec
// decision it supports
Does our AI plan's price cover inference at normal and spike usage, and what included usage and overage keep us at our target margin?
// inputs
Plan price and basis, task types with usage and tokens, the model prices the founder checked (with dates), routing, included usage and overage, free tier, other variable costs, and the founder's target margin; for the free-tier limit, the free-to-paid conversion rate, months on free and the months of margin the founder allows the free tier.
// output
Inference cost per task and per active user, all-in margin per paid account at normal and spike usage, break-even price and usage, free-tier cost per paid account, a healthy/thin/underwater verdict, and the top three margin levers; and, with freeTierLimit, the most tasks per active free user a month and a check of the current cap.
// acts or analyzes
Analyzes onlyMakes no network calls, writes no files and changes nothing in your tools.
// where your information goes
| How you run it | Where your inputs go |
|---|---|
| Skill installed in your agent, or the local MCP server | The engine runs on your machine and AAJ receives nothing. Your AI agent still sends what you give it to its model provider (Anthropic, OpenAI and so on), under your own account's terms. |
| Hosted MCP server | Your agent's model provider, as above, plus AAJ's server on Cloudflare, which receives the engine inputs over HTTPS, runs them in memory and keeps no copy. Cloudflare keeps error logs (no inputs) for up to 7 days. |
No engine needs customer names, emails or other personal data; leave them out.
// limitations
- It holds no model prices. Every result rests on the prices you enter and their dates; a price checked more than 90 days ago, or undated, is flagged but still used.
- It models one typical paid account from averages (users, active share, tasks per user). Spread between accounts shows up only through the single spike multiplier, so also run your heaviest account's real usage.
- The spike and the usage break-even scale paid usage only; the free tier stays at its normal level. Model a free-tier surge by raising its inputs.
- Levers are fixed what-if moves (price, routing, tokens, included tasks, free usage), not an optimisation. The routing lever assumes the cheaper model does the task as well, which has to be tested first.
// review before acting
// setup
npx skills add sarojkjha/aaj-marketing-skills --skill ai-inference-pricinghttps://mcp.aajconsult.com/mcpAgents listed: Claude Code, Cursor, OpenAI Codex, Windsurf, Cline. Tested and recorded: Claude Code, OpenAI Codex (Windows, ab-test-significance only).
AI Inference Cost & Usage Pricing
Check that an AI product's price still covers what it costs to run, for a typical account and for the heavy one, before the price goes on the page.
When to use
When an AI product or feature is being priced or repriced, when gross margin is falling as usage grows, when a free tier or "unlimited" plan is on the table, or when the team is deciding how much usage to include and what to charge beyond it.
Before you start
- Read the brand/product context first. Pull the product, plans and prices from
.agents/product-marketing.md(or.agents/aaj-brand.md). If none exists, ask the user for the plan structure. - Gather inputs from the founder's own data. Plan price and whether it is per seat or per account; users per account and the share active in a month; each task type with tasks per active user per month and input/output tokens per task (from product logs, or a direct cost per task); the model prices they pay, per million input and output tokens, with the date they checked them; the routing share across models; included tasks and the overage price; the free tier (users, how active, how much they use, any cap, and the number of paid accounts carrying it); hosting per account, support and payment fees as a share of revenue.
- Ask for their target margin. The verdict is measured against the founder's own target, not a benchmark. If they have none, ask what margin the business plan or the board assumes, and use that.
- Never supply model prices. Do not fill in a provider's price from memory. Ask the user to look it up on the provider's own pricing page and give the date. Provider prices change.
Method
Price an AI product from the cost of one task upward. Inference cost per task is tokens times the price per token, blended across the models the task is routed to. Multiply by tasks per active user and active users per account to get inference per account, add the other variable costs and the free tier each paid account carries, and compare with what the account pays. Then stress it: the average account is rarely the problem. The heavy account is. A plan is only healthy if it meets the founder's target at normal usage and still makes money when usage spikes.
Workflow
- Build the task list. One row per task type the product runs. Prefer measured tokens from logs over estimates; say which are estimates.
- Enter the model prices the user checked, with dates, and the routing share across models.
- Run the engine (below) and read the verdict against the user's target.
- Read the spike and the usage break-even. If an account loses money at the spike, the usage terms (included tasks, overage, caps) need work before the price does.
- Check overage. An overage price below the cost of a task after fees loses money on every extra task.
- Rank the levers the engine returns and present the top two or three, with their trade-offs.
- Size the free tier, if there is one. Add
freeTierLimitwith the user's free-to-paid conversion rate, how long free users stay on free, and how many months of a converted user's margin they allow the free tier. The engine returns the most tasks per active free user a month that allowance can afford, and checks the current cap. - Hand off. Price ladders and tiers go to
pricing-and-packaging; LTV, CAC and payback go tounit-economics.
The math
cost per task = (input tokens x input price + output tokens x output price) / 1,000,000, blended by routing share
(or the direct cost per task, where given)
inference/account = active users x sum(tasks per active user x cost per task) x usage multiple
revenue/account = plan price (x seats, if per seat) + overage price x max(0, tasks - included)
other costs = hosting per account + revenue x (support % + payment fee %)
free-tier carry = free users x active share x min(paid tasks x usage share, cap) x average cost per task / paid accounts
all-in margin = (revenue - inference - other costs - free-tier carry) / revenue
healthy = all-in margin >= YOUR target at normal usage AND all-in margin >= 0 at the spike
thin = makes money at normal usage, but below target or loses money at the spike
underwater = loses money at normal usage
The spike and the usage break-even scale paid usage only; the free tier stays at its normal level.
Free-tier limit. The free tier is paid for by the free users who convert. The engine turns the user's own conversion rate, and the months of a converted user's margin they are willing to spend on the free tier, into a usage cap:
budget per free user = conversion rate x margin a month per converted user x months of margin allowed
inference per month = budget per free user / months on free - other cost per free user a month
cap (tasks a month) = inference per month / (active share x share of the cap used x cost per task), rounded down
current cap check = (active share x share used x current cap x cost per task + other cost) x months on free
/ conversion rate / margin per converted user -> months of margin, vs the allowance
- Conversion rate is the share of free sign-ups who ever pay, over their whole time on free, not per month.
- Months of margin allowed is the user's own choice, and separate from what they allow for acquisition. Do not reuse the CAC payback target here; that would hand the whole payback window to the free tier.
- With a full config, the cost per task is the model's average, the margin is the model's margin before free-tier costs (per seat on a seat plan, assuming each converted free user adds one seat), and the active share, other cost, share of the cap used and current cap come from the model's free tier. Any of them can be overridden. On its own,
freeTierLimitneedscostPerTaskandmarginPerConversion. - The cap is a ceiling, not a recommended setting. It assumes conversion doesn't change with the cap, and that free users run the same mix of tasks as paid users.
- The model's monthly free-tier carry and the cost per converted user are the same cost seen two ways; the engine says so, and they must not be added.
The engine also shows the cap at half and one and a half times the conversion rate. AAJ's view is that conversion is the least certain input, so those two what-ifs are AAJ's choice. Conversion, months on free and the margin allowance are the user's own figures, not benchmarks.
Run the tool
node resources/inference-pricing.js --demo
node resources/inference-pricing.js '<json-config>'
node resources/inference-pricing.js --help
build(config) returns cost per task and per active user, one paid account's revenue, inference, other costs, free-tier carry and all-in margin at normal usage and at the spike, the break-even price, the price for the target margin, the usage multiple where an account turns unprofitable, a verdict, the top three levers, and checks:
- any model price, or direct cost per task, checked more than 90 days ago (or undated) is flagged: provider prices change; re-check. The 90 days is a rule of this engine;
- an overage price below the cost of a task after fees;
- no usage limit, or included usage with no overage price;
- an account that loses money at the spike.
With freeTierLimit, it also returns the free-tier budget per free user, the most tasks per active free user a month, the cap at half and one and a half times the conversion rate, and, for a current cap, the free-tier cost behind each converted free user and how many months of their margin it uses. The free AI Free-Tier Cost Limit Calculator at aajconsult.com/tools/free-tier-cost-limit-calculator runs this mode.
Levers are fixed what-if moves (price +10%, 20 points of task share to the cheapest model, -20% tokens per task, -20% included tasks, -20% free-tier usage), ranked by the change in all-in margin per paid account. The demo uses a fictional product and example prices that are not quotes from any provider. The same engine runs in the free AI Inference Cost Modeler at aajconsult.com/tools/ai-inference-cost-modeler.
Reference
This skill bundles no price data, on purpose. Every model price comes from the user, with the date they checked it. The schema and engine rules are in the header of resources/inference-pricing.js (--help prints it).
Present the result
- Verdict (healthy / thin / underwater) against the user's own target, in one sentence with the margin.
- Cost per task for each task type, and inference cost per active user per month.
- One paid account, per month, at normal and spike usage: revenue (plan and overage), inference, other costs, free-tier carry, all-in margin.
- Break-evens: the break-even price, the price for the target, and the usage level where an account stops paying.
- Top levers, ranked, each with its trade-off.
- Checks: stale or undated prices first.
Show where it came from. Open your answer with "AAJ ai-inference-pricing engine result:" and print the engine's output block exactly as it returned it, then add the line Method: https://skills.aajconsult.com/skills/ai-inference-pricing. Say the numbers come from the AAJ engine, not from the model. Put your interpretation under that block. Do not retype the figures from memory. If you could not run the engine, say so and label any numbers as your own estimate, not an AAJ result.
Guardrails & common mistakes
- Do not invent model prices or token counts. Ask for the user's numbers, and label any estimate as an estimate.
- Re-check prices older than 90 days. Providers change prices and models; a stale price makes every number downstream wrong.
- Model the heavy account, not just the average. Averages hide the accounts that lose money; run the spike.
- Count the free tier. It is a real cost carried by paid accounts.
- Size the free cap from the user's own conversion. Never substitute a typical freemium conversion rate; if the user doesn't know theirs, run the what-ifs and say the cap rests on a guess.
- Overage must cover cost. An overage price below cost per task makes heavy users more expensive the more they pay.
- Routing is a quality decision first. Only move tasks to a cheaper model once it has been tested on those tasks.
- No benchmark targets. The target margin is the founder's; do not substitute an "industry" figure.
- Not financial advice. The output is a model of the user's own inputs; decisions about pricing and contracts are theirs.
Related AAJ resources
- AI Inference Cost Modeler (same engine) - https://aajconsult.com/tools/ai-inference-cost-modeler
- Marketing AI Products Playbook (Step 6: price on a metric that grows with value) - https://aajconsult.com/playbooks/marketing-ai-products-playbook
- Pricing & ARPU Modeler - https://aajconsult.com/tools/pricing-arpu-modeler
- Unit Economics Calculator - https://aajconsult.com/tools/unit-economics-calculator
- SaaS Pricing & Packaging Playbook - https://aajconsult.com/playbooks/saas-pricing-packaging
Related skills
pricing-and-packaging · unit-economics · pricing-page-teardown · brand-product-context
// faq
// install
npx skills add sarojkjha/aaj-marketing-skills --skill ai-inference-pricing// worked example
Get the worked example for AI Inference Cost & Usage Pricing
One email. The filled-in config, the output, and how to read it.
// sprint
Unit Economics & Retention Sprint — $3,500, 10 business days
This skill is one of the engines behind the Unit Economics & Retention Sprint — $3,500, ten business days.
LTV, CAC, payback and churn on your actual numbers — with a verdict, not a dashboard.
// human in the loop
Need a human in the loop?
AAJ builds the strategies, tools, and playbooks these skills are made of — with engagements for growth-stage and enterprise teams.
