Usage Billing Review

Kill Bill for Usage-Based Billing

Kill Bill bills usage well, but real-time metering becomes your burden.

· 8 min read
Cover illustration for “Kill Bill for Usage-Based Billing”
Open-Source Billing Tools · December 5, 2026 · 8 min read · 1,803 words

Kill Bill for usage-based billing is an architecture decision. Its open-source subscription engine can bill recorded usage, but extending it for real-time, multidimensional consumption pricing creates a lasting engineering obligation. Teams must weigh whether owning that infrastructure serves the product or steadily takes resources away from it.

Why Kill Bill was built for subscriptions, not for consumption

Kill Bill is an open-source subscription billing and payments platform built around plan management, renewals, and invoicing. Its core model works well for recurring charges, where the subscription sets what a customer owes and the billing cycle sets when payment is due. That was a sound design for flat-rate and per-seat SaaS pricing. Billing could follow a predictable schedule without needing to continuously interpret consumption.

That does not make Kill Bill a batch-only system. Kill Bill’s official solutions page describes an event-driven platform that generates invoices when subscriptions start or change, as well as on billing dates. It also supports usage priced in tiers or blocks, recorded through an API, and billed in arrears. Recording billable usage is different from collecting raw events and pricing them continuously across the interacting dimensions of an AI product.

What usage-based billing actually requires at the architecture level

Diagram: The Three Layers of Usage-Based Billing. Visualizes: Show the three interdependent systems that make up usage-based billing — Metering, Rating, and Billing — as a stepped flow or layered pipeline.

Usage-based billing comprises three interdependent systems, namely metering, rating, and billing. Each has different latency tolerances and failure modes. Metering establishes what happened, rating applies the commercial agreement, and billing turns the result into an amount owed. Those boundaries are essential to the design. An invoice can be generated on schedule even while the usage feeding it is incomplete or incorrectly priced.

The metering layer must ingest events from multiple sources with at-least-once durability, because missing events mean missing revenue. That delivery model also means duplicates will arrive, so downstream consumers must handle them idempotently to prevent double charges. Late events require explicit treatment. Usage can arrive outside the order or billing period in which it occurred, and corrected data must support recalculation without manual invoice rework. These are normal operating conditions.

Rating then applies rules to aggregated usage, including volume discounts, prepaid credits, commitments, and per-feature prices. Simple multiplication is not enough. When tokens, GPU-minutes, model tier, region, and priority affect the charge together, pricing becomes a configuration system with interacting rules. A production streaming architecture therefore uses ingestion through Kafka or Kinesis, stream processing for deduplication and aggregation, hot storage for live quotas, and cold storage for historical analysis. Customer dashboards, predictive burn alerts, and automated throttles depend on that timely usage state.

Where Kill Bill's architecture breaks under metered and AI pricing loads

Kill Bill’s official API documentation states that it is not designed to be a metering system and expects usage summaries recorded daily. That defines the architectural boundary. Its event-driven subscription model does not provide the ingestion, deduplication, and rating pipeline required for high-volume usage at millisecond speeds. Teams that extend the open-source platform must build that layer themselves because the usage API does not replace it. Native real-time quota enforcement likewise does not follow from storing usage records and billing them in arrears.

Simple tiers are manageable, but matrix pricing across model tier, region, priority, credit drawdown, overages, ramp schedules, and mid-cycle amendments requires a contract engine that the plugin model does not express cleanly. Kill Bill’s official pages distinguish open-source account credits, applied to subsequent invoices, from Aviate Wallet in its enterprise offering. The wallet supports a single balance per account in a single currency, rather than separate pools for each pricing dimension.

Late data also has defined limits. Kill Bill’s subscription guide states that late usage older than the past two periods is ignored, while deleting past usage within those periods causes an invoicing error. Those semantics differ from a general correction-and-recalculation pipeline. For a product charging across tokens, GPU-minutes, audio minutes, and hardware tiers, closing these gaps means building infrastructure around the engine. They are consequences of its scope.

Why teams discover these limits later than expected — and why that timing is costly

Kill Bill handles the subscription layer, with a plugin able to accommodate the first usage dimension. Early success is therefore a poor test of the eventual workload. The second or third dimension introduces interactions that the first implementation did not need to resolve. Adding a credit wallet and a committed-spend contract with overages and a ramp schedule changes the nature of the project, after the team has already committed to it.

Commercial demands make that transition harder to manage. Vercel shows how quickly pricing can change, while a custom billing system can need an engineering deployment for each change. Pricing then competes for sprint capacity. A change that looks small to a commercial team can touch several parts of the system because it interacts with existing dimensions. Those interactions slow changes and increase upkeep beyond what the team first estimated it would take to build.

Finance introduces a later wave of requirements. For hybrid subscriptions, usage, credits, and committed spend, ASC 606 requires allocating transaction price across performance obligations and recognizing revenue as those obligations are satisfied. If the billing infrastructure does not support that work, finance must reconcile it in spreadsheets. By then, months of engineering investment can distort the decision. Continuing feels like protecting that investment, even though the relevant comparison is the future work of extending the system against the future work of migrating it.

