Know your AI costs
per customer

Track cost per customer, per feature, per tier. Built for B2B SaaS companies spending $5k+/month on AI.

A preview of the PerUnit AI cost analytics dashboard

The Problem

You only see the total AI invoice

Most teams see a single OpenAI or Anthropic bill each month. They know they're spending real money on AI, but not which customers, features, or pricing tiers are driving that cost.

You're spending $12,000/month on OpenAI but have no idea:

Which specific customers are the most expensive to serve.

Whether free-tier users are burning more credits than paid users.

Which AI features (chatbot, email writer, analytics, etc.) are driving 80% of your cost.

How AI costs compare to the revenue you collect from each account.

What PerUnit shows you

Turn AI invoices into unit economics

PerUnit gives you a real-time view of AI spend per customer, per feature, and per pricing tier so you can make clear, defensible product and pricing decisions.

Cost per customer

See exactly how much each account costs you in AI usage, broken down by workspace or tenant.

Cost by pricing tier

Understand if free, Pro, or Enterprise plans are actually profitable once AI costs are included.

Cost by feature

Attribute spend to each AI feature so you know what to gate, bundle, or deprecate.

Revenue vs. AI cost

Connect Stripe revenue to AI spend so you can see margins by customer, tier, and feature.

Built for B2B SaaS

A global view of
your AI economics

Cost by region

See how AI spend is distributed across regions, tenants, or workspaces at a glance.

High-value accounts

Quickly surface customers with healthy margins and those that quietly burn through credits.

Usage patterns

Spot spikes, heavy features, and emerging usage so you can adjust pricing before costs explode.

Developer-first

Instrument AI usage in minutes

Send AI usage and cost events to PerUnit from your app or data warehouse using simple, strongly-typed SDKs—no custom metering platform required.

import { perunit } from "@perunit/sdk";

// Called whenever an AI request is made
await perunit.trackUsage({
  customerId: "acct_123",
  feature: "chat-assistant",
  tier: "pro",
  provider: "openai",
  model: "gpt-4.1",
  tokensInput: 824,
  tokensOutput: 1932,
  metadata: {
    workspaceId: "workspace_45",
    messageId: "msg_987",
  },
});
Drop-in SDKs
Client and server SDKs designed for modern B2B SaaS stacks, from Next.js to background workers.
Plug into billing
Connect Stripe and your data warehouse to tie AI spend directly to revenue and accounts.
Pre-built integrations
Bring in usage from OpenAI, Anthropic, and more without managing brittle custom scripts.
Security & privacy
Built with B2B security in mind—PII aware data models and clear data ownership boundaries.
Unit economics at a glance

Numbers your finance team can trust

PerUnit connects your AI providers and billing data to give you an always-on view of AI economics—so product, finance, and leadership are finally looking at the same numbers.

95%
Spend attributed
< 1 week
Time to clarity
Up to 40%
Cost savings unlocked

Join the PerUnit waitlist

We're onboarding a small group of B2B SaaS teams spending $5k–50k/month on AI who need clarity on their unit economics.

We'll follow up with a short onboarding call to map your OpenAI/Anthropic and Stripe data.