Example
An API service charges:A customer who makes 15,000 requests pays: (1,000 × 0.008) + (5,000 × 107**
- First 1,000 requests: $0.01 each
- Next 9,000 requests (1,001–10,000): $0.008 each
- Everything above 10,000: $0.005 each
Setting up
- CLI
- Dashboard
Use the Push changes with
tiers array on a plan item price. By default, tiers use graduated behavior:autumn.config.ts
atmn push.How graduated pricing works
At the end of the billing period, Autumn calculates the total charge by applying each tier’s rate to the usage that falls within that tier’s range:
Each tier’s rate only applies to the usage within that tier’s range. This is in contrast to volume-based pricing, where a single rate is applied to the entire usage.
Tier configuration
Each tier has the following fields:Tiers must be in ascending order by
to. The final tier should always use "inf" to capture all remaining usage.Graduated vs volume-based
See Volume-Based Tiers for the alternative model.