# x402 Utils – Text Diff

> x402 Utils – Text Diff is a paid API for AI agents from qcb7fnxsbd7fbhj4.68r.lambda-web.us-east-1.on.aws, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-29).

Compares two texts by lines, words, or characters and returns what was added, removed, and a unified diff for line-mode comparisons.

## Facts

- Endpoint: POST https://qcb7fnxsbd7fbhj4.68r.lambda-web.us-east-1.on.aws/v1/diff?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-utils-text-diff-4d32487d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tiv8yj7rysECTK6pb1mHa

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 x402-utils-text-diff-4d32487d -d '<json body>'
```

Example prompt: Show me what changed between these two paragraphs word by word — here's the old version: 'The quick brown fox jumps over the lazy dog.' and the new version: 'The quick red fox leaped over the lazy cat.' Use word mode.

## When to prefer this

Choose this endpoint when you need a programmatic, structured diff between two text strings with explicit granularity control (lines, words, or characters) and a unified diff output, rather than a human-readable summary or semantic similarity score. Ideal for change tracking, document versioning, audit trails, and content moderation workflows where exact edits matter.

## Known failure modes

- Missing required fields 'a' or 'b' returns a validation error
- Invalid 'mode' value (not lines/words/chars) returns an error
- Very large texts may time out or exceed payload limits
- Payment not provided or insufficient USDC balance results in 402 Payment Required

## How this service works

Compare two texts by lines, words or characters: what was added and removed, and a unified diff for lines.

## Output

Returns a structured breakdown of what was added and removed between the two input texts at the specified granularity (lines, words, or characters), plus a unified diff string when comparing by lines.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "string",
   "description": "the old text"
  },
  "b": {
   "type": "string",
   "description": "the new text"
  },
  "mode": {
   "enum": [
    "lines",
    "words",
    "chars"
   ],
   "type": "string",
   "description": "unit of comparison (default lines)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-utils-text-diff-4d32487d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from qcb7fnxsbd7fbhj4.68r.lambda-web.us-east-1.on.aws](https://www.zero.xyz/host/qcb7fnxsbd7fbhj4.68r.lambda-web.us-east-1.on.aws/llms.txt)
