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

Trims leading and trailing whitespace from a text string up to 50,000 characters via a pay-per-call API.

## Facts

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

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

Example prompt: Trim the whitespace from the start and end of this text for me: '   Hello, world!   ' — I need it cleaned up before I pass it to the next step.

## When to prefer this

Choose this endpoint when you need a lightweight, low-cost ($0.001 USDC) programmatic trim operation within an autonomous agent pipeline that already uses x402/Base payments, and you want to avoid importing string libraries or handling edge cases yourself. Best for agents needing reliable, stateless text normalization as a micro-step in a larger workflow.

## Known failure modes

- Text exceeds 50,000 character limit — request rejected
- Missing required 'text' field — validation error returned
- Payment failure via x402 on Base — call not processed
- Network timeout on Cloudflare Workers edge — retry required
- Malformed JSON body — parse error returned

## 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. The response schema is open (additionalProperties: true), so the result object may include the processed text and potentially metadata about the operation.

## 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-41bec95e/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)
