Skip to content
Fourohtwo

Detects prompt injection and jailbreak attempts in untrusted text

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

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

BaseMonadPolygonArbitrumSolanaAnswering
GEThttps://1gateway.dev/v1/ai/injection-detect

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://1gateway.dev/v1/ai/injection-detect?text=Meeting+notes+for+Q3%3A+the+launch+is+scheduled+for+Tuesday%2C+and+Dana+will+send+the+customer+update+afterwards.");
console.log(await res.json());

Example input

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