# ONE Engine Text Normalize Trim

> ONE Engine Text Normalize Trim 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).

Trims leading and trailing whitespace from a text string up to 50,000 characters.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/text-normalize/trim/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-normalize-trim-3c285d75
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M7fKap3otCoiQM8e5TROs

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-trim-3c285d75 -d '<json body>'
```

Example prompt: Can you trim the whitespace off the edges of this text for me: '   Hello, world!   '?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call microservice to trim whitespace from strings without standing up your own text processing infrastructure. Ideal for autonomous agents that occasionally need to normalize text inputs at very low cost ($0.0007 USDC per call) without bundling a full NLP or text processing library.

## Known failure modes

- Text exceeds 50,000 character limit — returns an error response
- Missing required 'text' field in request body — returns a validation error
- Payment failure via x402 — request rejected before processing

## 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 trimmed version of the input text, with leading and 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-text-normalize-trim-3c285d75/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)
