“Send 10” stops early at the first blocked request.
llmbrake 0.1.0 · real library, fake provider
Watch one customer hit the brake.
Set a monthly budget, then send requests as one customer. Spend climbs, the model switches to a cheaper one at your threshold, and the next request past the cap is blocked with a BudgetExceededError before it reaches the provider.
USD / month
$0.0000of $0.10
80%: cheaper model100%: blocked
Normal
Provider calls0
Blocked (never sent)0
Downgraded calls0
Remaining$0.10
You've hit this month's AI limit. Upgrade for more.Upgrade
Example of what your app could show on BudgetExceededError. Spend can end slightly above the budget: the cap is checked before each call and the cost is recorded after it.
- No requests yet. Click “Send request”.
Free · MIT · npm install llmbrake
Try it in your app.
Same library, your real provider and your own store.