Sanitext

Sanitext vs Google Cloud DLP

Sanitext is the better Google Cloud DLP alternative when you want flat, predictable pricing and a 60-second setup. DLP (now Sensitive Data Protection) charges $1-3 per GB, has a 1KB-per-request minimum that punishes small calls, and needs IAM, VPC, and templates. Sanitext is one API key.

Google Cloud DLP, now called Sensitive Data Protection, is a strong PII scanner with 150+ infoTypes. But it bills per gigabyte, has a 1KB minimum per request, and lives behind GCP IAM, templates, and VPC Service Controls. Sanitext is a flat-priced, self-serve API for the same core job: detect and redact PII. Here is an honest comparison so you can pick the right tool.

Sanitext vs Google Cloud DLP (Sensitive Data Protection)

SanitextGoogle Cloud DLP
Pricing modelFlat monthly plans + low overage ($0.35-0.60 / 1M chars)Per byte: ~$2-3/GB inspect, ~$1-2/GB de-identify, 1KB-per-request minimum
Free tierOne-time 300K chars, no card, never resetsGCP free credits, then metered; no standalone free PII tier
Languages30+ languages out of the box150+ infoTypes, many country-specific
Redaction outputSpans (label, offsets, score, text) + [LABEL] maskingMask, redact, format-preserving encryption, tokenization
Self-serve setupSign up to curl in ~60 seconds, one API keyGCP project, IAM, inspection + de-id templates, often VPC-SC
Where your data goesOwn Cloudflare infra, no third-party LLM, no raw-text retentionInside Google Cloud / GCP services
Best forReal-time text, logs, prompts, tickets at predictable costPetabyte-scale scans already living in BigQuery / GCS

What is Google Cloud DLP?

Google Cloud DLP, rebranded as Sensitive Data Protection, is part of Google Cloud. It inspects text, images, and structured data for sensitive information and can de-identify it through masking, format-preserving encryption, redaction, or tokenization.

It is powerful and broad. It detects 150+ infoTypes (names, emails, card numbers, national IDs, and more) and integrates deeply with BigQuery, Cloud Storage, and other GCP services. That depth is also its cost: you configure inspection templates, de-identification templates, IAM roles, and often VPC Service Controls before your first call.

Pricing is per byte. Content inspection runs about $2-3 per GB and de-identification about $1-2 per GB, with a 1KB minimum charged per request. The 1KB floor means short calls (a chat message, a log line, a support ticket) get billed as if they were 1KB, so the metered model only gets cheap at very large batch scale.

Sanitext vs Google Cloud DLP: feature and price comparison

Both tools find and mask PII. The difference is the pricing model, the setup, and where your data goes. Sanitext runs an open-weights model on its own Cloudflare infrastructure, so there is zero per-token AI cost and pricing stays flat. DLP charges by the gigabyte and rewards huge batch jobs over small real-time calls.

When Google Cloud DLP is the better choice

We will be honest. Google Cloud DLP is the better fit in several real cases, and you should use it when they apply.

Pick DLP if you are scanning huge volumes of data already sitting in GCP, like petabytes in BigQuery or Cloud Storage. Per-byte billing gets cheap at that scale, and the native connectors save you from building pipelines.

Pick DLP if you need 150+ infoTypes including many country-specific national ID and government formats that Sanitext does not cover. Sanitext focuses on common entity types: names, emails, phones, addresses, dates, URLs, account and card numbers, and secrets.

Pick DLP if you need format-preserving encryption or reversible tokenization for analytics that must keep the data shape. Sanitext redacts to clear placeholder labels like [EMAIL]; it does not encrypt or re-identify.

Pick DLP if your security team requires everything inside GCP under VPC Service Controls and existing IAM policy. If you already live in Google Cloud, staying there can be the right call.

Where Sanitext wins

For real-time text redaction in apps, logs, prompts, and tickets, Sanitext is simpler and cheaper to reason about.

