# text-diff

> text-diff is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Computes a line-level diff between two texts, returning added/removed/kept lines in unified-style format along with a similarity ratio and line counts.

## Facts

- Endpoint: GET https://intel.rallylive.ca/data/diff
- 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/text-diff-1ecd4f73
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iRdz90TXZ6v-KG_aNpesK

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 text-diff-1ecd4f73
```

Example prompt: Show me the line-by-line diff between these two versions of my README — the original and the updated one — including which lines were added, removed, or kept, and the similarity ratio.

## When to prefer this

Choose this endpoint when you need a fast, lightweight line-level text diff with similarity scoring without setting up a local diffing library. Ideal for agents that need to compare document versions, audit LLM output changes, or verify configuration edits programmatically at low cost ($0.01/call).

## Known failure modes

- Missing or empty input texts returns a validation error
- Extremely large texts may exceed request size limits
- Non-text or binary content may produce garbled diff output
- Network timeout for unusually long processing requests

## How this service works

Line-level text diff: which lines were added, removed or kept between two texts, with a unified-style listing, similarity ratio and counts. Compare document versions or agent outputs. $0.01 per call.

## Output

Returns a unified-style diff listing showing which lines were added (prefixed with +), removed (prefixed with -), or kept unchanged, along with a floating-point similarity ratio (0.0–1.0) and counts of added, removed, and unchanged lines.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-diff-1ecd4f73/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
