# Sindri Text Diff (Myers Algorithm)

> Sindri Text Diff (Myers Algorithm) is a paid API for AI agents from x402.outpimp.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Computes a line-based diff between two text strings using the Myers diff algorithm, returning a structured list of equal, add, and remove operations.

## Facts

- Endpoint: POST https://x402.outpimp.com/diffText
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sindri-text-diff-myers-algorithm-f87e1421
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OP9vCrmmaNR0itqh-zwoG

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 sindri-text-diff-myers-algorithm-f87e1421 -d '<json body>'
```

Example prompt: Can you diff these two versions of my config file and tell me exactly which lines were added, removed, or stayed the same? Here's the original: 'server: localhost
port: 8080
debug: false' and here's the updated version: 'server: localhost
port: 9090
debug: true
log: verbose'

## When to prefer this

Use this endpoint when you need a deterministic, line-level diff between two text strings using the well-established Myers algorithm, especially when you want structured add/equal/remove operations rather than a raw patch format. It is ideal for comparing config files, code snippets, document revisions, or any line-oriented text up to 50,000 characters. Prefer this over regex-based or word-level comparisons when line-granularity is important.

## Known failure modes

- Input text exceeds 50,000 characters or 2,000 lines — request rejected with size limit error
- Missing textA or textB fields in request body — validation error returned
- Empty strings provided — returns a single 'equal' operation with empty value
- Network or payment failure — HTTP 402 or 5xx error with no diff result

## How this service works

Line-based diff between two strings using the Myers diff algorithm (via the diff/jsdiff library), returning a list of equal/add/remove operations.

## Output

A structured list of diff operations, each indicating whether a segment of text is unchanged ('equal'), newly added ('add'), or removed ('remove'), covering all lines between the two input strings.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "textA": {
   "type": "string",
   "description": "Original text. Max 50,000 characters and 2,000 lines."
  },
  "textB": {
   "type": "string",
   "description": "Modified text. Max 50,000 characters and 2,000 lines."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sindri-text-diff-myers-algorithm-f87e1421/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.outpimp.com](https://www.zero.xyz/host/x402.outpimp.com/llms.txt)
