Usage pricing
A tiered rate table with how much of each tier has been used.
| Monthly requests | Price per request | Your usage |
|---|---|---|
| First 100,0001–100,000 | Free | |
| Next 900,000100,001–1,000,000 | $0.0004 | |
| Next 9,000,000You are here1,000,001–10,000,000 | $0.0002 | |
| Over 10,000,000 | $0.0001 |
1,340,000 requests so far this month cost $428.
When to use
- Explaining pay-as-you-go pricing and what a given usage costs.
- Customers want to see where tiers change.
When not to use
- Pricing is a flat fee.
Installation
pnpm dlx shadcn@latest add @caliper/usage-pricing
Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
UsagePricing
6 props
tieredCost
0 props
No props of its own; it accepts the native props of its root element.
money
0 props
No props of its own; it accepts the native props of its root element.
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes status semantics, with aria-label and aria-hidden kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/usage-pricing.mdThe index of every part is at /llms.txt.