# 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.01/call, status unknown (last checked 2026-10-02).

Normalizes whitespace in a text string by collapsing, trimming, or standardizing spacing characters up to 50,000 characters

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/text-normalize/whitespace/t8?utm_source=zero.xyz
- Price: $0.01/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-8d63f05f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_joUWXultZwNM9hsIxGfVV

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-8d63f05f -d '<json body>'
```

Example prompt: Can you clean up the whitespace in this text for me? It has a bunch of extra spaces, tabs, and inconsistent spacing that needs to be normalized: 'This   is  a  test   string  with   irregular   spacing.'

## When to prefer this

Choose this endpoint when you need a fast, cheap, pay-per-call whitespace normalization step for text preprocessing pipelines in autonomous agent workflows, especially when you want to avoid spinning up your own text-cleaning logic. At $0.01 USDC per call via x402 on Base, it's ideal for lightweight, high-frequency preprocessing tasks where text cleanliness is required before downstream NLP, indexing, or analysis operations.

## Known failure modes

- Text exceeds 50,000 character limit — request rejected with validation error
- Empty or missing 'text' field — returns 400-level error
- Payment not included or insufficient — returns HTTP 402 requiring $0.01 USDC via x402 on Base
- Malformed JSON body — returns parse error
- Upstream Cloudflare Worker timeout — returns 5xx error

## How this service works

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

## Output

A JSON object containing the whitespace-normalized version of the input text, with excessive spaces collapsed, leading/trailing whitespace trimmed, and spacing characters standardized throughout the string.

## 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-8d63f05f/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)
