# x402 Micro Pay — Text Diff

> x402 Micro Pay — Text Diff is a paid API for AI agents from x402-micro-pay.com, paid per call via x402, $0.006/call, status unknown (last checked 2026-10-13).

Computes a text diff between two text inputs, returning the differences, accessible via x402 micropayment rails at $0.006 USDC per call.

## Facts

- Endpoint: POST https://x402-micro-pay.com/api/skills/text-diff?utm_source=zero.xyz
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-micro-pay-text-diff-f84ac5fa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FW02cSEQAry3ect9Lf2Up

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 x402-micro-pay-text-diff-f84ac5fa -d '<json body>'
```

Example prompt: Compare these two paragraphs and show me exactly what changed — what was added, removed, or modified between the original and the revised version.

## When to prefer this

Choose this endpoint when you need a cheap, agent-friendly, pay-per-call text diff computation without managing your own diffing infrastructure. At $0.006 USDC per call over x402 micropayment rails, it's ideal for AI agents that need on-demand text comparison without subscriptions or API key management. Prefer this over rolling your own diff logic when operating in autonomous agent pipelines that already use x402 payment flows.

## Known failure modes

- Missing required 'input' field or 'type'/'method' subfields returns a validation error
- Payment failure or insufficient USDC balance causes 402 Payment Required response
- Malformed request body returns a 400 error
- Service unavailability returns 5xx errors
- Very large text inputs may exceed payload limits

## How this service works

Agent-ready microservices with x402 + Stripe rails, volume primitives, tutorials, and applet UI.

## Output

Returns a JSON object with ok:true and the path, along with the computed differences between the two input texts — typically including added, removed, and unchanged lines or spans so the caller can understand exactly what changed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "string"
  },
  "b": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "path": "/api/skills/text-diff"
 }
}
```

## More

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