Skip to main content

Redact personal data

POST 

/redact

Finds personal data in text (names, email addresses, phone numbers, postal addresses, account numbers and more) and masks it, in the privacy filter's own format, with privacy-filter (alias openai/privacy-filter). model is optional. At most 256 inputs and a body of 192 KiB (196,608 bytes) per request. The text sent is processed in memory only: it is never written to disk or logs and never used for training.

The request is billed on an estimate: ceil(characters of all inputs / 4) tokens, with characters counted as Unicode code points. The answer carries no usage. Only Serenity Edge API keys can use this route. See the Embeddings, rerank and redaction guide.

Request​

Responses​

For a string in inputs, one result: the text with each item found masked, and the items found. For an array, an array of results in input order.