Virtual key budgets
Each virtual LLM key can have a monthly spend limit:budget_monthly_usd: 0 for unlimited spend.
Token estimation
Estimate token count and cost before sending a request:Usage monitoring
Query usage by key, model, or time range:- Input/output token counts
- Estimated cost
- Model and provider
- Latency
- Routing decision
Budget alerts
Configure webhook alerts when a key approaches its budget limit:Tool call budgets
For agent runs that use many tools, set a per-run token budget:BUDGET_EXCEEDED error.