Detect and redact PII from any text. Instantly.

Permanent redaction for compliance. Reversible sanitization for AI workflows. One API, two modes, zero exposure.

# Redact — permanent PII removal:
clean = ambientmeta.sanitize("Patient: John Smith, SSN 123-45-6789", mode="redact")
# clean.text → "Patient: [PERSON_1], SSN [SSN_1]"  (PII gone forever)

# Sanitize — reversible for LLM workflows:
safe = ambientmeta.sanitize("Summarize John Smith's file at john@acme.com")
reply = your_llm(safe.text)  # LLM sees placeholders, never real data
final = ambientmeta.rehydrate(reply, safe.session_id)  # restores originals

Two modes. One detection engine.

Permanent redaction for compliance. Reversible sanitization for AI. Same API, different outcomes.

mode: "redact"

AmbientMeta Redact

PII is permanently removed. No session created. No recovery possible. Ship it to auditors, store it in logs, share it freely.

For: FOIA, DSARs, compliance exports, log scrubbing
"SSN: 123-45-6789" → "SSN: [SSN_1]"
permanent — no rehydration
Compliance, Legal, Government
or
mode: "sanitize"

Sanitize + Rehydrate

PII is replaced with safe placeholders. Send clean text to any LLM. Restore originals when you need them back.

For: LLM workflows, chatbots, RAG pipelines
"John Smith" → [PERSON_1] → LLM → [PERSON_1] → "John Smith"
Engineering Teams, AI Developers

How It Works

Two API calls. That's it.

1

Sanitize

Send us text, we replace PII with safe placeholders.

2

Call Any LLM

Send the safe text to Claude, GPT-4, Gemini — whatever you want.

3

Rehydrate

Send us the LLM response, we restore original values.

Your App
Sanitize
External LLM
Rehydrate
Your App

What we detect

Standard PII

Person Names John Smith Email john@acme.com Phone (555) 123-4567 SSN 123-45-6789 Credit Card 4532-xxxx-9012 Location New York, NY Address 123 Main St

Healthcare

NPI 1234567890 MRN Medical Record # DEA AB1234567

Custom

Your Patterns EMP-123456, PROJ-2026-A, ...

The more you use it, the smarter it gets.

Corrections train disambiguation rules. No retraining. No model updates. Deterministic.

Integrations

  • Python SDK pip install ambientmeta
  • LangChain pip install langchain-ambientmeta
  • LlamaIndex pip install llama-index-ambientmeta
  • OpenAI Drop-in wrapper
  • Anthropic Drop-in wrapper
from langchain_ambientmeta import PrivacyGateway

gateway = PrivacyGateway(api_key="am_live_xxx")
safe_llm = gateway.wrap(your_llm)

# PII handled automatically
response = safe_llm.invoke("Summarize the file")
SOC 2 Type II HIPAA Ready GDPR Compliant PCI-DSS Safe

AI your security team will approve.

PII never touches external APIs. Self-hosted option available. Detailed audit logs for every request.

Ready to stop leaking sensitive data?

Create your account in 30 seconds. No credit card required.

Get Started Free