Core model
Runtime calls
Use these calls inside your product:access.checkasks whether a customer can use a feature without changing state.usage.consumesynchronously applies known usage and returns the allow or deny decision.usage.recordasynchronously reports usage for metering and evidence.runs.start,runs.consume, andruns.endreserve and consume a budget for multi-step work.
PriceOps underneath
PriceOps is the operating model behind Unprice: plans, plan versions, subscriptions, entitlements, meters, budgets, credits, usage evidence, and invoice evidence stay separate but connected. That separation is what lets you:- authorize customer spend before paid work runs
- keep existing customers pinned to the plan version they bought
- change packaging without rewriting product code
- explain charges from plan, usage, wallet, ledger, and billing evidence
Next steps
Plans and versions
Learn how plans and immutable versions keep pricing changes safe.
Usage metering
Learn how events become period-scoped usage.