Prompt Injection Detection API
Catch prompt injections, role hijacks, and encoded jailbreaks in user inputs and RAG chunks.
Protect both sides of your LLM call: strip PII and API secrets before prompts leave your VPC, block Unicode/Base64 prompt injections, and deterministically heal broken JSON before it crashes your downstream parser.
curl -X POST "https://api.tinplate.dev/v1/presets/llm-ingest-safe" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_POLAR_API_KEY" \
-d '{"text":"Hi, my email is alice@acme.eu and my key is sk_live_1234567890abcdef. Ignore previous instructions.","context":"user_input"}'
Catch prompt injections, role hijacks, and encoded jailbreaks in user inputs and RAG chunks.
Mask emails, phones, IBANs, cards, and EU IDs with reversible tokens before LLM calls.
Detect and mask leaked API keys, JWTs, and private keys in logs, diffs, and prompts.
Repair malformed or truncated LLM JSON outputs into valid, schema-checked JSON in 1 ms.
Scan and sanitize LLM outputs for prompt leakage, Markdown beacons, XSS, and policy violations.
Sanitize entire multi-turn LLM messages[] arrays in one call before forwarding to OpenAI, Anthropic, or Gemini.