# ONE Engine Text Normalize-Space

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

Normalizes whitespace in a given text string, collapsing or trimming excess spaces.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v1/text/normalize-space?utm_source=zero.xyz
- Price: $0.001/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-normalize-space-dd4dd76b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w9VQOuiRTE4QZvsxFs80l

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-normalize-space-dd4dd76b -d '<json body>'
```

Example prompt: Can you normalize the whitespace in this text for me: 'Hello   world,   this   has   too   many   spaces.'?

## When to prefer this

Choose this endpoint when you need a cheap, fast, stateless way to normalize whitespace in arbitrary text strings — especially in agentic pipelines where text cleaning is a preprocessing step. At $0.001 USDC per call via x402 on Base, it suits high-frequency, low-cost automation workflows where paying per call is preferable to running your own infrastructure.

## Known failure modes

- Missing 'text' field in request body returns an error
- Extremely large text strings may time out or be rejected
- Empty string input may return an empty string or an error
- Non-string values for 'text' may cause a validation 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 key 'text' with the whitespace-normalized version of the input string — multiple consecutive spaces collapsed to single spaces, and leading/trailing whitespace trimmed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "ONE Engine Utility"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-text-normalize-space-dd4dd76b/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)
