# ONE Engine – Remove Empty Lines

> ONE Engine – Remove Empty Lines 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).

Strips all empty lines from a block of text and returns the cleaned text along with the resulting line count.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v1/text/remove-empty-lines?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-remove-empty-lines-197ab990
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ORq2oRbB2pPX9ZADF1Go-

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-remove-empty-lines-197ab990 -d '<json body>'
```

Example prompt: Can you clean up this block of text by removing all the empty lines from it: 'Hello

World

This is a test

'?

## When to prefer this

Choose this endpoint when you need a fast, cheap, single-purpose utility to remove empty lines from text programmatically within an agent workflow, especially when you also want the resulting line count returned. At $0.001 per call it is cost-effective for high-frequency text normalization tasks. Prefer it over general-purpose LLM calls for this deterministic operation.

## Known failure modes

- Missing or non-string 'text' field returns a validation error
- Extremely large payloads may be rejected due to Cloudflare Worker size limits
- Payment failure via x402 will result in a 402 response before processing
- Network timeout if the worker is cold-starting under load

## How this service works

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

## Output

Returns a JSON object with 'text' (the input string with all empty lines removed, lines joined) and 'lines' (integer count of remaining non-empty lines).

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "a\nb\nc",
  "lines": 3
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-remove-empty-lines-197ab990/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)
