# ManyLives Text Diff

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

Computes a line-by-line diff between two text strings, returning added, removed, and unchanged lines with operation labels

## Facts

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

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-text-diff-b2867541 -d '<json body>'
```

Example prompt: Compare these two versions of my config file and show me which lines were added, removed, or unchanged — original is 'alpha
beta
gamma' and the new version is 'alpha
beta two
gamma'.

## When to prefer this

Use this endpoint when you need a structured, machine-readable line-by-line diff between two text strings — especially useful for agents that need to programmatically process change sets, count mutations, or summarize document edits without relying on a local diff library. Prefer it over general-purpose LLM text comparison when you need deterministic, structured output with exact line operation labels.

## Known failure modes

- Missing 'a' or 'b' field returns a validation error
- Very large inputs may hit payload size limits
- Non-string values for 'a' or 'b' cause schema validation failure
- Payment failure (402) if USDC balance is insufficient

## How this service works

Pay-per-call tools for people building AI agents: live web search and page contents, point-in-time crypto market data and news for backtests (no lookahead), verifiable track records of 1,000 crypto strategies locked on the Base network, company profiles, quick AI and batch prices. Ask us to turn a public website into a JSON endpoint. Pay per call, no account, free trial.

## Output

A JSON object containing 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 summary counts: 'added' (integer), 'removed' (integer), and 'unchanged' (integer)

## 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-text-diff-b2867541/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.manylives.me](https://www.zero.xyz/host/api.manylives.me/llms.txt)
