Guides
Limit token usage
Bound the size of provider-bound requests and reserve token budgets before inference. These controls are separate from usage extraction, which only observes what the provider reports.
Switching projects opens that project’s default documentation release.
Versions marked “overview” do not contain this page. Selecting one opens that version’s documentation overview.
On this page
Bound the size of provider-bound requests and reserve token budgets before inference. These controls are separate from usage extraction, which only observes what the provider reports.
Choose a control
Usage extraction does not enforce token limits. Experimental token_rate_limit reserves estimated budgets and reconciles them; token_ceiling constrains the final provider-bound body. Both require their own features and policies.
| 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 |
The ceiling evaluates the final provider-bound body; rate limiting needs its
configured budget backend and trusted key dimensions. Check the
build features each filter requires before
selecting a binary, and run praxis-ai --validate -c FILE with that binary.