Skip to main content
AI Gateway · Rate limits

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.

Definition

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.

Limits

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.

Behaviour

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

FAQ: LLM rate limiting

Put intelligence in the middle.

Start on the free plan with 5,000 requests a month, no card required.