type and one matching *_pricing_model object; the type decides which object is required. Use this page to pick the right model for a product before you build a plan or subscription. For the exact request shape of each model, see the pricing models reference; for where prices sit in the object graph, see How Alguna Works.
The eleven types
All amounts are strings (
"0.05", "500.00"), never floats.
Fixed
A flat amount for a set quantity, regardless of usage. The quantity is on the price (units), so a 25-seat licence is price_per_unit: "10.00", units: 25.
Use for: platform access fees, base subscriptions, support tiers, seat licences where the count is contracted rather than measured.
Unit
One rate multiplied by the measured quantity. Use for: metered products where every unit costs the same: storage per GB, emails sent, seats when the count is metered.Tiered
The total quantity decides which tier applies, and every unit is priced at that tier’s rate.
250 units land in tier 2, so all 250 are charged at 25.00**.
Graduated tiered
Each tier is priced independently, so the quantity is split across the tiers it spans. Same tier table as above. 250 units cost:- First 100 @ 15.00
- Next 150 @ 15.00
- Total = $30.00
price_per_unit: "0.00".
Prepaid with overages
The customer commits to a quantity up front (prepaid_units) at a committed rate, and anything beyond it is charged at the overage tiers. The commitment is billed in advance and drawn down; the overage is billed in arrears.
- Prepaid: 1,000 API calls
- Overage: $0.08 per call beyond 1,000
- 1,500 calls used → the commitment plus 500 × 40.00** overage
prepaid_fixed_tiered takes the same shape plus overages_charge_interval, which lets overage be invoiced on a different cadence from the commitment.
Use for: committed-usage packages, API bundles, messaging packs, and any deal where cash comes in before consumption. For committed balances that span products, see Credits & Wallets.
Volume percentage
A single percentage of the transaction value, plus an optional fixed fee per event.- Rate: 2.5% + $0.25 per transaction
- $10,000 processed across 100 transactions
- Fee: (0.25) = 25 = $275
Graduated percentage
Different percentage rates apply to successive slices of the volume.
$250,000 processed:
- First 2,500
- Next 3,000
- Total = $5,500
Tiered percentage
The total volume picks a tier, and that tier’s percentage applies to the whole amount. Same tiers as above. 5,000**.Expression
When no standard model expresses the pricing, an expression price computes the quantity and the unit rate from formulas over your metrics. Use it for rates that fall continuously with volume, pricing that combines several metrics, or conditional charges. Example: charge for compute hours at a rate that falls as monthly usage rises, and bill API calls above a free allowance in the same price. See the reference for the expression syntax and the variables available.Matrix
Matrix pricing routes each usage event to a priced cell based on its property values, so the rate can vary along more than one dimension at once. Each cell carries its own pricing model, so one dimension can be flat while another is tiered, and a fallback cell catches anything that does not match. Example: a per-request rate that differs by region and by request type. See the reference for the routing tree, wildcard and fallback behaviour, and a worked example.Fields every price carries
Whatever the type, a price also carriesfee_type, billing_direction (advance or arrears), the billing cadence (billing_interval_unit + billing_interval_count, or the legacy billing_interval), and optional guardrails: minimum_spend, maximum_spend, discount and trial_period_days. These are documented in the reference.
Only advance charges from the fixed-class models (fixed, tiered, graduated_tiered, and prepaid_fixed_tiered billed in advance) are prorated on mid-period changes. Arrears and metered charges never are.
Choosing a model
Next steps
Configure Products
Create the products these prices attach to.
Create Plans
Package priced products into a reusable offer.
Pricing models reference
Request shape and required fields for every type.
Send usage
Feed the metrics that metered prices rate.