# ONE Engine Text Trim

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

Trims leading and trailing whitespace from text strings up to 50,000 characters

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/text-normalize/trim/t6?utm_source=zero.xyz
- Price: $0.004/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-trim-3b82473d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_od1ILo5Ok8ZBwNUhFN1mW

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

Example prompt: Can you trim the whitespace off the edges of this text before I store it: '   Hello world, this is my output.   '?

## When to prefer this

Choose this endpoint when an AI agent needs a fast, cheap, stateless utility to trim whitespace from text edges (up to 50,000 characters) without any complex NLP or transformation logic. At $0.004 per call it is ideal for high-frequency preprocessing pipelines where normalizing text edges is a routine step before storage, analysis, or further processing.

## Known failure modes

- Text exceeds 50,000 character limit — request rejected
- Missing required 'text' field — validation error returned
- Payment failure via x402 — 402 response if USDC balance insufficient
- Empty string input — returns empty string without 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 input text with all leading and trailing whitespace removed, ready for downstream agent processing or storage.

## 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-trim-3b82473d/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)
