Private beta: The LLM Gateway is in private beta. Sign up for the waitlist to get access.
429 response with a Retry-After header:
Retry-After value is the number of seconds until the current window resets. Clients should honor this header and back off before retrying.
Rate limit policies and spend cap policies are complementary and can be applied together—spend caps for cost control, rate limits for throughput and traffic control.
Policy dimensions
Rate limit policies are evaluated for every incoming request. You can set a policy as a default (applying a blanket rate limit to all users, workspaces, or API keys or as a granular policy (an individual limit or a limit on a group of subjects).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.” No need to create a policy per person.
- 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 limit does not affect other users.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 Settings → Gateway → LLM Gateway.
- Click Create policy.
- Select Rate limit as the policy type.
- Select the subject scope (user, workspace, or API key).
- Add one or more limits, each with a metric, window, and value.
- Save.
Next steps
- Spend policies: set cost caps alongside rate limits.
- PII and secrets redaction: add data protection policies.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

