Skip to main content
Graduated pricing splits usage into tiers, and each tier is charged at its own rate. This means the price per unit decreases as usage increases — customers pay less per unit for higher volumes, but each range has its own rate.
Example
An API service charges:
  • 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
A customer who makes 15,000 requests pays: (1,000 × $0.01) + (9,000 × $0.008) + (5,000 × $0.005) = **$107**

Setting up

Use the tiers array on a plan item price. By default, tiers use graduated behavior:
autumn.config.ts
Preview with atmn push, then apply with atmn push --yes.

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.