Support and salesSupport / sales
Unlimited Basic and ProFrom €14.95/month · Unlimited models subject to fair use

Documentation

Guides for deploying models, connecting the OpenAI-compatible API, and configuring routing, protection, and retrieval.

Inference API

Protect a request with LLM Firewall

Evaluate a supported chat request before the selected model receives it.

Attach the policy

Pass the firewall slug as a top-level request field. QDivZero resolves the policy for the account and evaluates the user input before inference.

firewall.py
1response = client.chat.completions.create(
2    model="your-serving-name",
3    messages=[{"role": "user", "content": "..."}],
4    extra_body={"firewall": "customer-input"},
5)

Decision order

LLM Firewall evaluates first. If the request continues, QDivZero exposes the configured tools and calls the selected backend. A blocked request never reaches the model.

API example

Attach an existing firewall slug and a compatible model; replace my-model and customer-input.

Set QDIV0_API_KEY to an account tk_ key or personal uk_ key. A personal key uses its default account unless you select another with X-Account-ID.

api-example.sh
1curl --fail-with-body \
2  --request POST \
3  "https://api.qdiv0.com/v1/chat/completions" \
4  -H "Authorization: Bearer $QDIV0_API_KEY" \
5  -H "Content-Type: application/json" \
6  --data '{"model":"my-model","messages":[{"role":"user","content":"Hello"}],"firewall":"customer-input"}'