Macropay
Products
Billing
Usage-based billingSubscriptionsSeats & licensesCredits & walletsTrialsDiscounts
Payments
Payments & checkoutPayouts & coverage
Compliance
Merchant of RecordTax & VATDisputes & fraud
Intelligence
Margin & cost insightsAgents & MCP billingRevenue analytics
Solutions
By AI model
AI Inference & modelsAI agents & copilotsAPIs & usage products
By business
SaaS & subscriptionsDev tools & GitHub appsDigital goodsMarketplaces & platforms
PricingCoveragevs StripeJournalDocsStart free
IntelligenceRevenue minus the true cost of serving it.

Live margin
per agent, per model.

Macropay nets your inference and infrastructure cost against revenue on the same ledger that bills it — so you see gross margin per agent, per model, per customer in real time. Spot the freeloader on Claude Opus before they cost you payroll.

Real-time gross marginPer agent · model · customerLTV & CAC built in
app.macropay.ai / insights / margin
BLENDED GROSS MARGIN
62.4%
▲ 3.2pp / 7d
AgentRevenueCostMargin
research-pro$84.2k$22.1k73.7%
voice-agent$41.0k$19.8k51.7%
vision-tag$28.4k$12.0k57.7%
opus-chat$9.1k$11.4k−25.3%
Watching margin for
Sonnet LabsVectorlyParserNorthwind AIGlyphRelay
Why it's different

Margin needs
both sides.

Billing tools know your revenue. Observability tools know your cost. Macropay is the only ledger that holds both on one primitive — so the subtraction is real, not a spreadsheet guess.

01 / COST IN

Pipe in your true cost.

Attach provider cost to every metered event — model token prices, GPU-minute rates, third-party tool fees. Macropay carries it alongside the revenue line for that same event.

  • Per-model cost tables for OpenAI, Anthropic, Google, self-hosted
  • Infra & tool costs allocated per agent
  • Updates as your provider pricing changes
cost.ts
await macropay.cost({ event:    "gpt-4o.out", unit:     "1K_tokens", provider: "openai", amount:   0.0100   // your cost});
02 / MARGIN OUT

Slice it any way you run.

Group margin by agent, model, customer, plan or cohort. Filter to a single account to see exactly who's profitable and who's burning your inference budget.

  • Gross margin per agent, model and customer
  • LTV, CAC and payback on the same data
  • Alerts when an account flips negative
research
voice
vision
−25%
opus
Impact

Decisions you
couldn't see before.

Teams cut their worst-margin cohorts and reprice freeloaders within a week of switching on insights.

+8pp
Median margin lift, 90 days
Real-time
Cost-to-revenue netting
1
Ledger for both sides
Dimensions to slice
Use it to

Run AI like a
business.

Margin telemetry turns gut-feel pricing into evidence.

Pricing

Price to protect margin

See the real cost of a plan before you ship it, and reprice tiers that quietly lose money.

Product

Find the costly feature

Attribute inference spend to the agent or feature driving it — and decide what's worth keeping.

Finance

Forecast with confidence

Gross margin, LTV and CAC on live billing data, not a month-old export.

Sales

Spot the freeloader

Flag accounts whose usage outruns their plan before renewal, and act on it.

Leadership

One number, trusted

Blended gross margin everyone agrees on, because it's computed where the money moves.

Investors

Defensible unit economics

Show per-agent margin and payback straight from the ledger in your next update.

Questions

Margin, answered.

How do you know my real cost?
You attach cost to events — per-model token prices, GPU-minute rates, tool fees — via the SDK or cost tables. We carry that cost on the same ledger entry as the revenue, so margin is an exact subtraction, not an estimate.
Is margin really real-time?
Yes. Because billing and cost share one ledger, margin updates as events stream in — the same sub-second pipeline that powers usage billing.
Can I see margin for one customer?
Down to a single account, agent or model — and you can set alerts that fire when any of them crosses into negative margin.
Do I need the billing product to use insights?
Insights is built on the billing ledger, so it works best when Macropay meters your usage. If you bill elsewhere today, our team will help you migrate — it's free. See metering →

See the margin
under your revenue.

Flat 4.5% + $0.50, all-in. Billing and insights on one ledger from day one.