Monetising APIs with Gravitee: fixed plans and usage-based billing with Stripe
An API can be sold on fixed plans and on usage-based billing with Stripe using only gateway configuration, with no service of your own to run
Pre-release buildCustomer safe
Pre-release, cleared for customers: Cleared by Sam on 29 Oct 2026. Recorded on the shared box's nightly image.
Say while it plays
A subscription to a paid plan sits pending with no key: a webhook calls a small billing API built from standard gateway policies, which creates the Stripe customer and Checkout page and emails the link, and the key goes live when Stripe reports the invoice paid.
Usage-based billing adds an allowance with a charge per call beyond it: an hourly job reads call counts per application from Gravitee's analytics and reports them to Stripe under the same identifier each hour, so it cannot double bill.
A failed renewal pauses the key and the developer gets a 401 until the invoice is paid, and a cancelled plan keeps working to the end of the period already paid for.
Don't claim
Don't present the brand or the prices as real: the recording says the fitness brand is made up and the prices are placeholders.
Don't claim usage reaches Stripe in real time: the recording says it is hourly, fine for a monthly invoice and no good for a live dashboard.
Don't claim real money moves: the recording pays with Stripe's test card, so nothing is charged.