Flat, predictable pricing. Plans start free (one-time 300K characters, no card, never resets), then Hobby $29/mo for 12M chars, Pro $149/mo for 120M, and Scale $499/mo for 450M. Overage is $0.35-0.60 per 1M characters, up to about 2x cheaper than metered hyperscaler rates. No 1KB minimum, so short calls do not get overcharged.

Sixty-second self-serve. Sign up, pay through Stripe, get an API key, and run a curl. No IAM roles, no inspection or de-identification templates, no VPC setup, no GCP project at all.

Clean redaction output. POST /v1/detect returns entity spans with label, byte offsets, score, and matched text. POST /v1/redact returns the text with each span masked as [LABEL], ready to log or send to an LLM.

Privacy by design. Your text is processed on Sanitext infrastructure, never sent to a third-party LLM. We log counts and timings only, with no raw-text retention. EU data residency and a DPA are available on Enterprise.

Multilingual by default. Sanitext detects PII in 30+ languages out of the box, no per-language template tuning.

How to switch from Google Cloud DLP to Sanitext

Migration is straightforward because the core job is the same: send text, get spans or redacted text back.

1. Map your infoTypes to Sanitext labels. DLP infoTypes like PERSON_NAME, EMAIL_ADDRESS, PHONE_NUMBER, and CREDIT_CARD_NUMBER map to Sanitext labels FIRSTNAME, LASTNAME, EMAIL, PHONE, and ACCOUNT or card detection. Note any country-specific infoTypes Sanitext does not cover so you can keep DLP for those if needed.

2. Replace the call. Swap your projects.content.deidentify request and its inspection or de-identification template for a single POST to /v1/redact with your API key. There are no templates to maintain.

3. Drop the placeholder mapping. DLP returns your configured masking or surrogate format; Sanitext returns [LABEL] placeholders. If a downstream system expects DLP-style output, do a one-time find-and-replace on the label format.

4. Test on a sample and compare spans. Run both tools over the same batch, diff the detected entities, and confirm coverage on your actual data before cutting over. You can do this on the free tier first.

bash

curl -s https://api.sanitext.app/v1/redact \
  -H "Authorization: Bearer $SANITEXT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"Email Dr. Ana Ruiz at ana.ruiz@acme.es or call +34 612 345 678."}'

# => {"text":"Email [PREFIX] [FIRSTNAME] [LASTNAME] at [EMAIL] or call [PHONE]."}

FAQ

Is Sanitext cheaper than Google Cloud DLP?+

For real-time and small calls, usually yes. DLP charges $1-3 per GB with a 1KB-per-request minimum, so short texts get overbilled. Sanitext uses flat plans (free, $29, $149, $499/mo) and $0.35-0.60 per 1M chars overage, up to ~2x cheaper than metered hyperscaler rates.

Does Sanitext support format-preserving encryption like DLP?+

No. Sanitext redacts detected PII to clear placeholder labels like [EMAIL] or [PHONE]. It does not do format-preserving encryption, tokenization, or re-identification. If you need reversible, shape-preserving transforms for analytics, Google Cloud DLP is the better fit for that specific feature.

Can I use Sanitext without a Google Cloud account?+

Yes. Sanitext is fully independent of GCP. You sign up, pay through Stripe, get an API key, and call the API directly. There is no GCP project, no IAM, no VPC Service Controls, and no inspection or de-identification templates to configure.

How many entity types and languages does Sanitext detect?+

Sanitext detects common PII across 30+ languages: first and last names, emails, phone numbers, postal addresses, dates, URLs, account and card numbers, and secrets like API keys and tokens, plus prefixes like Dr. DLP offers more infoTypes (150+), including many country-specific IDs.

Is Sanitext an anonymization or compliance guarantee?+

No. Sanitext is a redaction and data-minimization aid, not an anonymization or compliance guarantee. It helps you reduce exposed PII before logging or sending text to an LLM, but you remain responsible for your own GDPR, HIPAA, or other regulatory obligations.

Try Sanitext free

Get 300K characters free, no card. Sign up, grab an API key, and redact PII with one curl in about 60 seconds. Test it against your DLP setup before you switch.

Get your free API key