AI & SaaS

Usage metering for AI and SaaS companies
billed per token, per model

Your costs are per token and your pricing is not

What this usually looks like

If none of these is your problem, we are probably not what you need — and we would rather you found that out here.

Your costs are per token and your pricing is not

The model provider bills you per thousand input tokens and per thousand output tokens, at different rates per model. If your own pricing is a flat monthly fee, your margin moves every time a customer changes how they prompt — and you find out at the end of the month.

Fractions of a penny do not survive floating point

At £0.000012 per token, naive float arithmetic drifts. Multiply that across tens of millions of tokens and the total on your invoice stops matching the total in your database, which is the kind of discrepancy that costs you a customer's trust rather than a rounding error.

Customers ask what they were charged for

"Why is this month £400 more?" is a support ticket you cannot answer from an aggregate. You need the events, per model, per direction, and the rate that applied at the time.

Metering built in-house is never finished

It starts as a counter in Redis. Then it needs deduplication, late events, retries, a plan that changes mid-month, and an audit trail. It becomes a permanent claim on an engineer.

Recommended: Python or Node.js SDK

One call in your service, per request.

The Python and Node SDKs handle auth, batching and retries, and survive a restart without losing usage. Send a token count with the model and direction as properties, and the rating engine matches on the model name — the same engine that does telecom prefixes, using a different property.

Read the setup docs

Event types you would send

Event types and matched properties for AI & SaaS
Event typeUnitMatched onExample
tokenstokensproperties.modelatlas-large
api_callrequestsproperties.endpoint/v1/verify
customseatsproperties.planteam

What you would see

Sample AI workload for a fictional customer, with input and output tokens rated per model.

Nebula Labs

Live

Month to date

£38,863.54

Events

7,345,209

Busiest day

£2,264.82

Usage this week

Spend by type

  • Voice call42.1%
  • SMS24.6%
  • Data18.7%

Sample data for a fictional ai & saas business · 75M units metered this month

Click around the full version in the sandbox — no signup, no card.

AI & SaaS questions

Can I rate input and output tokens differently?
Yes. Send the direction as a property and give each model two tariff lines. They are separate rates on the same plan version, so a statement shows both.
How do you avoid rounding errors at fractions of a penny?
Money maths is fixed-point end to end, with banker's rounding applied once at the final amount and never on intermediate values. Rates are stored as decimal strings, not floats.
What if a customer's usage spikes overnight?
A spend-anomaly alert tells you in pounds, not as a threshold breach — and each account carries an end-of-month forecast, so a spike is a conversation on the 12th rather than a surprise on the 1st.
Can I show usage to my own customers?
Today you can export it or query it. A white-labelled customer portal is on the roadmap; we are not going to pretend it ships now.

See it on your own ai & saas usage.

One command, or one call from the system you already run. The sandbox is open if you would rather look first.