Guides
Limit token usage
Bound the size of provider-bound requests and reserve token budgets before inference. Usage extraction only observes what the provider reports and enforces nothing.
On this page
Bound the size of provider-bound requests and reserve token budgets before inference. Usage extraction only observes what the provider reports and enforces nothing.
Choose a control
| Goal | Filter | Complete example |
|---|---|---|
| Reject oversized input or unbounded output | token_ceiling | token-ceiling.yaml |
| Reserve and reconcile token budgets | token_rate_limit | token-rate-limit.yaml |
| Track live requests and reserved tokens per model | inflight_tracker | inflight-tracking.yaml |
| Weight cache and reasoning tokens in a quota | PPE token quota plugin | token-quota.yaml |
token_ceiling evaluates the final provider-bound body. Experimental
token_rate_limit reserves estimated budgets, reconciles them afterward, and
needs its configured budget backend and trusted key dimensions. Each filter
requires its own build features; check them
before choosing a binary, and run praxis-ai --validate -c FILE with that
binary.