Prompt injection classifier
security_prompt_injectionUse when untrusted text - an email, a web page, another tool's output - enters a model's context and may carry instructions aimed at your agent. Returns safe/suspicious/malicious, a 0-1 score and each match with its excerpt, offset and what it would do. Also decodes base64, hex, URL-encoded and reversed payloads, and flags invisible characters. Deterministic, no model, and it says what it could not inspect. Not for ERC20 contracts (/v1/evm/token-safety). Flat price, no key. $0.005 per call, paid over x402 (USDC).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The untrusted text to classify, up to 32 kB. Anything longer is truncated and the response says so in unknown[]. | |
| source | No | Optional label echoed back, so a batch of calls can be matched to its items (for example "email:1842"). |