.jpg)
Consumption Pricing: How It Works + Implementation Guide
Learn how consumption pricing works, the infrastructure it requires, and how engineering teams implement usage-based pricing.
Monetization infrastructure is the layer between product usage and revenue. Learn about what it includes, how it fits your stack, and what breaks without it.
.png)
Pricing logic that lives in application code means every tier change, credit model update, and enterprise contract term lands in the engineering backlog.
The first few are manageable. By the tenth, there's a dedicated engineer whose job is keeping the monetization infrastructure from breaking when anything else changes.
For AI products, that ceiling arrives much earlier than most teams expect.
Monetization infrastructure is the foundational system that connects how software delivers value to how it earns revenue.
For AI products, it functions as a usage runtime and credits engine that sits between the systems generating usage data and the systems recognizing revenue.
Without it, pricing logic ends up fragmented across product code, billing systems, and feature flag configs, and every change becomes a multi-team coordination exercise.
A dedicated governance layer replaces that fragmentation with a single enforcement surface that controls access, meters consumption, and governs AI spend in the request path.
Monetization infrastructure unifies three core functions across your stack.
Together, these three functions form a connective layer between your product and your revenue systems.
Monetization infrastructure bridges your product layer and your revenue systems, two layers that have never connected on their own.
Monetization infrastructure answers, “What does that payment allow them to do, and how much of it have they used?” It doesn't replace billing. It sits upstream of it. Billing answers, “Did this customer pay?”
The layer between your product and your billing system is made up of several interconnected components. Each one handles a distinct part of the problem.
Seven components make up the full layer. Here is what each one does:
Entitlements are the commercial allowances that define what each customer can access and how much they can use. For AI products, entitlements extend beyond feature flags and usage limits to include credit wallets, token allocations, agent-level budgets, and per-team spend controls.
In practice, a customer's effective entitlements are the sum of several sources: their active plan, any parent or base plan they inherit from, add-ons that increment or override plan limits, active trials, and promotional entitlements granted directly to them. When sources conflict, the most generous value wins.
A customer's entitlement might include a base token allocation from their plan, a supplemental credit wallet from an add-on, a per-agent cap enforced at request time, and a department-level spend limit that overrides all of the above. The enforcement layer has to resolve all of that correctly on every request.
Without a dedicated entitlements layer, those rules are spread across application code. When pricing changes, teams end up updating hardcoded checks across dozens of files.
Credits are consumable balances that customers draw down as they use AI features. A wallet is the container that holds those credits, assignable at the user, team, department, or org level.
What makes the credit infrastructure complex in production is everything beyond the balance itself. Credits are issued in blocks with their own expiry dates, cost basis, and category (paid or promotional).
Burn order determines which credits are consumed first, and depletion behavior configures what happens when a balance runs out: a hard limit blocks the request, a soft limit allows it to continue with an alert or grace period.
Every credit draw has to write an atomic ledger event against the correct balance pool so concurrent sessions can't both clear the same credits before either commits.
An append-only ledger records every grant, deduction, expiry, and reversal as an immutable event, which gives finance the transaction history revenue recognition depends on and gives engineering a source of truth for dispute resolution.
Metering tracks how much of a feature each customer has consumed in real time. For AI products, this means capturing token usage, agent actions, inference calls, and compute time at the request level, attributing each event to the correct customer, team, and agent in the org hierarchy.
Most in-house metering systems start as simple counters that work at low volume. At scale, you need an event stream that handles bursts without dropping or duplicating events, since either produces a billing error.
Without reliable metering, a single agent workflow can generate a five-figure overage before anyone notices, and unlike a failed payment, it leaves no record the billing system can trace back to a specific request.
The product catalog is the source of truth for pricing and packaging.
It defines the structure across products, plans, add-ons, and features, including credit allocations, token limits, and wallet configurations for AI products. A centralized catalog turns packaging changes into catalog updates rather than code deployments, but complex pricing changes stay engineering-owned.
Webflow migrated its billing infrastructure to Stigg's product catalog, using it to update pricing, implement localization, and explore credits. Each change goes through the catalog without billing infrastructure work or engineering sprints.
Real-time enforcement is where the entitlements layer, credit system, and metering data converge into a single access decision.
It runs synchronously in the request path before compute is consumed, resolving whether the request should proceed based on the current entitlement state, available credit balance, and live usage data.
A check that runs after the request completes is reporting. Real-time enforcement runs before the action, which is the architectural requirement that separates a system that protects margins from one that documents overages after they happen.
Stigg's Sidecar runs as a Docker container alongside your application, caching entitlement data in Redis so access decisions resolve from local cache with no network round-trip on cache hits.
On cache misses, the Sidecar fetches from Stigg's Edge API at around 100ms with a configurable timeout, so upstream latency never cascades into the application. If the Stigg service loses availability, the local cache keeps enforcement running without falling back to open access or blocking requests.
For teams with data residency requirements, the Sidecar deploys inside your own VPC, keeping entitlement state within your infrastructure boundary.
Provisioning grants or revokes feature access in real time when a customer upgrades, downgrades, or when a contract is executed. Stale entitlement data creates support tickets. Real-time provisioning eliminates them.
For enterprise AI accounts with team-level credit allocations, provisioning means configuring the full org hierarchy immediately on contract execution: each team with its own credit pool, each agent with its own usage cap, each department with its own spend limit.
Manual provisioning processes fail at that cardinality. The Sidecar auto-scales with your infrastructure without engineering effort.
Feature gating controls what users see in the product based on their entitlements. Locking features rather than hiding them keeps upgrade signals visible and turns the gate itself into a conversion mechanism.
Gate logic often spreads across services, with checks in the API, frontend, and background jobs. When pricing changes, each location needs to be updated, which can produce inconsistent behavior where the UI blocks a user but the API still allows access.
With Stigg, gate checks return a structured response from a single enforcement layer. The getEntitlement response returns the feature's access status, usage limit, current usage, and whether the customer has unlimited access, so the frontend has everything it needs without extra calls or custom logic.
Monetization infrastructure directly affects how much engineering capacity goes toward product work versus keeping pricing logic from breaking.
Scattered monetization logic forces every plan, feature, or credit change through multiple teams at once. AI usage makes that problem worse, faster.
Features with real marginal costs like LLM tokens or compute time require metering at scale, credit limit enforcement, and overage prevention that most in-house systems were never designed for. The cost compounds over time:
Companies often reach a breaking point as pricing and product complexity grow.
An AI product that starts with a single plan and a simple feature set accumulates legacy tiers, grandfathered contracts, and usage-based components over time. Each one adds a new condition to the enforcement logic.
At enterprise scale, where millions of entitlement checks run daily across users, teams, org hierarchies, and concurrent agent sessions, enforcement has to resolve locally to avoid becoming a latency bottleneck. Systems built for a single product rarely scale cleanly to that level of complexity.
Modern monetization infrastructure separates three concerns that are commonly conflated.
Separating these three concerns lets each one change independently. Pricing experiments skip billing changes entirely, and billing migrations leave entitlement logic untouched. Each layer gets a clear boundary and a clear owner.
In many architectures, infrastructure like Stigg operates in the entitlements and metering layer, sitting between the product and the billing system. Stigg integrates with billing providers such as Stripe and Zuora and allows teams to change or migrate billing systems without rebuilding the entitlement logic that controls access inside the product.
Billing processes payments after a purchase decision. Monetization infrastructure controls everything that happens before and during product usage, enforcing what each customer purchased, metering consumption in real time, and managing the in-product experience.
The two systems work together by design. Most companies already have billing in place. Monetization infrastructure layers on top of the existing stack without replacing it.
Billing records what happened. The system that decides what should happen next is a different layer.
Stigg is the usage runtime for AI products. Entitlements, credits, usage limits, and spend governance run synchronously in the request path before compute is consumed, sitting above your existing billing stack without requiring any of it to change.
Metering tells you what happened, and Stigg decides what's allowed.
For engineering teams who need monetization infrastructure that holds under real load:
Most teams underestimate how much of their sprint capacity goes to keeping entitlement logic from breaking. If that pattern sounds familiar, see how Stigg’s infrastructure fits into your architecture and frees up engineering resources.
The main difference between monetization infrastructure and entitlement management is scope. Entitlement management is one component of monetization infrastructure, handling feature access and usage limits per plan. Monetization infrastructure is the broader system that includes entitlements, metering, the product catalog, provisioning, and enforcement working together.
Companies should invest in monetization infrastructure when pricing changes start requiring engineering deployments. Other clear signals include needing to rebuild metering from scratch to support credits or usage-based limits, or when each new plan tier demands custom logic across multiple services.
Building your own monetization infrastructure makes sense when requirements are simple and stable: a few feature flags, one pricing tier, no usage limits.
The calculus changes when adding a new pricing model means a new sprint, when marginal costs require reliable metering at scale, or when the system that took a week to build now has a dedicated maintainer.
Monetization infrastructure is typically owned by platform or infrastructure engineering teams, with input from product and finance. In mature organizations, a dedicated monetization engineering pod owns the layer, separating it from both core product development and billing operations.
Yes, modern monetization infrastructure supports both product-led and sales-led growth from a single product catalog. It acts as a unified source of truth for entitlements across self-serve and sales-contracted customers, eliminating the need for separate systems to handle each motion.