Customer margins “What does Nimbus cost me?”

Which customers
lose you money.

What each customer costs against what they pay. Every AI call gets a price, an owner and a place in that customer's month.

Free up to 1M events a month. No card.

One call

Follow one call
to a customer's month.

Providers' bills don't say which of your customers a call was for. You add that at the call.

RequestsDemo data
Requestsreq_7f3a91
OpenAIgpt-4o1,204 in312 out$0.006130
1,204 × $2.50 per 1M + 312 × $10.00 per 1M
customerNimbus Logisticsfeatureticket-classificationteamplatform-eng
CustomersNimbus Logistics, this month
Requests7,938
Cost to serve$4,986.04
Margin−$1,640.12 to −$1,490.17
Cost against revenueLosing money
The month

Every customer, revenue
against cost to serve.

A customer appears as soon as usage tagged with its reference arrives. There is no list to create first.

Customers: revenue against cost to serve for every customerCustomers: revenue against cost to serve for every customer
Every customer, revenue against cost to serve. Where coverage has a gap, margin is shown as a range. Demo data
How sure the figure is

A margin that says
how far to trust it.

Margin is revenue minus the customer's AI cost for the month. Your metered cost is compared with your providers' bills, and the margin is labelled with one of three states.

Confirmed

One figure.

Billing was reconciled for the month, and metered cost is within 2% of the bill.

A range

Two ends.

Metered cost and the bill differ by more than 2%. One end assumes none of the gap is this customer's, the other that all of it is.

Not yet reconciled

One figure, never called confirmed.

No reconciliation has run for the month, or the metered and billed totals are too far apart to compare.

The gap is measured once for the whole workspace, as metered cost against billed cost for the month, and applied to every customer the same way. How the invoice check works →
Set up

Tag once.
Every call inside follows.

01Wrap your AI client.

Works in TypeScript and Python. Usage is reported in the background.

02Say who each call is for.

Name the customer and feature once. Every call inside gets that tag.

03Enter what the customer pays.

Revenue is one number per customer per month, in USD. Type it for one customer, or import rows for many at once. It is not read from a billing system.

Start free →Read the quickstart
import OpenAI from "openai";
import { TokenMeterClient, wrapOpenAI, action } from "@tokenmeter/sdk";

const tl = new TokenMeterClient({ apiKey: process.env.TOKEN_METER_KEY! });
const openai = wrapOpenAI(new OpenAI(), tl);

await action("generate-report", { customerRef: "acme", feature: "reports" }, async () => {
  await openai.chat.completions.create({ model: "gpt-4o-mini", messages });
  // tagged customer_ref=acme, feature=reports
});
usage captured, gpt-4o-mini, 1,204 tokens, $0.0004, customer_ref=acme
Pick an id, not an email. Use an opaque id from your own system for the customer reference, such as acme or cus_1042. A value that contains an email address, a phone number, a card number or something that looks like an API key is stored as a keyed pseudonym, never as sent.
In the app

From one request
to the whole month.

The same tags that fill the customer's month also split spend by feature and team, and show which calls are missing an owner.

On each customer's own pageCost trendNewest requestsTop actionsRevenue historyDemo data
FAQ

Customer margins,
in short.

Tags, revenue and margin are covered step by step in the docs.

Customers docs →
01Do my calls go through your servers?

No. The SDK wraps the client you already use, reads usage from the response it returns and ships it in the background. The router is a separate choice, for when you want routing, fallbacks and caching.

02Where does revenue come from?

You enter it. Revenue is one number per customer per month, in USD: what you charge the customer. Type it on the customer's page, or import rows of customer reference, month and revenue for many customers at once.

03Why is a margin shown as a range?

Because metered cost and the provider's bill differ by more than 2% for that month. One end of the range assumes none of the gap belongs to this customer, the other that all of it does.

04What about calls with no customer tag?

Usage without a customer still counts in every other total. It just isn't listed under a customer. Data health shows which calls are missing a customer, a feature or a price.

Know who spent it
this week.

Free up to 1M events a month. No card.