Skip to main content

Introduction

Welcome to the QuillAI GuardRails SDK documentation!

QuillAI GuardRails provides powerful policy based guardrails for your applications. Our SDKs make it easy to integrate intelligent content filtering, threat detection, and compliance checking into your applications.

What is GuardRails?

GuardRails is an AI-powered content moderation and security system that helps you:

  • Detect harmful content - Identify and block malicious, offensive, or inappropriate content
  • Prevent security threats - Stop injection attacks, prompt manipulation, and other security vulnerabilities
  • Ensure compliance - Meet regulatory requirements and content policies
  • Protect your users - Create safer experiences by filtering harmful interactions

Available SDKs

We provide official SDKs for the most popular programming languages:

TypeScript/JavaScript SDK

Perfect for Node.js applications, web servers, and serverless functions.

  • Full TypeScript support with type definitions
  • Built on native fetch API (Node.js 18+)
  • Zero dependencies
  • Promise-based async API

Get started with TypeScript SDK →

Key Features

Simple Integration

Get started in minutes with our intuitive APIs. Just initialize the client and start checking content.

Low Latency

Built for production workloads with avg latency ~200ms.

Comprehensive Error Handling

Detailed error messages and proper exception handling help you build robust applications.

Confidence Scores

Every check returns a confidence score, allowing you to make informed decisions about content.

How It Works

  1. Initialize the Client - Create a client instance with your API key
  2. Send Content for Checking - Submit text content along with project IDs
  3. Receive Results - Get back an action (allow/block), reason, and confidence score
  4. Take Action - Use the results to filter, flag, or allow content in your application

Getting Started

Ready to integrate GuardRails into your application? Choose your preferred SDK:

Or jump straight to:

Support

Need help? We're here for you:

  • GitHub Issues: Report bugs or request features
  • Documentation: Comprehensive guides and API references
  • Examples: Real-world code samples and use cases