← Back to directory

Detects prompt injection and jailbreak attempts in untrusted text. Use when an a...

https://1gateway.dev/v1/ai/injection-detect

Overview

Detects prompt injection and jailbreak attempts in untrusted text. Use when an agent must screen a web page, email, tool output or RAG chunk first. Input: text (max 20,000 chars; GET or POST) or url. Output: JSON probability 0-1, verdict (injection >=0.7, suspicious >=0.35), attackTypes (e.g. instruction_override), spans with offsets, type and rule, sanitizedText minus flagged spans, method (rules + open model). Example: ?text=Meeting notes for Q3

Protocol x402
Price $0.0050
Payment Asset USD Coin
Payment Network Base
Category uncategorized
Provider Injection Detect
Source bazaar
Indexed 2026-12-01 21:25:07

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "method": "GET", "queryParams": { "text": "Meeting notes for Q3: the launch is scheduled for Tuesday, and Dana will send the customer update afterwards." }, "type": "http" }

Output Schema

{ "example": { "attackTypes": [], "checkedChars": 109, "disclaimer": "Heuristic screening, not a guarantee. Treat susp…", "method": { "combine": "0.4*rules + 0.6*model; if model >= 0.9, at least…", "mode": "rules+model", "model": { "checkedChars": 109, "name": "@cf/google/gemma-4-26b-a4b-it", "probability": 0.02, "reason": "Ordinary meeting notes with no instructions aime…" }, "note": null, "rules": { "notes": [], "probability": 0 }, "thresholds": { "injection": 0.7, "suspicious": 0.35 } }, "probability": 0.012, "sanitizedText": "Meeting notes for Q3: the launch is scheduled fo…", "spans": [], "verdict": "clean" }, "type": "json" }