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

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

## Facts

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

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

Example prompt: Can you trim the whitespace from the start and end 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 text strings, especially in autonomous agent pipelines that already use x402 micropayments on Base. It is ideal for high-frequency, low-cost text sanitization tasks where spinning up a local function is undesirable or where you want a consistent, auditable API call in your workflow.

## Known failure modes

- Text exceeds 50,000 character limit — request rejected
- Missing required 'text' field in request body — validation error
- Payment failure via x402 (insufficient USDC balance or wallet misconfiguration) — 402 response
- Network timeout connecting to Cloudflare Worker — no response

## 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 all leading and trailing whitespace removed. The response schema is open (additionalProperties: true), so the exact field name(s) holding the result may vary.

## 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-b2953805/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)
