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.

Praxis AI v0.13.0 (alpha) 1 min read
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

GoalFilterComplete example
Reject oversized input or unbounded outputtoken_ceilingtoken-ceiling.yaml
Reserve and reconcile token budgetstoken_rate_limittoken-rate-limit.yaml
Track live requests and reserved tokens per modelinflight_trackerinflight-tracking.yaml
Weight cache and reasoning tokens in a quotaPPE token quota plugintoken-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.