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

Removes leading and trailing whitespace from a text string for clean downstream agent processing.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v1/text/trim?utm_source=zero.xyz
- Price: $0.0009/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-e844c874
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_p3NVweEzIzDYPqR-usADK

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-e844c874 -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 simple, reliable, pay-per-call text trimming operation within an autonomous agent pipeline running on Base via x402, especially when you want minimal overhead and no authentication setup beyond micropayment.

## Known failure modes

- Missing 'text' field in request body returns an error
- Non-string value for 'text' may cause processing failure
- Payment failure (402) if USDC balance is insufficient for the $0.0009 per-call fee
- Empty string input returns an empty string with no error

## How this service works

Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.

## Output

A JSON object containing a single 'text' field with the trimmed version of the input string, with all leading and trailing whitespace removed.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "hello"
 }
}
```

## More

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