# keyronne.com Text Diff API

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

Compares two texts using Myers diff algorithm over lines, words, or characters, returning structured edit operations, unified diff output, and similarity statistics.

## Facts

- Endpoint: POST https://keyronne.com/api/diff-text
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/keyronne-com-text-diff-api-dbad3dd4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lEcST6ZwKdlv6ibT_-ngZ

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 keyronne-com-text-diff-api-dbad3dd4 -d '<json body>'
```

Example prompt: Compare these two versions of my report word by word and show me what changed — here's the original: 'The project launched on Monday.' and the revised version: 'The project launched on Tuesday.' Use word mode.

## When to prefer this

Use this endpoint when you need to programmatically compare two text documents and receive machine-readable edit operations (not just a human-readable diff), when you need similarity statistics alongside the diff, or when you need flexible granularity (line, word, or character level). Prefer this over generic string comparison when you need structured Myers diff output suitable for agent pipelines tracking document revisions or verifying AI-generated edits.

## Known failure modes

- Input text exceeds 300k character limit — request rejected
- Invalid mode value outside lines/words/chars enum — validation error
- Missing 'a' or 'b' fields in request body — bad request error
- Context value outside 0-20 range — validation error
- Payment not included or insufficient — x402 payment required response

## How this service works

Compare two texts with a Myers diff over lines, words, or characters. Returns structured edit operations, a standard unified diff (line mode), and similarity statistics. Built for agents tracking document revisions, verifying edits, or reviewing generated changes. POST a JSON body like: {"a":"line one\nline two\n","b":"line one\nline 2\n","mode":"lines"}

## Output

Returns structured edit operations describing insertions, deletions, and unchanged spans; a standard unified diff string in line mode; and similarity statistics including a similarity score between the two texts.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "string",
   "description": "Original text (up to 300k characters)."
  },
  "b": {
   "type": "string",
   "description": "Modified text (up to 300k characters)."
  },
  "mode": {
   "enum": [
    "lines",
    "words",
    "chars"
   ],
   "type": "string",
   "default": "lines"
  },
  "context": {
   "type": "integer",
   "default": 3,
   "maximum": 20,
   "minimum": 0
  }
 }
}
```

## More

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