TensorCost TensorCost
Customer margins

Know what each customer costs you, and stop the ones that cost more than they pay.

If you sell an AI product, inference is cost of goods. TensorCost sets each customer’s AI cost, counted once and matched to your bill, against what that customer pays you, and holds a margin floor or a fixed limit at the call.

How it works

Calls carry a customer id. The bill supplies the total. You send the revenue, and we never hold a key to your billing system.

  • check_circleCost per customer, reconciled — each customer’s share of metered calls, applied to what the provider actually billed that day. Discounts, credits and marketplace pricing reach the per-customer number.
  • check_circleRevenue in — each customer’s monthly revenue, sent as a signed request from your billing system, a script or Zapier, or uploaded as a CSV. It works whatever you bill with: Stripe, Chargebee, an ERP or a spreadsheet. The secret that signs it can’t read anything back.
  • check_circleMargin per customer per month — revenue minus counted cost. Untagged spend is its own line, and the page shows how much of the spend is tagged.
  • check_circleA margin floor — for teams that share revenue. One rule for every customer, such as “keep 40%”. Each customer’s limit follows from what they pay you. A hard-capped floor refuses the next call; a soft-capped floor warns.
  • check_circleNo revenue to share? A fixed limit — one rule such as “each customer, $500 a month”. Set it as a hard cap and the next call after a customer reaches it is refused. As a soft cap it warns, and as an alert it only notifies you.
  • check_circleUsage out — your billing system pulls each customer’s daily AI cost and tokens with a read-only usage key that opens that one read and nothing else. Each day is marked once it’s settled, so you can bill from figures that won’t move.

At the floor

Step down first. Refuse at the floor.

Near its floor, and only if you’ve turned on live routing and have a proven cheaper model, a customer’s traffic moves to that model. Otherwise the traffic keeps going until the floor. At the floor, a hard cap refuses the next call and a soft cap warns.

admit · customer northwind
CUSTOMERSNorthwindContosoFabrikamLitwareTailspinclaude-sonnetclaude-haikugpt-4ogpt-4o-miniMODELSNOTHING STOPS ITone customer’s usage eats the margin on their contractmargin 18% this monthfound on invoice daynothing to refuse withcustomer id at the call siteCHECK · BEFORE THE CALLAFTERAdmitMargin floorRouterLedgerMarginSettled usagemargin held at 40%stepped down at 45%refused at the floorCUSTOMERSNorthwindContosoFabrikam+2 moreclaude-sonnetclaude-haikugpt-4o+1 moreMODELSNOTHING STOPS ITfound on invoice dayCHECK · BEFORE THE CALLAdmitMargin floorRouterAFTERLedgerMarginSettled usagestepped down at 45%
  • Near the floor: the cheaper model the judge already passed
  • At the floor, on a hard cap: the next call is refused

Customers and figures are illustrative.

What we do and what your billing system does

Billing isn’t our job. Your billing system sends us revenue and takes usage from us. We never hold a key to it.

Your billing system
TensorCost
Your billing systemDecides what to charge each customer.
TensorCostCounts what each customer cost you in AI, matched to the provider’s bill.
Your billing systemSends each customer’s monthly revenue, signed, or as a CSV.
TensorCostTakes it on a path that only accepts revenue. Nothing on it can read your data back.
Your billing systemPulls usage and turns it into invoice lines on your prices.
TensorCostAnswers with each customer’s daily cost and tokens, through a read-only key that opens nothing else. Settled days are marked.
Your billing systemCreates the invoices and collects the money.
TensorCostNever creates an invoice or takes a payment. TensorCost never holds a credential to your billing, CRM or payment system.

Questions people ask

Find out which customers lose you money.

Tag your calls with a customer, then send revenue or upload a CSV. The margin page fills in from there, and nothing needs a key to your billing system.