# 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-15).

Removes all empty lines from a given string or array of strings, returning the cleaned text

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/f/text.remove-empty-lines
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pennyrail-text-remove-empty-lines-dfe5ae19
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q0slxJ4fnNzEPNJtS3NKx

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-dfe5ae19 -d '<json body>'
```

Example prompt: Clean up this text block by removing all the empty lines from it: 'Hello

World

This is a test

'

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call text cleaning operation specifically for removing empty lines, without spinning up your own string-processing logic. It is ideal for pipelines where you want a simple, stateless transformation at minimal cost ($0.001 USDC per call) and do not want to host your own utility microservice.

## Known failure modes

- Missing 'input' field returns a validation error
- Non-string and non-array input may cause unexpected behavior
- Payment failure via x402 protocol results in 402 status before processing
- Very large strings may hit undocumented size limits

## How this service works

Machine-readable settlement service

## Output

Returns a JSON object with an 'operation' field naming the transformation performed and a 'result' field containing the processed string (or array of strings) with all empty lines removed.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "operation",
  "result"
 ],
 "properties": {
  "result": {},
  "operation": {
   "type": "string"
  }
 },
 "additionalProperties": true
}
```

## More

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