# PennyRail Text – Remove Empty Lines

> PennyRail Text – 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 empty and blank lines from a given text string, returning the cleaned text.

## Facts

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

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

Example prompt: Take this multiline text and strip out all the empty and blank lines: 'Hello\n\nWorld\n\n\nFoo\n'

## When to prefer this

Choose this endpoint when you need a simple, paid microservice call to strip empty or blank lines from text without setting up your own string-processing logic. Ideal for agent workflows that need lightweight text normalization as a composable step.

## Known failure modes

- Missing 'input' field returns a validation error
- Input that is entirely empty or whitespace may return an empty string
- Non-string input types may cause a 400 or schema error
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Machine-readable settlement service

## Output

Returns a cleaned text object containing the input string with all empty and blank lines removed, leaving only lines that contain non-whitespace content.

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