# PennyRail Remove Empty Lines

> PennyRail 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).

Removes all empty lines from a given text string, returning a compacted version with blank lines stripped out.

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/text.remove-empty-lines--remove-empty-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-remove-empty-lines-4d3d5b30
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_p1yR_8-4ybVeyDq1U2mN2

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

Example prompt: Clean up this text for me by removing all the empty lines: "Line one\n\nLine two\n\n\nLine three\n\nLine four" — I want just the non-blank lines left.

## When to prefer this

Choose this endpoint when you need a simple, reliable, pay-per-use microservice to strip empty lines from text without spinning up your own string processing logic. It is ideal for agent pipelines that need lightweight text normalization as a discrete, auditable step with a clear per-call cost.

## Known failure modes

- Missing required 'input' field returns a validation error
- Non-string input type may cause processing failure
- Very large text payloads may exceed processing limits
- Payment failure (402) if USDC balance is insufficient for the $0.001 fee

## How this service works

Machine-readable settlement service

## Output

Returns a JSON object containing the processed text with all empty lines removed, leaving only lines that contain at least one character. The output preserves the relative order and content of non-empty lines.

## 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-remove-empty-lines-4d3d5b30/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)
