How to charge for "free overflow" tokens?

Let’s say I have the following Graduated Tiered pricing model:

  • $4 for the first 100000 tokens
  • $0.000065 for any extra token

If the user used 100070 tokens, I’ll be charging them:
$4 + 70 * $0.000065 = $4.00
which is exactly what I’d charge if they used 100000 tokens, meaning they essentially got 70 tokens for free.

If I wanted to charge the user for these 70 “overflow” tokens, what are my options? Does Stripe have any built-in functionality to deal with this “free overflow”? Would I need to manually implement the transfer of these 70 tokens to the next month? I’m also curious what’s the industry standard these days to deal with this?

1 Like