
Pricing & Monetization
Lago vs Togai: Which Usage-Based Billing Platform Fits Your Stack?
Anh-Tho Chuong•Aug 24•4 min read
When launching new products, experimenting with pricing models, or adopting usage-based pricing, AI, SaaS, and tech companies face a critical decision: build a usage-based billing system in-house, or buy an existing one? The decision shapes time-to-cash, engineering resources, and how well the system scales, and teams replacing legacy systems face the same build-or-buy question during migration.
Usage-based pricing is one of the few technical decisions with a direct, tangible line to revenue, which is exactly why this choice deserves more rigor than "let's just build it."
If Stripe Billing specifically is the alternative on the table, see how it stacks up before deciding whether to buy at all.
Speed. Transitioning to usage-based pricing can take up to a year end to end, once you count service order changes, billing system work, pricing page updates, and getting support and sales teams trained. A purchased platform compresses that into hours or weeks rather than months, which matters directly for revenue recognition and how fast new customers can onboard.
Infrastructure that's already built. Usage-based billing needs precise, real-time data collection. Wiring that into existing systems takes real engineering effort, and errors in data collection translate directly into inaccurate bills. A specialized platform gives you that infrastructure on day one instead of building and testing it yourself.
Scale that's already proven. Legacy billing systems and manual processes tend to break down as customer volume and usage complexity grow. A flexible billing system built for usage-based pricing comes with the reporting, pricing configuration, and integrations that scale requires, rather than bolting them on after the fact.
Buying means adapting to a vendor's feature timeline instead of your own, and it can complicate data governance once customer billing information lives in a third-party system. External support dependencies can also become a bottleneck during a critical billing period, one more reason open-source options are worth weighing against fully closed platforms.
Full customization. In-house development means no ceiling on how specific your pricing models or business logic can get. If you do decide to build, here's a practical approach. Engineering teams often want this specifically because they don't want to be boxed in by what a SaaS product decided to support, and can build something that fits their existing stack exactly.
Cost at scale. At very high transaction volumes, an internal system can lower per-transaction cost over time, but that only pays off after a large upfront investment and against real, ongoing maintenance.
Full ownership of the customer experience. Enterprise customers in particular sometimes need billing interactions that don't route through a third party. It's worth weighing that against alternatives to Zuora before committing to building from scratch.
The cost is bigger than the invoice you'll write. Custom billing software development runs $45,000 to $350,000 or more, and that's before ongoing maintenance. Even after the initial build, choosing the right billing model for your customer base takes real time and iteration.
Compliance is a standing cost most estimates skip. The moment billing infrastructure touches payment data or personal information, it inherits SOC 2, PCI DSS, and GDPR obligations, whether you build or buy. Buying means your vendor owns that audit evidence. Building means your team does, indefinitely.
Maintenance never really ends. Accurately tracking and measuring usage requires ongoing investment in metering technology, and keeping that data accurate and transparent is what maintains customer trust. Doing it manually is slow and error-prone at any real scale.
The architecture has to hold up. Real-time usage monitoring, tracking, and billing puts real demands on existing infrastructure. Before building, it's worth mapping out every system involved in data collection, processing, and billing, and being honest about where the gaps are.
Whether you build or buy, three components have to work together: metering (tracking usage through software, sensors, or manual input), rating (converting that usage into monetary value via predetermined rates), and invoicing (billing customers for defined periods, with charges broken down accordingly). Getting real-time, accurate data collection right is the hardest part of all three, and it's the piece most build estimates underrate.
Business outcomes to weigh:
Technical criteria to weigh:
A quick checklist:
Lago doesn't force the build-or-buy choice, it's an open-source billing platform that gives you the deployment speed of buying with the customization rights of building.
Deploy in hours, not months. Lago's setup time is measured in hours, and the event ingestion layer guarantees exactly-once processing: if the same event arrives twice, even across different delivery methods like REST and Kafka, only the first is billed. That's enterprise-grade reliability without the months of testing it usually takes to earn.
Every pricing model, one platform. Subscriptions, usage-based charges, and hybrid models are all handled natively: subscription fees can bill at the start or end of a period, usage-based charges calculate automatically at period end, and hybrid plans combine both without custom logic on your end.
Granular by default. Every customer action or periodic signal can become an event, and Lago's aggregation layer turns those events into billable metrics at the highest level of granularity available.
Built for engineering teams. A JSON HTTP API and client libraries across languages mean integration doesn't require adopting Lago's opinions about your stack. Full API docs, an OpenAPI spec, and pricing model templates are there to shorten the path from decision to production.
Deploy where your data needs to live. Self-hosted deployment puts Lago on your own infrastructure when data sovereignty matters, or you can start immediately on Lago Cloud. Either way, the open-source core means no lock-in: Lago doesn't nudge you toward specific tools in exchange for using the API.
For teams weighing what actually matters in a billing system — technical complexity, compliance, and revenue impact all included — an open-source platform removes the false choice between speed and control.
Is it cheaper to build or buy usage-based billing? Buying is almost always cheaper upfront. Custom development runs $45,000 to $350,000+, before ongoing maintenance. Building only pays off long-term at very high transaction volumes, and only if that engineering time isn't better spent on your core product.
How long does it take to build a usage-based billing system from scratch? Longer than most teams expect. Metering, rating, and invoicing each take real engineering time on their own, and a full transition to usage-based pricing, including sales and support process changes, commonly takes several months to a year.
Does buying usage-based billing mean giving up customization? Not necessarily. Closed-source vendors do bound you to their roadmap, but an open-source platform like Lago gives you the deployment speed of buying with the modification rights of building.
What compliance requirements apply either way? SOC 2, PCI DSS, and GDPR apply regardless of whether you build or buy, since they're triggered by handling payment and personal data, not by who wrote the code. The real difference is who owns proving compliance: your team, or your vendor.
Ready to implement usage-based billing without the development complexity? Explore Lago's platform, check the documentation for integration details, or look at pricing model templates to see how other companies structure usage-based billing.
For the more technical, architecture-level version of this question — metering patterns, how the Stripe-Metronome acquisition changed the market, and where entitlements fit — see Usage-Based Billing System: Build It or Buy It?