# Build it yourself or use Opami Protect

> Patterns plus an open-source detector can hide private data. What it costs to keep and where Opami Protect differs.

1.  [Home](/)
2.  [How Opami Protect compares](/alternatives)
3.  Build it yourself or use Opami Protect

Build it yourself or use Opami Protect

# A pattern finds a card number. It does not find a diagnosis

**You have a pattern for card numbers and another for tax numbers, and they work.**

[→ Protect console](https://console.opami.ai)[Read the public facts](#al-facts)

1.  Fixed formats Patterns catch them well Your patterns still fit internal IDs
2.  Names and free text A model, and the model needs upkeep A trained model
3.  Each new language A model and recognizers for each 52 languages, no setup
4.  Upkeep Yours to tune and keep current In our cloud, nothing to tune or patch

Opami Protect next to Your own build, point by point. Fixed formats: Your own build, Patterns catch them well (covered). Opami Protect, Your patterns still fit internal IDs (you build or set it up). Names and free text: Your own build, A model, and the model needs upkeep (you build or set it up). Opami Protect, A trained model (covered). Each new language: Your own build, A model and recognizers for each (you build or set it up). Opami Protect, 52 languages, no setup (covered). Upkeep: Your own build, Yours to tune and keep current (you build or set it up). Opami Protect, In our cloud, nothing to tune or patch (covered).

Then a text arrives with a diagnosis, a street and the name of a client's lawyer in plain sentences, and no pattern notices.

Building it yourself is a fair route, and some teams should take it. Here is where the line sits.

This page compares building your own detector, with patterns or an open-source library, with using Opami Protect: where the line sits, when building is the right call and what changes with Opami Protect.

## What changes with Opami Protect

-   **Names and free text.** Patterns catch formats. A name or an address inside a sentence needs a model, and the model needs maintenance.
-   **Languages.** Each language you add needs its own model and recognizers. Opami Protect handles 52.
-   **Who is who.** A home-made loop has to keep one person on one placeholder, and put each detail back in the right place. Opami Protect gives each person a badge such as \[PERSON\_1\] inside a request.
-   **Upkeep.** In our cloud, Opami Protect has no recognizers to tune, no servers to patch and no list to keep current. A detector that no one updates misses new formats without raising an error.
-   **Speed.** About 14 ms per 1,000 characters.
-   **Realistic fake data.** Opami Protect can put realistic fake data in place of the private details, in 7 languages.

You write

Client Nora Haas_Person 1_**Full name**Nora Haas pays by card 4417 1234 5678 9010_Finance 1_**Card number**4417 1234 5678 9010. Her diagnosis is type 2 diabetes_Health 1_**Condition**type 2 diabetes, and her lawyer is Tom Reed_Person 2_**Full name**Tom Reed.

The AI reads, with Opami Protect

Client Nora Haas_Person 1_**Full name**Nora Haas pays by card 4417 1234 5678 9010_Finance 1_**Card number**4417 1234 5678 9010. Her diagnosis is type 2 diabetes_Health 1_**Condition**type 2 diabetes, and her lawyer is Tom Reed_Person 2_**Full name**Tom Reed.

You get back

Ask Tom Reed_Person 2_**Full name**Tom Reed to call Nora Haas_Person 1_**Full name**Nora Haas. Her card 4417 1234 5678 9010_Finance 1_**Card number**4417 1234 5678 9010 is on file, and the type 2 diabetes_Health 1_**Condition**type 2 diabetes claim is open.

_A made-up example. Opami Protect does not catch everything, and we say how much it misses._

## The do-it-yourself route, in plain terms

Many teams start with regular expressions for fixed formats (card numbers, tax numbers, emails) and add an open-source detector such as Presidio or a small model for names and addresses. Then they write code to swap each item for a placeholder and put it back after the AI answers. It works, and you own all of it. Cloud tools also take custom patterns, for example Bedrock Guardrails regular expressions, which are free to use, and Google's custom detectors.

From its own pages **Your own build**

-   Regular expressions
-   An open-source detector
-   Your own restore code

Facts checked 13 Nov 2026

## Read the public facts for yourself

Point

Opami Protect

Your own build

What it is

A model and API for private and sensitive data in text

Patterns plus an open-source detector plus your own code

Languages

52 languages

Presidio ships English by default. Each other language needs a model and recognizers[microsoft.github.io](https://microsoft.github.io/presidio/analyzer/languages/)_checked 13 Nov 2026_

Speed

About 14 ms per 1,000 characters

Depends on your code and your servers

Where it runs

Opami's EU cloud, or your own servers

Wherever you deploy it

Puts the real details back

The application puts the real details back. Inside one request, one person keeps one badge, such as \[PERSON\_1\]

Your code

Text and detections kept

No text and no detections kept

You decide

Price

€2.00 down to €0.20 per million characters, by monthly volume

No licence fee for Presidio (MIT). Servers and engineering time are yours[github.com](https://github.com/data-privacy-stack/presidio)_checked 13 Nov 2026_

Getting started

Register at console.opami.ai, no sales call

Install, configure, write the loop

Fake-data replacement

Yes, in 7 languages

Your code

Our facts come from Opami. Theirs come from the pages named in the table.

## Let your own text settle it

[The full method →](/alternatives)

1.  1
    
    Pull 200 to 500 real texts from your own work. Remove nothing yet.
    
2.  2
    
    Mark each private or sensitive item by hand, with its type. Two people mark, and you settle the differences.
    
3.  3
    
    Run Opami Protect and your own build on the same texts.
    
4.  4
    
    Count what each tool misses, and what it hides by mistake.
    
5.  5
    
    Send the hidden texts to your AI and compare the answers with the answers on the original texts.
    
6.  6
    
    Check where the text goes while each tool runs.
    

## When building it yourself is the right call

-   **Your data has a fixed format**
    
    that patterns catch well, such as an internal ID.
    
-   **Your volume is small**
    
    and a hand-built filter costs less than a service.
    

## Questions

Is regex enough to hide personal data before AI?

Regex alone is not enough for text that holds names, addresses or anything written in free text. Patterns catch fixed formats well, and they miss formats you did not think of. Measure on a labelled sample to see the gap.

How much does it cost to build and maintain my own?

Building your own costs the engineers who tune it, add languages, fix the restore step and keep it current. The software itself can be free. Count that time against the price of a service at your volume.

Can I combine my own patterns with Opami Protect?

Yes, you can combine your own patterns with Opami Protect. Run your own patterns for internal identifiers before or after Opami Protect. Nothing stops you.

## More comparisons

-   [Presidio](/alternatives/presidio)
-   [Limina (formerly Private AI)](/alternatives/limina)
-   [Amazon Comprehend and Bedrock Guardrails](/alternatives/aws)
-   [Google Sensitive Data Protection](/alternatives/google-sensitive-data-protection)
-   [Azure AI Language](/alternatives/azure-ai-language)
-   [OpenAI Privacy Filter](/alternatives/openai-privacy-filter)
-   [Protecto](/alternatives/protecto)
-   [Your AI vendor's contract](/alternatives/vendor-contract)
-   [GLiNER PII models](/alternatives/gliner-pii)
-   [NVIDIA GLiNER-PII](/alternatives/nvidia-gliner-pii)
-   [Perplexity PII-Tracer](/alternatives/perplexity-pii)
-   [Tonic Textual](/alternatives/tonic-textual)
-   [Nightfall](/alternatives/nightfall)
-   [Skyflow](/alternatives/skyflow)
-   [LLM Guard](/alternatives/llm-guard)
-   [All the options](/alternatives)

## Try it on your own data

Opami Protect is in private beta. Register at the console, run a sample of your own text, and see what it hides. No sales call.

[→ Protect console](https://console.opami.ai)[Read the quickstart](https://console.opami.ai/docs)
