By ·

By ·

Docs / Credit System

Understanding the Token System

Tokens are the unit of usage on anonym.legal. Think of them as coins: every analyze, anonymize, or decrypt operation costs a small number, and you can see the exact cost before each run.

What is a token?

A token is a usage credit. We deduct a small number of units each time you scan for PII, swap in placeholders, or restore the originals. You always know the cost up front. You only pay for operations that succeed.

Heads-up: on anonym.legal the word “token” means two different things. This page is about billing credits — the credits you spend on operations. Elsewhere on the site we also talk about tokenized PII, which is the technical placeholder (like <PERSON_1>) that replaces a name in your text. Those are not billing units, and you don’t pay for them directly.

At a glance

  • Free
    200/cycle
    Enough to try the platform on a few small documents.
  • Basic — €3 / month
    1,000/cycle
    Comfortable for occasional document anonymization.
  • Pro — €15 / month
    4,000/cycle
    Regular processing across many documents.
  • Business — €29 / month
    10,000/cycle
    Heavy daily use, batch jobs, and API integrations.

Unit allocations reset at the end of each billing cycle (30 days for Free, 31 days for paid plans). Unused credits do not roll over.

What spends tokens?

Analyze

Scan text and report what PII is in it. The most common operation.

Anonymize

Detect PII and transform it (replace, redact, mask, hash, or encrypt). Costs a bit more than analyze.

Decrypt

Restore originals from encrypted output. Cheaper than analyze.

AI Entity Creation

Generate a custom entity recognizer with AI. Flat 50 units per request.

Free actions: checking your token balance and getting a cost estimate cost zero credits. You can preview the price before any paid call.

Real costs by document size

Computed with the current token rates for measured English test documents (the entity count is what the analyzer actually found). Each row shows the Analyze cost, the Anonymize cost and the total for one document at GUI defaults:

CharactersEntities foundAnalyze tokensAnonymize tokensTotal tokens
103—3
181336
283437
554437
20010437
50026549
1,000496511
5,000240171532
10,000478322759
50,0002,381147126273
50,000197381755

Rule of thumb: Analysis cost depends on the text length (per 1,000 characters), the number of enabled entity types and the number of matches; anonymization adds a small amount per operator and per encrypted entity type. The tokens charged are shown with every result. Example: analyzing 1,000 characters with 10 entity types enabled and 3 matches costs 3 tokens. Sparser PII costs less; encrypt-heavy anonymize costs more.

These numbers are auto-derived from the production test suite — they update whenever the test JSONL reports are regenerated and pass replay.

A real limitation for unpredictable, high-volume workloads: because cost scales with document size and PII density, and unused tokens do not roll over between billing cycles, a burst of larger or denser documents can exhaust a monthly allocation faster than an average-cost estimate would suggest.

Cost calculator

Estimate exactly what your workload costs. Same formula the live web app charges — verified against 381 production test rows. Edit the inputs; the breakdown and plan quote update live.

1Volume
2,000
2Content

Sparse ≈ marketing copy (~3 hits/1K chars). Typical ≈ business memo (~10/1K). Heavy ≈ medical record or HR file (~50/1K).= 20 PII items per document

3Operations
Per document
Analyze
5
Anonymize / Encrypt
4
Decrypt
—
MCP detokenize
—
Total per document9
Per billing cycle
Documents50
× tokens / document9
= tokens this cycle450
What each plan costs you
Free
Free plan has no top-ups — pick a paid plan or reduce volume.
BasicBest fit
Monthly€3
Top-up neededFits without top-ups
Total / cycle€3

550 tokens left in cycle

Pro
Monthly€15
Top-up neededFits without top-ups
Total / cycle€15

3,550 tokens left in cycle

Business
Monthly€29
Top-up neededFits without top-ups
Total / cycle€29

9,550 tokens left in cycle

Does the operator matter?

Replace, redact, hash and mask all cost the same. Encrypt costs more because every encrypted entity adds the 0.8 × encryptCount term to the apply step — about 3× higher at the 160-character input below; on long documents the per-character term dominates and the difference shrinks. All rows below use the exact same 160-character input + 14 selected entity types.

OperatorWhat it doesTokens
encryptReversible with your key9
hashOne-way SHA-256/512 hash3
maskPartial masking like John ****3
redactBlack out (permanent removal)3
replaceSwap PII for a placeholder like <PERSON_1>3

Replace, redact, hash and mask all cost the same — pick whichever fits your privacy goal. Encrypt costs ~3× more at this input size because it adds the 0.8 × encryptCount term.

Does language matter?

Characters and detected entities drive cost, not language. The table below shows the same content — a name, email, and phone number — across all 48 supported languages. Every variant lands at the same token cost when chars and entity filter match. Character counts still vary widely between scripts, since CJK languages encode the same information in fewer characters.

LanguageCharactersEntitiesAnalyzeAnonymize
zh70443
ja84543
ko89133
ar123743
he123543
bg132543
ru132643
mk135543
it136743
sr136843
hr137543
nl137643
pl137343
hi138343
sl138643
th138543
lv139843
sv141643
is1421043
sk142743
tr142643
ro143543
uk143543
es144743
fa144543
nb144543
cs145843
da145643
de145643
et145643
fr145743
pt145643
lt146543
ur146243
en148743
af149443
fi149643
sw1491043
hu150643
vi151543
ca152743
hy152543
id154643
bn158343
ms160943
el163643
eu163643
tl1631043
Decrypt is the cheapest operation.

Restoring originals from a 19,956-character encrypted payload with 144 PII items cost only 10 tokens. If you anonymize-then-decrypt to recover PII for an authorized viewer, the decrypt step is a small fraction of the total.

Running low? Top-ups

On paid plans you can buy extra credits mid-cycle. Free plan users don’t have top-ups — upgrade to Basic to enable them.

PlanTokens per €1Effective rate
Basic250€0.40 / 100 credits
Pro300€0.33 / 100 units
Business350€0.29 / 100 credits

Top-up credits expire at the next cycle reset. They don’t roll over either.

Check the cost before you run

  • • In the web app, the cost preview appears next to each operation button.
  • • In the API, hit the /api/mcp/balance endpoint or the MCP anonym_legal_estimate_cost tool — both are free.
  • • Your current balance and recent usage are always visible in Settings → Account.

Quick questions

Do unused units roll over?
No. Allocations and top-ups both reset at the end of each cycle.
What happens if I run out mid-task?
The next call returns a 402 with the exact shortfall. Buy a top-up or wait for the cycle to reset.
Do failed operations cost credits?
No. Tokens are only deducted after an operation succeeds.
Does the choice of operator change the price?
Replace, redact, mask, and hash all cost the same. Encrypt is the only exception — it adds 0.8 × encryptCount to the apply step, so it costs more, most noticeably on small inputs and less on large documents where the per-character term dominates.
Why are some operations cheaper than others?
Analyze and anonymize do detection work (the expensive step). Decrypt only walks the saved mapping, so it’s much cheaper.