Token economics and cost control — first-class
Every prompt, every response, every embedding — counted, attributed, and capped. Set token and USD budgets on the gateway scope chain — global, anonymous, credential, credential-org, proxy, and tenant — plus per-model and per-provider ceilings, in any time window. The same three-tier permission model (System / Project / Team) that owns REST access owns who may edit those budgets, so the people who own the workload also own the bill.
- Live token tracking — input, output, cached, and total — per request
- Limits in tokens or in dollars, per minute, hour, day, or month (TPM + USD; request-per-minute is the platform throttle policy)
- Six scope tiers — global → anonymous → credential → org → proxy → tenant — crossed with provider and model
- Hard caps plus threshold alarms at 50%, 80%, 90%, and 100% of budget
- Cost attribution back to a project or cost center — finance gets a line item, not a mystery
- Auto fall-back to a cheaper model or a cached answer when the budget tips
- Per-model unit pricing you edit in the UI, with cached tokens billed separately
- Tracked per request
- input · output · cached · total tokens
- Quota windows
- minute · hour · day · month
- Quota scopes
- global · anonymous · credential · org · proxy · tenant × provider · model
- Measured in
- tokens or USD
- Enforcement
- hard cap · threshold alarm · graceful fallback
- Reporting
- cost by project · model · team · time range