Skip to content
MarginMeter

Anthropic Claude API cost tracking by model

Connect Anthropic to MarginMeter with an admin key to track daily Claude API cost by workspace and model alongside Stripe revenue and gross margin.

If your product calls Claude, your cost of goods sold moves with every token. MarginMeter imports Anthropic's daily cost report by workspace and model and shows it as part of your gross margin.

What you get

  • Daily Claude API cost by workspace and model.
  • A clear view of how much of each revenue dollar goes to AI.
  • Alerts when spend spikes, with the model that drove it.

Setup

Create an admin key in the Claude Console under organization settings and paste it into MarginMeter. The key is encrypted with AWS KMS and used only by background workers to read cost reports.

Known limitations

  • The Admin API is only available for organization accounts.
  • Priority Tier costs are not included in the cost report.
  • Claude.ai and Claude Code subscriptions are separate and not included.

Frequently asked questions

Do I need an organization account?

Yes. Anthropic's Admin API — which provides the cost report — is available to organization accounts in the Claude Console.

Are Claude.ai subscriptions included?

No. Claude.ai and Claude Code subscriptions are billed separately and are not part of the API cost report. Add them as manual costs if they are part of serving customers.

See your real margin in five minutes.

Connect Stripe and your cost providers with read-only access. Free for two connections — no card required.