Early access

TokenMargin by GPU Idle

Know what each user costs you.

TokenMargin reads your OpenAI and Anthropic usage, matches it to your Stripe or RevenueCat revenue and shows what every user costs you in tokens, and the margin on each paying one. Built for indie SaaS builders who ship with LLMs and want to find out before the invoice does.

Read-only keys. Nothing in your request path. No credit card for the waitlist.

How it works

From provider bill to margin per user.

Per-token prices come from the GPU Idle pricing engine, the same one behind GPU Radar, with the time each price was fetched.

  1. 01

    Connect OpenAI and Anthropic, read-only

    Add read-only admin keys for OpenAI and Anthropic. TokenMargin reads their cost and usage APIs and shows spend per project and per model from day one. The keys cannot create completions or change anything in your account.

  2. 02

    Tag usage with a tiny async helper

    Drop a small helper into your Node or Python backend. After each LLM call it sends user_id, feature and token counts to TokenMargin, fire-and-forget and never in your request path. That turns provider spend into cost per user and per feature. Skip the helper and you still get the full cost per project and model.

  3. 03

    Connect Stripe or RevenueCat

    Add a read-only Stripe restricted key or a RevenueCat key. TokenMargin matches each paying user to what they pay you and shows the margin per user, so you know who costs more than they bring in.

  4. 04

    Get alerted before the bill surprises you

    An alert fires when one user burns tokens far above their usual pattern, or when daily spend crosses a threshold you set. Email or Slack, with the user and feature that caused it.

MCP server · coming with launch

Ask Claude or Cursor how much each user costs you.

TokenMargin ships a remote MCP server, read-only and authenticated with your TokenMargin API key. Point Claude, Cursor or any MCP client at it and ask questions in plain words instead of opening a dashboard.

  • get_spend
  • cost_by_user
  • cost_by_feature
  • top_users
  • negative_margin_users
  • alerts

The MCP server arrives with the launch. Waitlist members get it first.

Illustrative example — not real data
you

Which paying users had negative margin last week, and which feature drove it?

assistant · negative_margin_users

Two paying users cost more than they paid last week:

  • user_123 · paid $X.XX, cost $Y.YY · driven by feature_a
  • user_456 · paid $X.XX, cost $Y.YY · driven by feature_b

Want me to list the models each feature used?

Pricing

Priced for a side project, not a finance team.

Early access — coming soon. Nothing to buy yet: every plan button puts you on the waitlist.

Free

Coming soon

$0 per month

See what one provider costs you.

  • 1 provider (OpenAI or Anthropic)
  • 7 days of history
  • Cost per project and model
  • No alerts
Join the waitlist

Indie

Coming soon

$19 per month

Cost and margin per user for a small SaaS.

  • OpenAI + Anthropic
  • Stripe or RevenueCat
  • Alerts (email, Slack)
  • MCP server
  • 90 days of history
Join the waitlist

Pro

Coming soon

$49 per month

For products with real traffic.

  • Everything in Indie
  • Up to 100k events per day
  • Unlimited history
  • CSV export
  • MCP server
Join the waitlist

Waitlist

Get in before launch.

Tell us what you run and we’ll email you when your spot opens. Early-access members shape the helper, the alerts and the MCP tools.

Providers you use Optional
Billing source Optional

No spam. One email when your spot opens, and you can reply to it.

FAQ

Questions builders ask first.

Anything else? Join the waitlist and reply to the confirmation email.

Which keys do you ask for, and why are they read-only?

An OpenAI admin key and an Anthropic admin key scoped to usage and cost reporting, plus a Stripe restricted key with read access to customers and subscriptions (or a RevenueCat key). Each one can only read billing data; none can create completions, charge a customer or change your account. Credentials are stored encrypted and never reach the browser.

Does the helper add latency to my app?

No. The helper sends its event after your LLM call returns, asynchronously and fire-and-forget. It is never awaited in your request path, and if TokenMargin is unreachable the event is dropped and your app does not notice.

What do I see without the helper?

Everything the provider cost and usage APIs expose: spend per project, per model and per day, and alerts on daily spend. Cost per user and per feature need the helper, because only your code knows which user made the call.

Where do the token prices come from?

From the GPU Idle pricing engine, which tracks the published per-token prices of each provider and model with the time each one was fetched. Where a provider reports cost directly, that figure is used as-is.

Does my prompt or output text leave my app?

No. The helper sends user_id, feature and token counts only. TokenMargin never sees prompts, completions or customer names beyond the IDs you send.