ai_tokens. Use add-ons to let customers top up a metered resource without changing plan.
How add-ons work
- Create the add-on in your product under Product catalog → Catalog → Add-ons. An add-on belongs to one product.
- Give it an entitlement: the meter it tops up and how much it grants.
- Set its price in each currency you sell in.
- Make it compatible with the plans that may buy it. A customer only sees add-ons compatible with their current plan.
- Publish it.
Fixed fee or per unit
Expiry
Prices
An add-on is bought in the currency of the customer’s subscription, so give it a price in every currency your plans use. A plan can override an add-on’s price. For example, Pro customers can pay $10 for a pack that costs $15 elsewhere. Customers on that plan are charged the override. A price of 0 is allowed. A free add-on calls no payment provider: its credits are granted at once, and the purchase returnsrequiresPayment: false with no checkoutUrl.
What cannot be published yet
The public API describes an add-on as one meter and one quantity. Until it can describe more, two kinds of add-on stay in draft:- an add-on that grants a feature instead of credits
- an add-on that tops up more than one meter