Skip to main content
ARouter Guardrails let organization admins enforce policies that apply to all API keys and all requests within their organization. Guardrails operate at the gateway layer — before any request reaches an upstream provider.

What Guardrails Enforce


Spending Limits

Set a hard credit limit on any API key. Requests that would exceed the limit are rejected with a 402 error.

Via Dashboard

Go to API Keys → Edit Key → set Credit Limit.

Via API

When the limit is reached:

Rate Limits

Restrict requests per minute or per day per API key.

Via API

When the rate limit is exceeded, the API returns 429 Too Many Requests.

Model Allow-Lists

Restrict an API key to a specific set of models. Requests to other models are rejected.

Via Dashboard

Go to API Keys → Edit Key → Allowed Models.

Via API

A request to a model not in allowed_models returns:

Provider Allow-Lists

Restrict which providers requests can route to. Combine with model allow-lists for fine-grained control.

Data Policy Enforcement

Enforce Zero Data Retention (ZDR) for all requests made with a key:
With enforce_zdr: true, ARouter only routes to providers that have signed Zero Data Retention agreements. See ZDR for details.

Guardrail Hierarchy

Policies are applied in this order (most restrictive wins):
Example: if your organization default allows only OpenAI and Anthropic, a key-level override cannot add Google. But a key can be more restrictive (e.g., OpenAI-only within that org policy).

Viewing Policy Violations

All guardrail rejections are logged in the Activity page with:
  • Timestamp
  • API key used
  • Rejection reason (rate_limit_exceeded, model_not_allowed, credit_limit_exceeded, provider_not_allowed)
  • Request metadata (model, tokens if applicable)

Enterprise Controls

For enterprise organizations, additional controls are available:
  • Organization-wide model allow-lists — Apply to all keys in the org automatically
  • Member-level budget allocation — Assign individual spending budgets to team members
  • Audit logs — Full request audit trail for compliance
Contact support@arouter.ai for enterprise Guardrails configuration.