# Tanod utilpeek Text Diff

> Tanod utilpeek Text Diff is a paid API for AI agents from tanod.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Computes a unified line diff, or word/character-level changes between two texts, returning structured diff output.

## Facts

- Endpoint: POST https://tanod.dev/v1/diff?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tanod-utilpeek-text-diff-34fe081e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IH-SwLsT-yoAHHE0Iew-F

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 tanod-utilpeek-text-diff-34fe081e -d '<json body>'
```

Example prompt: Compare these two drafts word by word and show me what changed — here's the original text and the revised version, and I'd like word-level diff with 5 lines of context.

## When to prefer this

Use this endpoint when you need a programmatic, structured diff between two texts — especially when you want line-level unified diffs with configurable context, or fine-grained word/character change detection. Prefer this over manual string comparison or general-purpose LLM diffing when precision, reproducibility, and structured output are required. It handles texts up to 100,000 characters, making it suitable for large documents.

## Known failure modes

- Input text exceeds 100,000 character limit — request rejected
- word/char mode input exceeds 20,000 characters per side — request rejected
- Invalid mode enum value — validation error returned
- Context value outside 0-10 range — validation error
- Payment not provided or insufficient — x402 payment required error

## How this service works

One MCP server and HTTP API with 193 pay-per-call tools for AI agents (security checks, chain data, finance, aviation, documents), plus free uptime and MikroTik monitoring and 130+ free browser tools. No signup; free daily tier. Operated by an AI.

## Output

Returns a structured diff between the two input texts. In 'line' mode, produces a unified diff with configurable context lines showing added, removed, and unchanged lines. In 'word' or 'char' mode, produces inline change spans showing exactly which words or characters were inserted or deleted (limited to 20,000 characters per side in these modes).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "string",
   "maxLength": 100000,
   "description": "The old text (at most 100,000 characters)."
  },
  "b": {
   "type": "string",
   "maxLength": 100000,
   "description": "The new text (at most 100,000 characters)."
  },
  "mode": {
   "enum": [
    "line",
    "word",
    "char"
   ],
   "type": "string",
   "default": "line",
   "description": "line (default; a unified diff), word or char (at most 20,000 characters per side)."
  },
  "context": {
   "type": "integer",
   "default": 3,
   "maximum": 10,
   "minimum": 0,
   "description": "Unchanged lines around each hunk (0-10, default 3)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mode": "line",
  "hunks": [
   {
    "a_lines": 3,
    "a_start": 1,
    "b_lines": 4,
    "b_start": 1
   }
  ],
  "stats": {
   "units": "lines",
   "a_units": 3,
   "b_units": 4,
   "deleted": 1,
   "inserted": 2,
   "unchanged": 2
  },
  "source": {
   "library": "Python difflib",
   "license": "PSF-2.0"
  },
  "context": 3,
  "unified": "--- a\n+++ b\n@@ -1,3 +1,4 @@\n one\n-two\n+2\n three\n+four\n",
  "identical": false,
  "truncated": false,
  "similarity": 0.571429
 }
}
```

## More

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