Real-time detection of prompt injection, jailbreak and attack-pattern retrieval, PII leaks, data exfiltration, toxicity, fraud & abuse, secret keys, API keys, malware, URL threats, tool injection, malicious entities, code vulnerabilities, gibberish, and language policy. 15 detectors (10 always-on, 5 opt-in), backed by ~1,000+ patterns out of the box.
Every request passes through PromptGuard's security layer before reaching your LLM provider.
ML models and ~1,000+ detection patterns analyze the request across 15 detectors (10 always-on, 5 opt-in). Deterministic checks clear most traffic in under 10 ms; requests escalated to ML or an LLM judge are network-bound and slower.
Malicious requests are blocked, logged, and alerted. Safe requests pass through unmodified.
from openai import OpenAI
# Just change your base URL - that's it!
client = OpenAI(
base_url="https://api.promptguard.co/api/v1",
api_key="your-openai-key",
default_headers={
"X-API-Key": "pg_live_xxxxxxxx"
}
)
# All requests are now protected
response = client.chat.completions.create(
model="gpt-5-nano",
messages=[{"role": "user", "content": user_input}]
)
# Malicious prompts are automatically blocked
# No code changes needed!Start blocking prompt injection and other threats in under 2 minutes. No code changes required.