← Blog

Stripe + AI Costs: How to Connect Revenue to Your AI Spend

Our CFO asked a simple question at the board meeting: "Which customers are profitable?" We had Stripe. We had OpenAI. We had no idea. A customer paying $99/month might cost us $120 in AI. Another paying $199 might cost $15. We were flying blind. Stripe tells you who pays. AI providers tell you how much you spend. Neither tells you who's profitable. Connecting AI spend to Stripe revenue is the only way to see real margins.

The spreadsheet trap

We tried the manual approach. Export Stripe. Export AI usage. Join by customer ID in a spreadsheet. Took an afternoon. We got the numbers. A week later, someone asked the same question. We had to do it again. By the third time, we realised: this doesn't scale. Every month we'd be pulling data, reconciling IDs, hoping nothing broke. By the time we had the numbers, they'd be stale. A Stripe AI integration that runs in the background and keeps the view updated was what we needed.

What AI cost vs revenue actually tells you

The real question wasn't "how much do we spend?" It was "are we making money on this customer?" and "which tier should we gate AI behind?" To answer that, we needed a single view: AI spend and Stripe revenue, matched by customer. Margin by account. Margin by tier. Margin by feature. AI margin by customer — that's the metric that drives pricing decisions. Without connecting Stripe to your AI costs, you can't see it.

What we found when we connected them

Three customers on our Pro plan were costing us more in AI than they paid. We'd been upselling them to Enterprise — which would have made it worse. We raised their prices instead. Two stayed. One left. Net result: we stopped subsidising heavy users and improved margin on the segment. Our Stripe AI cost view showed us exactly which accounts to fix. A proper Stripe AI integration gives you that visibility without building it yourself.

The Stripe + AI cost connection we built — revenue vs spend per customer — changed how we priced. We gate AI features behind higher tiers now. We charge heavy users more. We know who's profitable. That's what connecting AI spend to Stripe revenue enables.

PerUnit connects to Stripe and your AI providers. Cost per customer, revenue per customer, margin per customer — all in one dashboard. No spreadsheets, no data engineering. Our free AI margin calculator is a useful place to start with your current numbers.

Need cost per customer, not just totals?

PerUnit breaks down your AI spend by customer, feature, and pricing tier — so you know who to charge more, what to gate, and where to cut.

Get early access to PerUnit →