Reserve
Bound request input and maximum output, price the declared provider/model, and atomically reserve that modeled exposure against one agreed user or tenant window.
I add one application-side budget gate to an authorized Node.js/TypeScript or Python codebase: reserve modeled spend before the call, reconcile returned usage afterward, and take the agreed non-AI path when the remaining allowance is insufficient.
No account required · no payment before scope · no credentials in the enquiry
The implementation stores accounting metadata, not prompts or outputs. Provider-reported usage closes each reservation; failures and retries remain visible instead of disappearing from the total.
Bound request input and maximum output, price the declared provider/model, and atomically reserve that modeled exposure against one agreed user or tenant window.
Record returned input, cached-input, output, and reasoning usage where exposed; settle the reservation and preserve failed or retried calls in the ledger.
Stop an insufficient-budget request before the provider call and route it to the codebase's agreed fallback, with tests proving the provider adapter was not invoked.
Share the public repository or product URL, stack, provider path, existing persistence layer, desired budget window, and fallback. Keep secrets and private data out of the enquiry.
The written scope states how reservations expire, which concurrent callers share the counter, what missing usage means, and how an over-budget request degrades.
You receive a focused branch or pull request, automated no-call and reconciliation tests, handoff notes, and one revision within the agreed boundary.
Suitable enquiries receive a written scope before any payment request. Need reporting rather than enforcement? See the attribution setup →