Guide the model.
When a request matches a rule, Firewall can pass it forward with guardrail context. The model still responds, but it receives the information needed to handle the request safely.
Firewall
Model
Protect every request before it reaches your model.
Firewall sits in front of your AI models to evaluate every request before inference begins. Apply production-ready guardrails, enforce custom policies, and decide whether requests should continue, be blocked, or be audited—all through a single OpenAI-compatible API.
AI applications shouldn't rely on prompts alone to stay safe. Firewall introduces a dedicated enforcement layer that evaluates every request before it reaches the model, giving teams a simple way to apply policies, protect sensitive data, and operate AI systems with confidence.
Decide what happens to every request.
Firewall evaluates each request against built-in and custom rules, then applies the configured action. Allow it, block it, or pass it forward with guardrail context.
Enforce policy without forcing every request down the same path.
Firewall lets you choose how every policy is enforced. Continue matching requests with guardrail context when guidance is enough, or block them before they ever reach the model.
Prompt injection
Detects instructions designed to override or manipulate model behavior.
Prompt inspection
Protect common AI risks from day one.
Firewall includes a curated set of production-ready policies that help prevent common risks such as prompt injection, sensitive data exfiltration, abuse, and unsafe content. Enable them instantly, keep them updated automatically.
Create custom rules in plain language.
Firewall evaluates every request against the policies you define and applies the selected action automatically. Use the same allow, block, and audit modes as built-in rules without building your own moderation pipeline.
policy = Maintained coverage for common
AI safety, privacy, abuse,
and security risks.
Define policies in plain language.
Apply them through the same
Firewall enforcement path.
Continue matching requests
with guardrail context for
safer model responses.
Return an error before target
model invocation, keeping
blocked requests out.
Attach Firewall to supported
chat completions without
changing your SDK flow.
Choose the evaluator model
that reviews policies before
a request reaches its target.
from openai import OpenAI
client = OpenAI(
base_url="https://api.qdiv0.com/v1",
api_key="your-api-key",
)
response = client.chat.completions.create(
model="moonshotai/Kimi-K3",
messages=[
{"role": "user", "content": prompt},
],
extra_body={{"firewall": "production-guardrails"}},
)Add Firewall with a single request field.
Attach a Firewall policy to your request, and every prompt is evaluated before it reaches the model. No additional infrastructure, proxies, or SDKs required—just reference the policy and Firewall handles the rest.