The LLM Gateway is in beta.
429 response with a Retry-After header and a body that names the blocking policy:
Retry-After value is the number of seconds until the current window resets. Clients should honor this header and back off before retrying.
A blocked request never reaches the provider, so it does not trigger a fallback chain, even though 429 is a default fallback trigger.
Policy dimensions
Rate limit policies are evaluated for every incoming request.Defaults vs. granular policies
Rate limit policies have two modes:- Default policies apply automatically to every member of a subject dimension. Example: “Every user in this workspace gets a default cap of 100 requests per minute.” A user group default gives each group its own shared allowance, without a separate policy per group.
- Granular policies target a named subject and override the default for that subject only. Example: “The on-call engineer gets 500 requests per minute.” Editing the default updates everyone still on it.
Independent enforcement
Each subject is tracked and enforced separately. One user hitting their user-level limit does not affect other users. Members of a user group share its allowance. Accordingly, one member can exhaust the group limit for everyone in that group. If a caller belongs to multiple user groups, the request must satisfy every matching group limit and all other applicable limits.Limits
A single rate limit policy can enforce multiple limits at once. For example, one policy can enforce both 100 requests per minute and 1,000,000 tokens per hour simultaneously. Each limit has three fields:
Rules:
- At least one limit is required per policy.
- You cannot have two limits with the same metric and window combination within one policy.
Create a rate limit policy
- Go to LLM Gateway and select the Policies tab.
- Click + Policy.
- Under Policy type, select Rate limit.
- Define a Scope and the subjects the policy applies to.
- Add one or more limits, each with a value, metric, and window.
- Click Create policy.
See also
- Spend policies: set cost caps alongside rate limits.
- Header-based policies: split a limit by a custom request header so each header value gets its own allowance.
- Data policies: add data policies.
Connect these docs to your agent of choice via MCP for real-time answers.

