API pricing pages often look simple and turn out to be anything but. Understanding the model behind a price is the best way to avoid an unpleasant invoice, and if you sell an API, it's how you pick a model your customers trust.
The five common models
| Model | How it works | Good for | Watch out for |
|---|---|---|---|
| Free / open | No charge; often no key | Public data, hobby projects | Fair-use limits, no uptime promise |
| Freemium | Free quota, then paid tiers | Trying before buying | Free tier may ban commercial use |
| Tiered subscription | Monthly plan with a request quota | Predictable budgets | Overage fees past the quota |
| Pay-as-you-go | Per request, token, minute or GB | Spiky or uncertain usage | Runaway costs from bugs or abuse |
| Enterprise / committed | Annual contract, volume discounts | High, steady volume | Minimums and lock-in |
Units vary more than you'd think
AI APIs bill by input and output tokens, often at different rates; speech APIs by audio minute; maps by request type (a geocode and a route are priced differently); email by message; storage by GB-month plus egress. Read the unit before you compare prices.
How to forecast your bill
- Count requests per user action (one page view may trigger several calls).
- Multiply by expected daily actions, then by 30.
- Add a 20–30% buffer for retries, background jobs and growth.
- Price the result on each tier, then again at 10× volume.
- Set budget alerts and hard caps where the provider supports them.
Cost-control habits
- Cache responses you're allowed to store (exchange rates, geocodes, metadata).
- Batch requests where the API supports it; batch endpoints are often discounted.
- Debounce user-triggered calls such as search-as-you-type.
- Separate keys per environment and per feature so you can see, and cut off, what's expensive.
If you sell an API
Most successful small APIs combine a genuinely useful free tier (with a hard limit, so free users can't run up your costs), two or three paid tiers sized for hobby, small-business and production use, and modest overage pricing. Annual plans with a discount improve cash flow and reduce churn. Publish limits clearly. Surprise throttling destroys trust faster than a high price.