Put the OpenAI-compatible Macropay proxy in front of your models and every request is metered, priced and margin-tracked as it streams. Bill input and output tokens per model, net your provider cost, and ship a tax-compliant invoice — all on one ledger.
# point your SDK at the proxybase_url = "https://proxy.macropay.ai/v1"api_key = "mk_live_…"# tokens metered + billed as they streamclient.chat.completions.create( model="gpt-4o", customer="cus_8Xa2")
Generic billing tools weren't built for per-token economics, streaming responses, or netting model cost against revenue. Macropay was.
The proxy counts input and output tokens in real time — no post-hoc log parsing, no nightly reconciliation.
Attach your provider cost and see gross margin per model and per customer the instant the request completes.
Every invoice carries the right VAT/GST line for the buyer — we're the merchant of record, so you never file.
Per-token, per-request, per-image or per-second — with included allowances, tiered overage, prepaid credits and per-customer rates. Mark up the model, pass through at cost, or bundle into a plan.
The whole path — proxy, meter, price, margin, tax, payout — on one stack.
Point your SDK at the proxy and start billing tokens today. Flat 4.5% + $0.50, all-in.