PII filter
The PII filter masks personally identifiable information with *. This feature requires an Enterprise license. Contact us via the Pricing page.
Supported PII types
- Names
- Addresses
- Personal identifiers
- Phone number
- National ID
- Passport number
- Bank account number
- Card number
- Driver’s license number
- Vehicle plate number
You can tune behavior via the pii_preset parameter:
all(default)- Preserve original text; mask only PII characters with
*.
- Preserve original text; mask only PII characters with
finance- Restore 8-digit non-birthdate numbers (e.g., verification codes)
- Add hyphens to masked national IDs and phone numbers
- Validate 15–16 digit card numbers; mask valid ones with hyphens, restore invalid ones
Usage Examples
allOriginal Filtered result "010-666-0098로 전화해 건조기 렌탈을 하니 사은품으로 방향제를 줬다." "***********로 전화해 건조기 렌탈을 하니 사은품으로 방향제를 줬다." "김남길 배우님하고 찍은 무뢰한이라는 작품을 보고" "*** 배우님하고 찍은 무뢰한이라는 작품을 보고" "지난달에 갔던 레스토랑 주소가 무명시 무명로11번길 1층 무명레스토랑 맞지?" "지난달에 갔던 레스토랑 주소가 *** ******* ** ****** 맞지?" "이 분 주민번호 010203에 4567890입니다." "이 분 주민번호 ******* *******입니다." "카드번호는 9908105325960905입니다." "카드번호는 ****************입니다." "잘못된 카드번호 1234567890123456입니다." "잘못된 카드번호 ****************입니다." financeOriginal Filtered result "010-666-0098로 전화해 건조기 렌탈을 하니 사은품으로 방향제를 줬다." "***-***-****로 전화해 건조기 렌탈을 하니 사은품으로 방향제를 줬다." "김남길 배우님하고 찍은 무뢰한이라는 작품을 보고" "*** 배우님하고 찍은 무뢰한이라는 작품을 보고" "지난달에 갔던 레스토랑 주소가 무명시 무명로11번길 1층 무명레스토랑 맞지?" "지난달에 갔던 레스토랑 주소가 *** ******* ** ****** 맞지?" "이 분 주민번호 010203에 4567890입니다." "이 분 주민번호 010203-4******입니다." "카드번호는 9908105325960905입니다." "카드번호는 ****-****-****-****입니다." "잘못된 카드번호 1234567890123456입니다." "잘못된 카드번호 1234567890123456입니다."
Configuration
Set use_pii to true and select a pii_preset:
all(default)finance
Usage
Set use_pii: true and choose a pii_preset.
In the POST Request body, set use_pii: true and choose pii_preset (e.g., all, finance).
POST example: Example
Unified example (presets): Example