# Text Diff — x402 Micro Pay

> Text Diff — x402 Micro Pay is a paid API for AI agents from grokzilla.shop, paid per call via x402, $0.006/call, status unknown (last checked 2026-09-15).

Computes the difference between two text inputs and returns a structured diff result, billed per call via x402/USDC micropayment.

## Facts

- Endpoint: POST https://grokzilla.shop/api/skills/text-diff
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-diff-x402-micro-pay-1e43ede5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8oXGRCP--4VfRalzCQzY2

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-x402-micro-pay-1e43ede5 -d '<json body>'
```

Example prompt: Can you diff these two versions of my README? Here's the original: 'Hello world. This is v1.' And here's the updated one: 'Hello world. This is v2. Added new features.'

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call text diff computation without standing up your own diff infrastructure. Ideal for AI agents that occasionally need to compare text snippets or document revisions on demand, billed at $0.006 USDC per call via x402 rails — no subscription or API key setup required.

## Known failure modes

- Missing required 'input' field returns a validation error
- Malformed request body or incorrect 'type'/'method' fields may cause a 400-level error
- Payment failure via x402 (insufficient USDC balance) results in a 402 Payment Required response
- Empty or identical texts may return a diff with no changes
- Oversized payloads may be rejected depending on service limits

## How this service works

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

## Output

Returns a JSON object with an 'ok' boolean indicating success and the matched path '/api/skills/text-diff', along with a structured diff representing the changes between the two input texts — including additions, deletions, and unchanged segments.

## 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": {
    "body": {
     "type": "object"
    },
    "path": {
     "type": "string"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string"
    },
    "bodyType": {
     "type": "string"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## 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/text-diff-x402-micro-pay-1e43ede5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from grokzilla.shop](https://www.zero.xyz/host/grokzilla.shop/llms.txt)
