LLM Firewall
Configure LLM Firewall
Connect a judge, a mode and an ordered set of rules under one stable slug.
Core fields
Choose a unique slug, a compatible evaluator endpoint, the enforcement mode and enabled rules. The evaluator can be an available public model or a compatible deployment; consider its latency before enabling the policy.
Attach from the request
Pass the slug in the inference request. The same firewall can protect any supported QDivZero chat backend owned by the account.
API example
Set QDIV0_FIREWALL_SLUG to the existing slug to inspect its configuration.
Set QDIV0_USER_API_KEY to a personal uk_ key. The default account is used; for another account you belong to, add its identifier in the X-Account-ID header.
1curl --fail-with-body \
2 "https://api.qdiv0.com/v1/firewalls/$QDIV0_FIREWALL_SLUG" \
3 -H "Authorization: Bearer $QDIV0_USER_API_KEY"