Betaraipii is in early access. Not all features are released yet. Share feedback
Now available on AWS Marketplace

PII-safe prompts,
in one API call

Detect and sanitize PII before it reaches your LLM. Replace real data with tokens or realistic fakes. Restore original values after the model responds.

Available forPythonNode.jsHTTP
Python
# Before: raw prompt hits your LLM
prompt = "Help John Smith (john@acme.com, SSN 392-45-7810)"

# Sanitize with raipii
result = ps.sanitize(prompt, mode="fake_substitute")
# → "Help Michael Torres (m.torres@email.net, SSN 847-23-1956)"

# Restore after LLM responds
original = ps.restore(llm_response, result.session_id)
# → Real names/emails back in the response

Or use proxy mode — one line change, zero code rewrites

OpenAIOpenAI
AnthropicAnthropic
GeminiGemini
GroqGroq
MistralMistral
DeepSeekDeepSeek
Before → After
- client = OpenAI(api_key="sk-...")+ client = OpenAI(api_key="ignored",+     base_url="https://api.raipii.com/v1/proxy/openai",+     default_headers={"X-LLM-API-Key": "sk-..."})

PII is sanitized before it reaches the LLM and restored in the response. Requires Growth tier. Learn more →

Everything your LLM pipeline needs

High-accuracy detection

Detects both structured PII (SSN, credit cards, JWTs) and contextual entities (names, addresses) with high precision.

Fake data substitution

Replace PII with realistic synthetic values. LLMs reason naturally over fake data and produce better output.

HIPAA-ready

Enable HIPAA mode to ensure no PHI is sent to any external service. All detection runs within your region.

Multi-turn sessions

Conversation sessions keep consistent substitutions across all turns. Same entity → same fake.

LLM Proxy mode

Change one line of code. raipii sits between your app and any LLM provider — no SDK changes required.

Simple, usage-based pricing

Billed by characters processed. No seat fees.

Starter

$0free forever

2M chars/month

  • Token + redact modes
  • PII detection
  • 1hr session TTL
  • Community support
Get started

Growth

$49per month

100M chars/month

  • All substitution modes
  • Enhanced PII detection
  • Fake data generation
  • 24hr conversation sessions
  • LLM Proxy mode
  • Email support
Start free trial

Business

Custom

1B+ chars/month

  • Everything in Growth
  • Private network connectivity
  • HIPAA mode
  • EU data residency
  • GDPR erasure API
  • Slack support
Contact us

Start sanitizing prompts in 5 minutes

No infrastructure. No Docker. One API key.

Try the playground