Articles
    9 min read
    Published

    Usage-Based Pricing Economics: Metering, Margins, and Forecasts

    By Sasha BrenovellUpdated

    Usage-based pricing turns product activity into invoices. Every counted event becomes something the customer pays for under their contract. So the system that counts events belongs with finance and needs the same controls as your accounting books. If events go missing, get counted twice, arrive late or land on the wrong account, customers get charged the wrong amount. They stop trusting you, and nobody can make the forecast add up.

    Pay-as-you-go pricing depends on four decisions. What counts as a billable event? Which unit can a buyer predict? How much margin does each event leave? And how do you forecast revenue that depends on behavior you only partly control?

    Metering belongs in the finance stack

    The usual mistake is to treat usage counts like product analytics: rough and disposable. Billing data is neither. Describe the deal in one sentence: which customer action creates value you charge for, in what unit, over what period and with which exceptions. "API calls" rarely survives real life. Billable calls may leave out failed calls, your own internal traffic, retries, test keys and features already included in the plan. Write every exception into the code.

    Keep two versions of every event. Raw records never change, carry a timestamp and show who they belong to. You need them for audits, credits and disputes. Summed-up totals make invoicing manageable. Fix mistakes by adding a correcting entry with a reason, never by editing the original.

    Also keep three timestamps that teams often merge into one: when the action happened, when your system received it and when it can be billed. Late events are normal. Decide in advance what happens to one: does it go on next month's bill, reopen last month's invoice or get written off? Finance, support and engineering need one shared answer before launch.

    Why "per API call" falls apart

    A pricing page that says "per API call" hides a pile of engineering decisions. Bring them into the open with a written event contract that product, engineering, finance and the owner of customer terms agree on together. Make it specific enough to test. For each metric, write down its name, formula, which service produces it, how it maps to an account, how duplicates are detected, currency rules, the free allowance and how long data is kept. Add edge cases where the customer's dashboard and the invoice could show different numbers.

    Boundary cases decide the invoice

    Take a transcription service that charges per minute of processed audio. Does a 61-second file count as one minute, 1.02 minutes or two minutes? Does silence count? If a job fails halfway, do you charge for it? Does a retry create a second charge? Each answer is a rule customers will hold you to, and support will have to defend it.

    Input Billable quantity Rule
    59-second completed file 0.98 minutes Charge exact processed duration
    61-second completed file 1.02 minutes No rounding to whole minutes
    Failed validation before processing 0 No value delivered
    Duplicate event ID 0 Keep the first accepted event
    Customer-requested reprocessing 1.02 minutes New consumption

    If your own staff can't explain a unit in one sentence without exceptions, customers can't predict what they'll spend. And a bill nobody could predict is a common reason usage customers cut back or leave.

    Stop duplicates from reaching the bill

    Systems that pass messages between servers create duplicates by nature. A queue retries after a timeout. An app resends after a dropped connection. If you charge for every arrival, you charge for more use than happened. The fix is a unique key for each event, often called an idempotency key: a label that lets the system recognize the same event when it arrives twice. Create it as early as you reliably can, and make the billing ledger itself reject a second copy. App memory and dashboard totals forget too easily. For each event, store its ID, the customer ID, the metric version, the quantity and whether it was accepted. Keep rejected duplicates visible.

    Then check every day. Compare the product's own counts with the billing ledger. Explain each gap: a late event, a filtered event, a removed duplicate, an event tied to the wrong account or a manual credit. If you can't explain a gap, treat it as an incident, even when it's small. At high volume, a tiny gap per event adds up to a serious error in the monthly figures.

    Keys also expire, and that's easy to miss. Stripe's API documentation says a key can be deleted automatically once it is at least 24 hours old. After that, a retry with the same key counts as a new request. So if your system replays a failed batch two days later, Stripe won't catch the duplicate. You need your own duplicate check on a stable event ID, kept at least as long as customers can dispute a bill.

    Choosing a unit customers can forecast

    A good unit follows the value the customer gets. It can be measured reliably under heavy load, and a buyer can estimate the bill in advance. Test each option with four questions. Does the customer control it through normal use? Does it grow as they get more value? Can you measure it the same way across plans and regions? Can finance estimate the monthly amount in advance?

    Each question catches a different failure. Charging per request pushes customers to cut harmless background checks or bundle requests in odd ways. Charging per successfully enriched record matches the result better, but needs rules for retries and partial results. A low starting price with no spending cap makes it easier to buy. Yet many buyers won't roll the product out without firm spending limits. That's why budget alerts, usage exports, rate limits and prepaid options belong on the product roadmap.

    Commitments change cash flow and how you read demand. Minimum spends, prepaid credits and annual reservations make payments and planning steadier. But they add accounting work and extra duties for the customer team. Say clearly what happens to unused value: does it expire, carry over, move to other products or get refunded? Say how price changes and service credits apply. Anything left vague comes back as a fight at renewal. And remember: prepaid cash is not yet revenue. You recognize revenue only when you deliver what you promised. Check contracts against the accounting standards (ASC 606 or IFRS 15) before you count a big commitment as revenue for the period.

    Read margin one event at a time

    Consumption economics only make sense per unit: realized revenue minus variable cost at the meter. The working definition of contribution margin per unit is:

    Contribution margin per unit = realized revenue per unit minus variable cost per unit

    The revenue you actually get is lower than the list price. Take away tier discounts, contract terms, included free usage, credits, reseller shares and currency effects. Variable cost covers computing, storage, other companies' APIs, payment fees, data transfer and the extra support heavy users need. Leave fixed engineering salaries out of short-term pricing per event.

    An average margin for the whole company hides the spread. Say a product charges $0.02 per document. On the largest files, text recognition, the AI model and data transfer can cost $0.017. That leaves $0.003 a document, or 15%, and a company-wide average will happily bury it.

    Look at margin by customer group, plan, feature, file size and region. Then break each unit down step by step: list price, minus discounts and free usage, minus direct supplier and server costs, minus revenue shares tied to the unit. What's left is your contribution, in dollars and as a percentage.

    Percentages help you compare. But contribution in dollars decides whether growth pays for the company. A 90% margin on a feature nobody uses can matter less than 55% on the action that drives most usage. Track a cost-to-serve index: actual variable cost per unit divided by the budgeted cost. If it stays above 1.0 for two reporting periods, find out why before you touch prices. The cause is usually clear: a price change by the AI provider or cloud region, more expensive events in the mix, routing, cache misses or abuse.

    Provider prices move both ways, though mostly down. A chart Ethan Mollick shared in April 2025 put the fall in the cost of using top AI models at about 82% over two years. It was measured from GPT-4's launch price of $60 per million output tokens. Your index shows whether that drop reached your margin or was eaten by heavier events.

    What breaks when volume climbs

    At higher volume, an average growth rate hides what really drives revenue. Forecast by customer group instead: start month, product, contract type, segment and pricing version. For each group, model how many accounts you start with and keep, how many active workloads they run, how many units each workload uses, the real price per unit and the direct cost per unit.

    Usage revenue = active accounts × units per active account × realized revenue per unit

    Forecast big customers one by one. A single large company rollout can distort every average around it. Label each input by how solid it is: signed commitment, launch date, observed trend, sales estimate or plain guess. Then a miss points to a specific weak input. Keep signing and real usage apart. A customer may sign in January, connect in February and send real traffic only in April. If you book full expected use at signing, you overstate near-term revenue. The time to the first billable event and the first repeat month explain misses better than sales pipeline stages.

    Don't squeeze everything into one net revenue retention number when prices, mix or capacity have changed. Break it into parts: customers kept, active customers kept, growth in units, price actually achieved, downgrades, credits and churn. A customer who stayed but shrank is a different problem from one lost to a competitor.

    Then test the forecast with base, downside and upside cases. Build them from real changes, not random percentages: slower start, fewer units per workload, renewal discounts, more expensive requests. Move each of these by ten percent: accounts, units per account, real price and cost per unit. In the revenue formula above, a 10% move in accounts, units or price shifts revenue by the same 10%, so rank the inputs by how far each can realistically swing. Usage per workload and discount leakage usually swing furthest. The number of customers usually moves the total less than plans assume.

    Growth also runs into physical limits. Tie the forecast to capacity: AI processing time, supplier commitments, support and data processing costs. Growth that outruns capacity hurts service, triggers credits and quietly lowers the revenue you actually collect.

    Keep it honest by checking the layers against each other. Product events describe what customers did. The billing ledger applies the commercial rules. Invoices show the charges. The accounting books record the result. No layer can replace another. Set a limit for gaps that matter and name owners in finance, data engineering, revenue operations and support. The usage report customers see should follow the same logic as the invoice. Most billing surprises come from mismatched definitions, not from the size of the charge. Supplier documentation such as Stripe's usage-based billing guide explains the setup. Defining your units is still your job.

    Build the model in 90 days

    Ninety days is enough to go from a pricing page to a model finance can audit:

    1. Days 1 to 30. List every event you charge for. Link each one to a customer, a contract price and a source of direct cost. Take a sample of realistic raw traffic and work out a few invoices by hand. Doing the maths by hand shows exceptions a dashboard smooths over.
    2. By day 60. Publish the event contract, start daily reports on gaps and build margin views for your biggest accounts. Review any loss-making path with the product and infrastructure owners. Fixes can involve pricing, grouping requests, caching, routing, redesigning free allowances or a minimum fee in the contract.
    3. By day 90. Run a forecast by customer group with scenarios, minimum commitments, expected overage, direct cost assumptions and a forecast-versus-actual report. Give every important assumption a named owner.

    Link the model to an internal SaaS unit-economics guide and your revenue recognition policy, and keep both up to date. If the day-90 forecast misses reality by more than your limit, the labels on each input show which one failed. Rebuild that input next quarter, not the whole model.

    What you get is an early view of how much revenue depends on product behavior, contract terms and cost control, while there is still time to change any of the three.

    Related articles