Is Policy Gateway an AI gateway?
Yes. It is an AI gateway layer that enforces policy-as-code, quotas, and audit logs across LLM traffic.
AI Gateway
Enterprise teams already buy AI gateways for quotas, policies, and governance. Policy Gateway brings those same controls to LLM requests.
Use guardrails with audit logs and rollout controls so every decision is predictable, reviewable, and safe to ship.
LLM guardrails with audit logs and rollouts are AI gateway controls that enforce policy-as-code rules, record decisions, and let you safely roll changes out with shadow and canary traffic.
curl https://api.abliteration.ai/policy/chat/completions \
-H "Authorization: Bearer $POLICY_KEY" \
-H "Content-Type: application/json" \
-H "X-Policy-User: user-12345" \
-H "X-Policy-Project: support-bot" \
-d '{
"model": "abliterated-model",
"messages": [{"role":"user","content":"Summarize our refund policy."}],
"policy_id": "support-guardrails"
}'{
"policy_id": "support-guardrails",
"name": "Support guardrails",
"owner": "Platform team",
"description": "Audit-friendly guardrails with safe rollouts.",
"rules": {
"allowlist": ["product docs", "account support", "refunds"],
"denylist": ["credential theft", "account takeover"],
"flagged_categories": ["self-harm/intent", "violence/graphic", "sexual/minors"],
"response_pattern": "rewrite",
"rewrite_instead_of_refuse": true,
"redact": true,
"reason_codes": ["ALLOW", "REWRITE", "REDACT", "ESCALATE"]
},
"org_controls": {
"project_keys": true,
"user_quotas": true,
"audit_logs": true,
"data_classification": "confidential",
"user_quota": { "requests": 200, "tokens": 20000, "window": "daily" },
"project_quota": { "requests": 20000, "tokens": 2000000, "window": "monthly" }
},
"rollout": {
"shadow": { "enabled": true, "sample_percent": 10, "targets": ["support-bot"] },
"canary": { "enabled": true, "sample_percent": 5, "targets": ["support-bot"] },
"rollback_on_spike": true
},
"refusal_replacement": { "mode": "rewrite", "escalation_path": "policy-review@company.com" }
}Assistant: "I can't help with that."
Assistant: "Here is a short summary of your refund policy..." decision: rewrite reason_code: REWRITE audit_tags: policy_id=support-guardrails project=support-bot
Preview guardrail decisions, reason codes, and audit tags before you ship.
FAQ
Yes. It is an AI gateway layer that enforces policy-as-code, quotas, and audit logs across LLM traffic.
Shadow mode evaluates policies without blocking responses, while enforced rollouts apply the decision inline.
Audit logs are retained by default and can be extended or exported on enterprise plans.