Production analyze endpoint: deterministic rules + Galvanize 2 neural engine
Changed onA request is evaluated by deterministic regex & AST rules (<0.1 ms) and scored by the Galvanize 2 neural engine (fine-tuned from Horizon-Labs/prompt-injection-guard-small, Apache-2.0; scores 512 tokens at a time, and inputs of more than 2,000 characters in windows; full-precision ONNX on CPU). The verdict is block when the rules engine matches or the model score reaches the applied threshold (0.662); allow otherwise. If Galvanize 2 is unavailable, the previous model, Galvanize-60M, scores the request at its own threshold (0.95). Response bodies carry the model version (zn-galvanize2-fp32-s512, or zn-galvanize60m-int8-s512 when the fallback decided), the applied threshold and which signal decided the outcome. Self-hosted deterministic rules run in <0.1 ms. Held-out results for Galvanize 2 at 0.662: 83.4% recall, 0.81% false positive rate.
Request
- Base URL: https://api.usezn.com
- URL: https://api.usezn.com/v30/analyze
- Auth: one of:
- HTTP bearer
- OAuth 2 (client credentials, token URL https://dev-hpfq4tffrj4acggc.us.auth0.com/oauth/token, scopes: write:analyze)
Request body
Response
Combined verdict for the submitted input. Includes model observability headers whenever the model ran.
Changes
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- info
endpoint added
- info