LLM rate limiting
Give every application, agent and customer its own key, and its own limit, so one runaway client cannot use up everyone’s capacity or budget.
Rate limiting at the gateway
LLM rate limiting caps how fast a client may send model requests. Providers rate-limit your whole account; a gateway limits each client inside it, so the limit follows the application, the agent or the customer that sends the traffic rather than the provider account it shares.
In Inferbase the unit is the API key. Each key can carry a requests-per-minute limit, and a request over it gets a 429 before any provider is called. Spend caps and a session’s request cap sit beside it, so a client can be bounded by rate, by money and by run length.
What can be limited
Requests per minute
Per API key. Up to 60 on the Free plan and 600 on Pro; higher limits are arranged on request.
Session requests
A routing policy can cap the requests of one session, so an agent loop that never ends is stopped with a 429.
Spend
Daily and monthly spend caps per key, and a monthly budget per project, refused with a 402.
Key per client
Create a key for each application, agent or customer; each carries its own limits and appears separately in Usage and Logs.
Clear refusals
Before the provider
A request over a limit is refused at the gateway, so it never reaches a provider or costs anything.
Status codes that say who can fix it
429 for rate and session request limits, 402 for spend, with a message naming the limit that was met.
Provider limits handled
A provider’s own 429 on a routed request moves the request to the next model or provider in its fallback chain.
FAQ: LLM rate limiting
Give each user, customer or application its own API key and set a requests-per-minute limit on it. Each key is limited, counted and logged separately, so one client’s traffic cannot exhaust another’s.
The request is refused with a 429 before it reaches a provider, and it costs nothing. Requests are admitted again once the minute passes.
On a routed request, a provider’s 429 moves the request to the next candidate in its fallback chain, another provider of the same model or another model that qualified, instead of waiting.
Put intelligence in the middle.
Start on the free plan with 5,000 requests a month, no card required.