# Text Diff Compare

> Text Diff Compare is a paid API for AI agents from x402-toolbox.shablony-pro.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-29).

Compares two text strings and returns a deterministic diff highlighting their differences

## Facts

- Endpoint: GET https://x402-toolbox.shablony-pro.workers.dev/text/text-diff-compare?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-diff-compare-b9d09dd8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AmQwtg8R2taM2GQ1FfgQS

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-compare-b9d09dd8
```

Example prompt: Can you compare these two paragraphs and show me exactly what changed — I want to see what was added, removed, or modified between them?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call, no-signup text diff without integrating a full version control system or text processing library. Ideal for AI agents that need to programmatically compare two strings on the fly using USDC micropayments over x402.

## Known failure modes

- Missing or malformed schema parameter returns an error or empty diff
- Very large text inputs may exceed payload limits
- Identical inputs return an empty or no-change diff
- Malformed JSON in the schema field may cause a parse error
- Network timeout if the worker is cold-starting

## How this service works

309 deterministic pay-per-call tools for AI agents over x402 (USDC, Base). No signup, no API key: the payment is the identity.

## Output

A JSON response containing a structured diff of the two input texts, indicating which lines or segments were added, removed, or unchanged, returned as a deterministic comparison result.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-diff-compare-b9d09dd8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.shablony-pro.workers.dev](https://www.zero.xyz/host/x402-toolbox.shablony-pro.workers.dev/llms.txt)
