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:| Usage range | Rate | Charge |
|---|---|---|
| 0 – 1,000 | $0.01 | 1,000 × 10 |
| 1,001 – 10,000 | $0.008 | 9,000 × 72 |
| 10,001+ | $0.005 | 5,000 × 25 |
| Total | $107 |
Tier configuration
Each tier has the following fields:| Field | Type | Description |
|---|---|---|
to | number or "inf" | The upper boundary of this tier. Use "inf" for the final tier. |
amount | number | Price per unit within this tier |
flat_amount | number | Optional flat fee added when this tier is reached |
Tiers must be in ascending order by
to. The final tier should always use "inf" to capture all remaining usage.Graduated vs volume-based
| Graduated | Volume-based | |
|---|---|---|
| Rate applied | Each tier at its own rate | Entire usage at a single rate |
| Total charge | Sum of each tier’s charge | Total usage × matching tier rate |
| Best for | Rewarding growth with lower marginal rates | Simpler pricing with volume discounts |

