Check the remaining request budget
check_budgetCheck the server's real hourly request budget before large loops to see remaining calls, reset time, and where to raise the limit. Returns one shared window across all providers.
Instructions
Costs nothing — call it before any loop of more than a handful of requests. Returns this server's real hourly window (limit, remaining, when it resets) read from the provider's own budget endpoint, which is exempt from the budget it reports, plus whether a key is set and where to raise the limit. The window is ONE bucket per caller shared across every provider host, so the numbers apply to all of them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | No | The host you are about to call. Optional — the budget is one shared window, so the numbers are the same for every provider. |