PII detection (token classification) — returns spans for emails, phones, addresses, names, account numbers, secrets. NEAR AI runs this model in a TEE; prompts are not anonymized by the model itself, the cloud-api wraps it to do redaction.
Sample code and API for Privacy Filter
This model uses a dedicated classification endpoint, not chat completions. Use /v1/privacy/classify to detect PII spans or /v1/privacy/redact to replace them inline.
Verify Privacy Filter
This model is hosted in a GPU TEE. TEE enables strong privacy with end-to-end encryption for data in transmission and in use. TEE protects the entire lifecycle of the model inference and gives you a proof of the execution. It allows you to verify that the given a model and an input, it produces a specific output both onchain and offchain.
Check out the docs for more details.Get the attestation report.