The Know Your AI Firewall provides real-time validation of AI inputs and outputs, catching policy violations, harmful content, and security risks before they reach your users.Documentation Index
Fetch the complete documentation index at: https://hydroxai.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
How it works
The firewall sits between your application and your AI model, validating each request and response:- Your application sends the user input through the firewall
- The firewall validates the input against configured rules
- The request is forwarded to your AI model
- The model response is validated before being returned to the user
- Each validation is logged with risk categorization and scoring
Setup
Integrate the SDK
Add the
@know-your-ai/firewall SDK to your application and configure it with your API key.Firewall logs
The Logs page shows a complete history of all firewall validations with:- Risk category — The type of risk detected (e.g., jailbreak, harmful content, PII)
- Risk score — Numeric confidence score for the detection
- Risk reason — Explanation of why the content was flagged
- Pass/fail status — Whether the validation passed or was blocked
- Input/output tokens — Token count tracking per validation
Token usage analytics
The Token Usage page provides time-series charts for:- Input tokens over time
- Output tokens over time
- Total token count
- Configurable granularity: hour, day, month
- Time ranges: 24 hours, 7 days, 30 days, 90 days
Security report
The Security Report provides a visual before/after comparison:- Baseline results — How your model performs without the firewall
- Firewall results — How your model performs with firewall protection
- Per-prompt pass/fail comparison table
- Animated security score counters
- Compliance panel showing regulatory impact
Related docs
Evaluation
Run security evaluations to test your model.
Monitoring
Track production usage with SDK monitoring.