Guardrail Configuration Generator
Draft a vendor-neutral policy covering AI content safety, API rate limiting, and input validation. Adjust the settings and the JSON updates live below - use it as a checklist to translate into your actual gateway, WAF, or LLM middleware.
100% client-side · Nothing is uploaded
AI Content Safety
Rate Limiting
Input Validation
Loading...
This is a vendor-neutral draft, not a certified or drop-in configuration for any named product. Review it with your security team and adapt it to your actual gateway, WAF, or LLM middleware before relying on it.
About the Guardrail Configuration Generator
This tool drafts a vendor-neutral guardrail policy covering AI content safety, API rate limiting, and input validation, informed by common guidance such as the OWASP Top 10 and the OWASP Top 10 for LLM Applications. It is a planning and documentation aid, not an official certification and not a ready-to-load file for Kong, Tyk, AWS API Gateway, AWS WAF, Cloudflare, LiteLLM, Portkey, or any other specific product - each of those has its own configuration format that you will need to translate these settings into.
Four Policy Areas
AI content safety, rate limiting, input validation and injection defenses in one draft
Honest Output Format
A vendor-neutral JSON draft, clearly labeled as a starting point - not a claimed drop-in file for any named product
Live Preview
The JSON updates as you adjust any setting, with invalid values clamped to a sane range
Copy or Download
Copy to clipboard or download the draft as a .json file
Privacy First
Everything runs in your browser. Nothing is uploaded or stored
Built for Collaboration
A readable starting point to hand to your platform, security or ML engineering team
Explore more free tools in our security tools collection, including other AI security utilities.
Frequently Asked Questions
1. What exactly is a guardrail configuration?
A guardrail configuration is a set of rules that bound what gets through to and from an application or AI model - content filters, rate limits on requests, and checks on user input such as length limits and injection pattern detection. This tool drafts a vendor-neutral summary of such a policy that you then adapt into your actual system.
2. Can I load this JSON directly into Kong, AWS API Gateway, or an LLM middleware?
No, not directly. The output uses a simple, custom field structure (`guardrails.ai_safety`, `guardrails.rate_limiting`, `guardrails.input_validation`) meant to be readable and complete, not any one vendor's schema. Kong, Tyk, AWS API Gateway, AWS WAF, Cloudflare, LiteLLM and Portkey each have their own configuration format and field names. Use this draft as a checklist of the settings to configure, then translate the values into your platform's actual config syntax.
3. Does the toxicity threshold match OpenAI, Anthropic or LlamaGuard's moderation APIs?
Not directly. Moderation systems differ in what they return - OpenAI's returns per-category scores, LlamaGuard returns a safe/unsafe verdict with categories, and Anthropic's classifiers are not configured with a single public numeric threshold. A single 0 to 1 value here is a simplified, vendor-neutral stand-in for 'how strict should content filtering be' that you map onto whichever category thresholds or settings your specific provider actually exposes.
4. Is this 'OWASP compliant'?
OWASP does not certify tools or configurations, so no generated file can be said to be officially compliant. The categories covered here, such as input validation, rate limiting, and injection prevention, are informed by common guidance including the OWASP Top 10 and the OWASP Top 10 for LLM Applications, but compliance with any specific standard depends on your full implementation, not this draft alone.
5. How do I use the generated JSON?
Use it as a checklist and a shared reference: review the settings with your platform or security team, then implement the equivalent rules in your actual API gateway, WAF, or LLM middleware using their own configuration syntax. Download or copy the file to share it, and keep it alongside your implementation as documentation of the intended policy.
6. Is my data private?
Yes. Configuration generation happens entirely in your browser using JavaScript. Nothing is sent to a server, and nothing is stored once you leave or reload the page unless you have explicitly downloaded the file yourself.
7. Can I use this for production systems?
It can be a useful starting point for planning a policy, but it is a draft, not a certified, tested configuration. Test actual thresholds and rules in a staging environment on your real traffic and content before relying on them in production, and have your security team review the final implementation.
8. What does 'allow burst' actually do in this draft?
It's a simplified illustration: when enabled, the draft shows an effective limit about 20% above your set maximum, meant to represent short traffic spikes above the steady rate. Real burst handling differs by rate-limiting algorithm and gateway, for example a token-bucket's burst behavior comes from its bucket capacity, not a fixed percentage, so treat this figure as a planning aid rather than an exact algorithm.