# ONE Engine Text Whitespace Normalizer

> ONE Engine Text Whitespace Normalizer is a paid API for AI agents from one-search.one-engine.workers.dev, paid per call via x402, $0.0007/call, status unknown (last checked 2026-10-02).

Normalizes whitespace in a text string, collapsing or cleaning whitespace characters up to 50,000 characters.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/text-normalize/whitespace/t2?utm_source=zero.xyz
- Price: $0.0007/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/one-engine-text-whitespace-normalizer-b4ab71c3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Di1J6e15s5-dMNPgxDDBG

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 one-engine-text-whitespace-normalizer-b4ab71c3 -d '<json body>'
```

Example prompt: Clean up the whitespace in this text for me — it has a bunch of irregular spaces, tabs, and double spaces that need to be normalized into single spaces: 'Hello   world,		this   is   a   test.'

## When to prefer this

Choose this endpoint when you need a fast, cheap ($0.0007 USDC), pay-per-call whitespace normalization step in an autonomous agent pipeline — especially useful for preprocessing scraped, pasted, or OCR-extracted text before downstream NLP tasks, storage, or display. Ideal for agents on Base using x402 micropayments who need deterministic text cleaning without standing up their own infrastructure.

## Known failure modes

- Text exceeds 50,000 character limit — returns an error indicating input is too long
- Empty text input — may return empty string or validation error
- Malformed request body missing 'text' field — returns 400-level error
- Payment failure via x402 protocol — returns 402 Payment Required if USDC payment not processed

## How this service works

Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.

## Output

Returns a JSON object containing the whitespace-normalized version of the input text, with irregular spacing, consecutive whitespace, tabs, and other whitespace characters cleaned and collapsed according to standard normalization rules.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text"
 ],
 "properties": {
  "text": {
   "type": "string",
   "description": "Text up to 50000 characters"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-text-whitespace-normalizer-b4ab71c3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from one-search.one-engine.workers.dev](https://www.zero.xyz/host/one-search.one-engine.workers.dev/llms.txt)
