# PrepLayer.ai Text Normalizer

> PrepLayer.ai Text Normalizer is a paid API for AI agents from api.maximusmediahouse.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Deterministically normalizes text via Unicode NFKC, invisible-character stripping, smart-quote/dash folding, whitespace collapse, and case folding, returning a stable content hash for exact equality checks.

## Facts

- Endpoint: POST https://api.maximusmediahouse.com/v1/normalize?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/preplayer-ai-text-normalizer-7fe8fa3e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jxs_vajiFYtrBvzNPwrG0

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability preplayer-ai-text-normalizer-7fe8fa3e -d '<json body>'
```

Example prompt: Clean up this text for me — strip any invisible or bidi characters, fold smart quotes and fancy dashes to plain ASCII, collapse all whitespace, and lowercase everything, then give me the normalized result and its content hash so I can check for duplicates: "Hello		Wörld
nfoo".

## When to prefer this

Choose this endpoint when you need fully deterministic, reproducible text normalization without any ML or probabilistic components — particularly when generating content hashes for deduplication, equality checks, or caching. Prefer it over general-purpose NLP preprocessing when you need a stable fingerprint guarantee alongside the cleaned text, or when your pipeline handles Unicode edge cases (bidi text, zero-width joiners, exotic whitespace) that simpler string utilities miss.

## Known failure modes

- Text exceeding 100,000 characters returns a 400 validation error
- Empty string input rejected with a 400 error
- Malformed JSON body returns 400
- Payment failure or missing x402 payment header returns 402
- Server-side timeout on very large inputs near the character limit

## How this service works

Deterministic text normalization: Unicode NFKC, zero-width/bidi stripping, smart-quote and dash folding, whitespace collapse, case folding. Returns a stable content hash so two texts can be compared for exact equality.

## Output

Returns the fully normalized text string after applying the requested transformations (NFKC, invisible-character stripping, smart-quote/dash folding, whitespace collapse, case folding), along with a stable content hash (deterministic fingerprint) that can be used to compare two texts for exact equality or for deduplication.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Text to normalize (1-100000 chars)."
  },
  "fold_case": {
   "type": "boolean",
   "default": true,
   "description": "Lowercase the result."
  },
  "fold_width": {
   "type": "boolean",
   "default": true,
   "description": "Fold curly quotes, dashes and exotic spaces to ASCII."
  },
  "strip_invisible": {
   "type": "boolean",
   "default": true,
   "description": "Remove zero-width and bidi control characters."
  },
  "collapse_whitespace": {
   "type": "boolean",
   "default": true,
   "description": "Collapse runs of whitespace to single spaces and trim."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/preplayer-ai-text-normalizer-7fe8fa3e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.maximusmediahouse.com](https://www.zero.xyz/host/api.maximusmediahouse.com/llms.txt)
