Skip to main content
Choose one of these options to start using Guardion, or continue below.

Interactive Colab Notebook

Run examples and test Guardion’s capabilities with pre-configured code samples

Try Guardion Playground

Experiment with different prompts and see how Guardion’s guardrails work in real-time

How to integrate with Guard API

Integrate Guardion directly into your application using our APIs. See the code examples below to get started with API integration.

Prerequisites

  • A Guardion API key
  • cURL or any HTTP client

API Key Setup

To use Guardion, you’ll need an API key. You can get one from the Guardion Console. API Keys in Guardion Console Once you have your API key, you can set it as an environment variable:

Environment Setup

You can set your API key as an environment variable:

Authentication

Every request must include an API key in the Authorization header:

1. Hello World (cURL)

Response


2. Hello World (Python)

Response


Core Response Fields

  • flagged: whether any policy is detected
  • breakdown: per-policy scores & detection summary
  • time: latency in ms

Check Results in Dashboard

After using the Guard API, you can view detailed results in the Guardion dashboard with insights into detected threats, allowing you to monitor and analyze in real-time.
Guardion investigation dashboard showing filtered logs and threat details

Important notes

⏱️ Rate Limits

The Guard API enforces a default rate limit of 1000 requests per minute per project. If you require a higher rate limit, please contact us at founders@guardion.ai and we’ll be happy to help.

📨 API Endpoint

https://api.guardion.ai/v1/guard

POST /v1/guard

Evaluate and apply guardrails to user-assistant messages.

Request Body


✅ Response Format


Next Steps

API Reference

Check our comprehensive API documentation

Modern Guard

Learn more about our modern-guard technology

Dashboard & Threat Investigation

Explore investigation tools and monitoring capabilities

Integrations

Implement LangChain & OpenAI Agent SDK integrations
Need help? Reach out at founders@guardion.ai