The true cost of owning Kill Bill for usage-based pricing

Kill Bill’s official pricing page specifies no license fee or per-transaction fee under the Apache 2.0 license. For consumption pricing, the costs come from owning, upgrading, and debugging the infrastructure around it. Every code-dependent pricing change consumes engineering capacity, while each additional dimension expands the combinations that require testing. The burden persists after the initial launch.

The same obligation extends to financial operations. Where the implementation lacks the required ASC 606 automation, multi-currency support, enterprise ERP connectors, or dunning at scale, the team must build or maintain the missing integration. Infrastructure has its own cost curve. At high event volumes, the cost of unoptimized storage can rise faster than the business grows, so engineers must work on batching and pipeline design to keep costs down. Teams need to make those choices even before they count the cost of engineering time.

Customers who cannot see current consumption can encounter bill shock, generating support work and contributing to churn. Those consequences may never be attributed to the original billing decision. AI infrastructure companies that follow the build-the-meter, buy-the-biller pattern split the work differently: they keep measurement specific to their product in-house and buy invoicing and plan management. Extending Kill Bill to meter, rate, and bill usage requires a team to own work across that boundary.

When building on Kill Bill is legitimate versus when it becomes a liability

Building on Kill Bill is defensible when billing infrastructure is itself the product, as it is for payments companies and billing vendors. In that setting, metering and invoicing can be core intellectual property. Slow-moving, single-dimensional pricing is another legitimate fit because the complexity inflection point may never arrive. Dedicated billing engineers also change the calculation. Their work need not compete directly with the product roadmap.

Deployment constraints can independently justify the choice. Kill Bill’s official overview describes self-hosted deployment on premises or in a company’s cloud, which can satisfy requirements that preclude cloud-hosted billing platforms. Data residency is a substantive constraint. A team that has that requirement, keeps pricing stable, and can keep up with billing work has a sound reason to use open source. Even without a license fee, the case rests on its actual operating profile.

The balance shifts when pricing dimensions keep growing and commercial changes move faster than engineering can deploy. Teams also have to meet finance requirements and enterprise demands to see spend in real-time. Each requirement needs support that lasts in production after the first version works. A team considering extension should therefore assess its pricing trajectory and staffing honestly. Even when its engineers can build the system, a team should choose billing infrastructure work only if that is where they create the most value.

What purpose-built usage billing infrastructure handles that Kill Bill cannot

Usage billing infrastructure built for consumption brings metering and billing into one system while keeping their jobs separate. Native real-time ingestion removes the need to construct a separate streaming pipeline in front of a subscription engine. The rating model is equally important. It represents tokens, GPU-minutes, audio minutes, model tiers, and hardware tiers together, rather than leaving each interaction to custom plugin code. This is the relevant architectural fit for AI companies, developer-tool companies, and enterprise SaaS businesses with multidimensional pricing.

A unified engine can also support prepaid wallets and postpaid invoicing together. Product and finance teams can change pricing rules that the system supports without an engineering deployment for each change. That changes the operational dependency. Spend dashboards and budget alerts show customers the cost of their current consumption before an invoice arrives. These capabilities address the gap between recording usage for later billing and making that usage available for decisions during the billing period.

Infrastructure built for this work can timestamp usage to accounting periods, track deferred revenue for each credit, and support ASC 606 alignment without the need to reconcile spreadsheets at month-end. Where on-premises and sovereign cloud options are offered, they can meet requirements for where data is kept. API quality deserves equal scrutiny. Clean ingestion APIs and SDKs should let developers buy the abstraction layer they need and spare them custom work at another boundary.

How teams migrate from Kill Bill to usage-aware billing infrastructure without breaking production

Diagram: Migration Sequence: Kill Bill to Usage-Aware Infrastructure. Visualizes: Illustrate the four-phase migration sequence described in the article as a horizontal timeline or numbered step flow: (1) Onboard new customers and new pricing models…

Start new customers and new pricing models on the new system while existing customers stay on Kill Bill until renewal. This limits disruption to current contracts. Keep grandfathered terms through per-customer price versioning so customers can move to the new infrastructure with their prices unchanged mid-contract. New infrastructure and new commercial terms are separate decisions.

Treat metering and invoice generation as separate migration steps. The ingestion pipeline can move first, sending the same events to both systems while the team establishes event parity. Validate totals against identical inputs, including duplicates and late arrivals. Then run a parallel billing period covering at least one full billing cycle, with both systems producing invoices for the cohort under comparison. Differences can be reconciled before invoice generation cuts over.

The final checks should cover event counts, money, and accounting. For a representative customer sample, invoices should match to the cent during the parallel period. Revenue recognition must put usage in the right accounting period and handle mid-cycle plan changes in line with finance’s model. Customer communication has a separate timetable. If pricing models will change, communicate those changes months before the invoices arrive so customers know how their terms will change when the infrastructure moves.

More in Open-Source Billing Tools