← All models · Prompt-injection detection
use case · basics · WASM · ~739 MB
Every prompt-injection classifier returns two softmax probabilities: SAFE and INJECTION. Pick a preset or write your own prompt to inspect the exact probability split, watch the confidence gauge move in real time, and tune the block threshold to see how a real guardrail trades false positives against missed attacks.
Preset prompts (benign vs attack):
The dark tick marks your active block threshold on the arc.
protectai/deberta-v3-base-prompt-injection-v2 outputs a two-class softmax over
SAFE and INJECTION. Lowering the threshold (for example to 25%)
catches subtler indirect attacks at the cost of flagging more unusual benign prompts; raising it
(for example to 80%) reduces false alarms on legitimate users while letting borderline
attacks through. Moving the slider re-evaluates the real model score immediately without re-running
inference.