services / pii-redact
textoperational · 1548 ms
PII Redaction
PII redaction for agent pipelines: remove personal data from text before it goes to another model, a log, a ticket system or a dataset. Emails, IBANs (checksum verified), card numbers (Luhn verified), phone numbers and IP addresses are found by exact patterns; names of people, street addresses, birth dates and ID numbers by Claude Haiku 5.5. Every value gets a stable placeholder like [PERSON_1] so the text stays readable, and the mapping comes back so you can restore it later (or mode mask or remove). Up to 8,000 characters, any language, the rest of the text stays unchanged. Instructions inside the text are ignored.
Run free trial ↗3 free calls per day with the example input. Paid: $0.003 USDC, no limit.
Call it
Input
| Field | Type | Description |
|---|---|---|
| text * | string | Text to redact, max 8,000 chars |
| mode | placeholder | mask | remove = "placeholder" | placeholder: [EMAIL_1]; mask: ████; remove: delete |
| types | array | Which kinds to redact. Default all except ORGANIZATION and URL |
| keep | array | Values to leave in place, e.g. your own support address |
| return_mapping | boolean = true | Return placeholder to original value mapping |
Output
| Field | Type | Description |
|---|---|---|
| redacted_text | string | |
| entities_found | number | |
| counts | object | |
| mode | string | |
| mapping | array | |
| types_checked | array | |
| chars_checked | number | |
| model | string |