# ONE Engine Whitespace Normalizer

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

Normalizes whitespace in text strings up to 50,000 characters, collapsing irregular spacing into consistent formatting.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/text-normalize/whitespace/t6?utm_source=zero.xyz
- Price: $0.004/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-whitespace-normalizer-f2e20e25
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o9QrtI1baL95pl2Ts8RKW

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-whitespace-normalizer-f2e20e25 -d '<json body>'
```

Example prompt: Can you normalize the whitespace in this text for me? It has a bunch of irregular spaces and double spaces that need to be cleaned up: 'Hello   world,   this  is   a   test   string  with   messy   spacing.'

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call whitespace normalization step in an agent pipeline — especially when you want to avoid bundling heavy NLP libraries just for spacing cleanup. Ideal for preprocessing OCR output, user-submitted text, or scraped web content before feeding it into downstream models or databases. At $0.004 USDC per call it's cost-effective for high-volume text cleaning without infrastructure overhead.

## Known failure modes

- Text exceeds 50,000 character limit — request rejected
- Empty or missing 'text' field — validation error
- Payment not provided or insufficient — 402 response requiring x402 payment on Base
- Malformed JSON body — 400 error
- Network timeout on Cloudflare Workers edge

## 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 collapsed to standard single spaces and leading/trailing whitespace removed.

## 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-whitespace-normalizer-f2e20e25/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)
