# manylives.me Text Diff

> manylives.me Text Diff is a paid API for AI agents from manylives.me, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-13).

Computes a line-by-line difference between two texts, returning added, removed, and unchanged lines with operation labels and summary counts.

## Facts

- Endpoint: POST https://manylives.me/paid/text/diff?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/manylives-me-text-diff-fc78ff40
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8MVKqnBRM3tGdcpSF74je

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 manylives-me-text-diff-fc78ff40 -d '<json body>'
```

Example prompt: Show me the line-by-line diff between these two texts — the original starts with 'alpha\nbeta\ngamma' and the updated version is 'alpha\nbeta two\ngamma' — and tell me how many lines were added, removed, and stayed the same.

## When to prefer this

Choose this endpoint when you need a structured, machine-readable line-by-line diff with explicit operation labels and summary counts, especially within agentic workflows that need to process or display changes programmatically. Prefer it over shell-based diff tools when you need a JSON API response without spawning subprocesses, and over full patch/unified-diff formats when you need clean, enumerable line operations with counts rather than hunk headers.

## Known failure modes

- Input text exceeds 3,000 lines — request rejected or truncated
- Missing required field 'a' or 'b' — validation error returned
- Non-string input for text fields — schema validation failure
- Payment not included or insufficient — 402 Payment Required response
- Network timeout on very large inputs near the line limit

## How this service works

Line-by-line difference between two texts (up to 3,000 lines each): added, removed and unchanged lines in order, with counts.

## Output

A JSON object with a 'diff' array where each element has an 'op' field ('=' for unchanged, '+' for added, '-' for removed) and a 'line' field with the text content, plus top-level integer counts: 'added', 'removed', and 'unchanged'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "string",
   "examples": [
    "alpha\nbeta\ngamma"
   ],
   "description": "original text (required)"
  },
  "b": {
   "type": "string",
   "examples": [
    "alpha\nbeta two\ngamma"
   ],
   "description": "changed text (required)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "diff": [
   {
    "op": "=",
    "line": "same"
   },
   {
    "op": "-",
    "line": "old"
   },
   {
    "op": "+",
    "line": "new"
   }
  ],
  "added": 1,
  "removed": 1,
  "unchanged": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/manylives-me-text-diff-fc78ff40/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from manylives.me](https://www.zero.xyz/host/manylives.me/llms.txt)
