Overview
Tiered pricing allows you to charge different rates based on usage volume. FlexPrice supports two tier modes: Volume pricing (all units at one rate) and Slab pricing (graduated rates).Tier Modes
Volume
All units priced at the tier reached
Slab
Units priced progressively across tiers
Volume Pricing
In volume pricing, once you reach a tier, all units are charged at that tier’s rate.Volume Pricing Example
- 50 Units
- 500 Units
- 1,500 Units
Tier: 1 (≤100)Calculation:All 50 units at $1.00/unit.
- Wholesale pricing (bulk discounts)
- Volume licensing
- Tier-based SaaS pricing (“Professional” vs “Enterprise” rates)
Slab Pricing (Graduated)
In slab pricing, units are charged progressively. Each tier has its own rate, and you pay tier 1 rates for tier 1 units, tier 2 rates for tier 2 units, etc.Slab Pricing Example
- 500 Units
- 5,000 Units
- 15,000 Units
Tiers Used: 1Calculation:All units fall within the free tier.
- Utility billing (electricity, water)
- Pay-as-you-grow SaaS (free tier + paid tiers)
- API pricing with included quota
Tier Structure
Tier Fields
Inclusive upper boundary of the tier. Set to
null for the final tier (infinity).Price per unit within this tier (in major currency units)
Optional flat fee applied to this tier (in addition to unit_amount × quantity)
Tier Boundaries are Inclusive: If
up_to is 1000, a quantity of exactly 1000 belongs to this tier, not the next one.Tier Ordering
Tiers must be ordered from lowest to highest:Correct Order
- First tier starts at 0 (implicit)
- Each
up_tomust be greater than the previous - Last tier has
up_to: null(covers all remaining units)
Flat Amounts in Tiers
Add a fixed fee to any tier usingflat_amount:
Tier with Flat Fee
- 50 Units (Volume)
- 500 Units (Volume)
- 500 Units (Slab)
Tier 1 (≤100):
- Base fee + per-unit pricing (“1/unit”)
- Tiered platform fees
- Connection fees + usage charges
Complete Examples
SaaS API Pricing (Slab)
SaaS API Pricing (Slab)
Free tier with graduated pricing for overages.Pricing Breakdown:
- First 10K calls: Free
- 10K - 100K: $0.001/call
- 100K - 1M: $0.0005/call
- 1M+: $0.0001/call
Cloud Storage (Volume)
Cloud Storage (Volume)
All storage charged at the tier rate based on total usage.Pricing Breakdown:
- 0-100 GB: $0.10/GB
- 101-1000 GB: $0.08/GB (all GB at this rate)
- 1001-10000 GB: $0.06/GB (all GB at this rate)
- 10001+ GB: $0.04/GB (all GB at this rate)
License Tiers (Volume with Flat Fee)
License Tiers (Volume with Flat Fee)
Enterprise discount with base fee.Pricing Breakdown:
- 1-10 users: $50/user
- 11-50 users: 100 base fee
- 51+ users: 500 base fee
Compute Hours (Slab with Minimum)
Compute Hours (Slab with Minimum)
Graduated pricing with prepaid baseline.Pricing Breakdown:
- First 100 hours: Included for $50 base fee
- 101-500 hours: $0.50/hour
- 501+ hours: $0.30/hour
Choosing Between Volume and Slab
- Use Volume When
- Use Slab When
You want to reward high-volume customers with better per-unit rates across all units
Pricing should be simple to understand: “Buy more, pay less per unit for everything”
You’re selling licenses, seats, or products where bulk discounts make sense
Psychological pricing benefits: “Reach tier 2, save on all units!”
- Software licenses (100 licenses at 7/each)
- Wholesale products
- Tiered subscription plans masquerading as usage
Best Practices
Design Logical Tiers
Space tiers to match customer growth patterns:
- Small: 0-100 (startups)
- Medium: 101-1,000 (growth)
- Large: 1,001-10,000 (scale)
- Enterprise: 10,001+ (custom)
Communicate Clearly
In your UI, show how pricing works:
- Volume: “All units at $X when you reach tier Y”
- Slab: “First 1000 free, then $X per unit”
Test Edge Cases
Verify calculations at tier boundaries:
- Quantity =
up_tovalue (inclusive) - Quantity =
up_to+ 1 (next tier) - Zero quantity (should be valid)
Consider Predictability
- Slab = predictable growth (no surprises)
- Volume = can jump significantly at tier boundaries
Performance: FlexPrice calculates tiered pricing efficiently. Even with complex tier structures, calculations are fast and accurate using
decimal.Decimal for precision.Custom Price Units with Tiers
You can use tiered pricing with custom price units (credits, tokens, etc.):Tiered Credit Pricing
Related Resources
Prices
Complete price configuration guide
Meters
Track usage for tiered pricing
Plans
Package tiered prices into plans
Transform Quantity
Apply quantity transformations before tier calculations