# Delx Split Lines

> Delx Split Lines is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Splits a text string into individual lines and returns the lines array with a count

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/split-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/delx-split-lines-d83b2049
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lX-35Hf9evXeTyw2lXvRw

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 delx-split-lines-d83b2049 -d '<json body>'
```

Example prompt: Split this text into individual lines for me and tell me how many lines there are: 'Line one
Line two
Line three
Line four'

## When to prefer this

Use this endpoint when you need a reliable, server-side split of text into lines without worrying about cross-platform newline character edge cases (\n, \r\n, \r) that can cause bugs in local implementations; especially useful when chaining with other Delx text utilities like Sort Lines or Normalize Whitespace in an agent pipeline

## Known failure modes

- Empty or missing text field returns an empty lines array with count zero
- Very large text inputs may exceed request size limits
- Non-string input types may cause a 400 bad request error

## How this service works

Split text into lines. Call when you need per-line processing without local split bugs. Returns lines array and count for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

Returns a JSON object containing an array of individual lines extracted from the input text and an integer count of how many lines were found

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Input field: text."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 3,
  "lines": [
   "one",
   "two",
   "three"
  ],
  "schema": "delx/util-split-lines/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-split-lines-d83b2049/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
