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.

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

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.

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
  • 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