- Model access: which providers and models can be called.
- Rate limits: how many requests can be made over a given period.
Guardrails are part of the advanced organisation features. See plans and pricing for availability.
Creating a guardrail
Open Guardrails in Settings
In the Eden AI dashboard, go to Settings and, under Organization, select Guardrails.
Set a rate limit (optional)
In the Rate Limit field, enter a limit in the form
N/period, for example 10/minute. Leave it blank to inherit the rate from the next level up. See Rate limits below.Restrict models (optional)
Turn on Enable model rules to control which models can be used, then define your allow/deny rules. See Model rules below.
Model rules
When you enable model rules, a guardrail uses a default action plus a list of exceptions:- Default:
allowordenyevery model unless a rule says otherwise. - Rules: each rule targets a model by pattern and sets its action to
allowordeny. Rules are checked in order and the first match wins; if none match, the default applies.
| Pattern | Matches |
|---|---|
openai/gpt-4o | One specific model |
anthropic/* | Every model from that provider |
*/* | Every model |
llm/chat, or only image/generation). A request that hits a deny rule is rejected.
Rate limits
The rate limit uses the formatN/period, where period is second, minute, hour, or day:
Assigning a guardrail
A guardrail does nothing until it’s attached to something. You can assign it to:- A role: from Settings → Roles & Permissions, so everyone with that role inherits the policy.
- A member: from Settings → Members, to apply it to one person.
- An API token: to constrain a single key (for example a shared or CI token).
Guardrails can also be managed programmatically through the User Management API if you need to automate provisioning. See the API Reference for the
guardrails endpoints.Related
- Users & Organisation: roles, permissions, and members.
- Custom API Keys: per-token budgets that pair well with per-token guardrails.
- Rate Limits: how default rate limiting works.