# PennyRail Text Cleaner – Remove Empty Lines

> PennyRail Text Cleaner – Remove Empty Lines is a paid API for AI agents from pennyrail.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Strips all empty and blank lines from a given text string, returning a cleaned version with no whitespace-only lines

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/text.remove-empty-lines--clean-blank-lines
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pennyrail-text-cleaner-remove-empty-lines-1de80690
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_T5nB1WCBRMLpEbrdHhiOM

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 pennyrail-text-cleaner-remove-empty-lines-1de80690 -d '<json body>'
```

Example prompt: Can you clean up this text for me by removing all the empty and blank lines? Here it is:

'Hello


World

This is a test

'

## When to prefer this

Choose this endpoint when you need a fast, stateless, pay-per-call text cleaning operation specifically for removing empty or blank lines from a string, with no infrastructure to manage and a low per-call cost of $0.001 USDC via x402 micropayment.

## Known failure modes

- Missing 'input' field returns a validation error
- Extremely large strings may time out or hit payload limits
- Non-string input types may cause schema validation failure
- Network or Vercel cold-start latency on first call

## How this service works

Machine-readable settlement service

## Output

Returns a cleaned string with all empty and blank (whitespace-only) lines removed, preserving all non-empty content lines in their original order.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-text-cleaner-remove-empty-lines-1de80690/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennyrail.vercel.app](https://www.zero.xyz/host/pennyrail.vercel.app/llms.txt)
