Stripe
Cost and speed

Why I tried to kill token billing (and why we kept it)

Our short summary of Stripe’s engineering write-up. The full story, with all the detail, is on their blog.

Read the full write-up on stripe.com (opens in a new tab)

Problem

Customers needed a way to track AI usage costs without exposing token details in invoices

Solution

Built a token‑billing system that records model usage, applies markups, and lets teams monitor costs, while keeping pricing logic separate from the invoice

Tags

Want the architecture, code and numbers? They’re in the original post.

Read the full write-up on stripe.com (opens in a new tab)

More from Cost and speed

All Cost and speed write-ups