Spend caps
Spend is priced from the model tables in USD and counted per workspace.
Workspace cap
Section titled “Workspace cap”In the policy, set Spend cap (limits.spendCap):
| Field | Values |
|---|---|
amountUsd |
The limit |
window |
hour, day or month |
scope |
workspace (one total for everyone) or user (each member separately) |
timezone |
Optional. Windows follow the calendar in UTC unless you set one. |
Windows follow the calendar, not a rolling period. A day cap resets at midnight.
When the cap is reached, requests get 429 limits.spendCap with a Retry-After header that points to the next window.
The cap is checked before each request against spend that’s already recorded. A request that crosses the limit still completes, so the actual total can end slightly above the cap.
A user cap counts each member within this workspace only. It doesn’t add up a person’s spend across workspaces.
Per-member override
Section titled “Per-member override”In the spend cap section of the workspace page, a workspace admin can replace the cap for one member:
- Unlimited skips the check for them.
- Their own cap has its own amount and window, whether or not the workspace has a cap.
Their spend still counts toward the workspace total.
Spend page
Section titled “Spend page”Spend in the organization shows cost by workspace and member, and the cache hit rate. Seeing the whole organization’s spend needs the org admin or owner role.