# text-trust/normalize

> text-trust/normalize is a paid API for AI agents from gateway.apiosk.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Removes invisible and potentially malicious Unicode characters (e.g. zero-width spaces, right-to-left overrides) from a text string and reports which codepoints were stripped.

## Facts

- Endpoint: POST https://gateway.apiosk.com/text-trust/normalize/text
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-trust-normalize-78d3aa05
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o8E-LGq2MPh8h-AK0RAR6

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 text-trust-normalize-78d3aa05 -d '<json body>'
```

Example prompt: Can you clean this text and remove any invisible or dangerous Unicode characters from it: 'Hello
er World
def'? I want to make sure there are no hidden zero-width spaces or direction-override codepoints in there.

## When to prefer this

Choose this endpoint when you need to sanitize user-submitted or externally sourced text to remove invisible Unicode characters (zero-width spaces, directional overrides, soft hyphens, etc.) that could cause display spoofing, security issues, or data corruption. Ideal before storing text in a database, rendering in a UI, or passing text to downstream systems that may be sensitive to hidden codepoints.

## Known failure modes

- Missing or empty 'text' field returns a validation error
- Extremely long strings may time out or exceed payload limits
- Payment failure (x402) blocks the request if USDC balance is insufficient

## How this service works

Apply NFKC normalization and remove zero-width and bidi override characters, returning cleaned text plus a removal report.

## Output

Returns a JSON object with the cleaned text string, a boolean indicating whether any changes were made, and a report array listing each removed Unicode codepoint (e.g. U+200B, U+202E).

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-trust-normalize-78d3aa05/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.apiosk.com](https://www.zero.xyz/host/gateway.apiosk.com/llms.txt)
