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

Normalizes whitespace in a given text string, collapsing or standardizing spaces, tabs, and newlines.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/text-normalize/whitespace/t7?utm_source=zero.xyz
- Price: $0.0065/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-e4f4547c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RG5zm-uUKJer8QLNqhFL1

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

Example prompt: Can you clean up the whitespace in this text for me? It has a bunch of irregular spaces, tabs, and extra line breaks that need to be collapsed into single spaces: 'This   is   some   messy    text with		tabs and  irregular   spacing.'

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call whitespace normalization step without spinning up your own string processing pipeline. It is ideal for agents that occasionally need to clean text (e.g., scraped content, user input, LLM outputs) before further processing, and where cost per call ($0.0065 USDC) is acceptable. Prefer this over a full text-cleaning library when you want a managed, stateless microservice invocable from any environment.

## Known failure modes

- Text exceeds 50,000 character limit — request rejected or truncated
- Empty or missing 'text' field — validation error returned
- Payment failure via x402 on Base — 402 response, call not processed
- Network timeout on Cloudflare Worker — transient 5xx error
- Malformed JSON request body — 400 bad request

## 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 spaces, tabs, and redundant whitespace collapsed or standardized according to the endpoint's whitespace 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-e4f4547c/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)
