
Customer Stories
How 1NCE scaled global IoT billing with Lago
Finn Lobsien • 2 min read
Jun 13, 2025
/3 min read

Charging for an API is different than billing for most SaaS solutions. APIs typically charge based on usage because they're ingredients to their customers' products. There's also a massive difference in how people use APIs, so charging everyone the same wouldn't make sense (and wouldn't cover costs).
That's why APIs usually charge per call, per database row or some other usage-based metric. The umbrella term for this is consumption-based pricing.
While it's easy to decide on usage-based billing, the system itself is hard to build. Billing platforms such as Lago ingest up to 15 000 events per second and expose every meter via API, so you can roll out UBB without reinventing the wheel.
Let's dive into how to build usage-based API billing architecture:
Accurate billing starts with bullet-proof metering.
Skip the plumbing: Lago ships these layers out-of-the-box and supports hybrid models (subscription + usage) as well as prepaid credits. Book a quick demo to see it in action.
Pick a metric customers instantly understand and can control.
Popular metrics include API requests, LLM tokens, minutes, GB processed, compute-seconds.
Decision hinges on complexity, control, and opportunity cost.
If compliance or data residency matters, Lago’s VPC deployment keeps everything inside your own cloud.
We've written before that billing is a nightmare for engineers. There are a ton of issues that make the billing system a major bottleneck that consumes 12 engineers. That's because billing looks easy to build, but is actually difficult. The individual parts (event capture, PDF generation, etc.) are easy, but once you need to reconcile different tax regions, invoice regulations, billing cycles and dozens of other edge cases, the complexity becomes too hard to manage.
Most UBB headaches come from edge cases.
Lago’s spending limit and alert webhooks help you prevent “surprise” invoices before they happen.
Ready to modernize your billing? Book a 15-minute demo with Lago or spin up the open-source repo on GitHub.