SafePrompt Documentation

LLM security that's zero-config and production-ready

🚀

Quick Start

Get up and running in 5 minutes with our simple API integration.

Get Started →
📚

API Reference

Complete API documentation with request/response examples in multiple languages.

View API Docs →
🎯

Best Practices

Learn how to implement multi-turn protection, caching, and fail-open strategies.

Learn More →

What SafePrompt Protects Against

Prompt Injection

Detects and blocks attempts to override system instructions

Jailbreaks

Stops attempts to bypass safety guardrails

Data Extraction

Prevents system prompt and sensitive data leakage

Code Injection

Blocks XSS, SQL injection, and template attacks

How It Works

SafePrompt uses a multi-layer validation pipeline that balances speed, accuracy, and cost through intelligent early-exit optimization.

0

External Reference Detection

Instant detection of URLs, IP addresses, and file paths with action-based blocking.

⚡ 0ms🎯 5% of attacks💰 $0 cost
1

Pattern Matching

Fast regex detection of known attack patterns (XSS, SQL injection, template exploits).

⚡ <10ms🎯 67% of attacks💰 $0 cost
2

AI Validation - Pass 1

Fast AI model analyzes prompts that pass pattern detection for semantic threats.

⚡ Fast response🎯 Most AI validations
3

AI Validation - Pass 2

High-accuracy model handles edge cases and ambiguous prompts when Pass 1 is uncertain.

⚡ Thorough analysis🎯 Complex cases only

Performance Profile

  • ✓Most requests: Instant response via pattern/reference detection
  • ✓Some requests: Fast AI validation when needed
  • ✓Complex cases: Deep analysis for edge cases
  • →Result: Fast response times with high accuracy