# ScriptMasterLabs Text Diff API

> ScriptMasterLabs Text Diff API is a paid API for AI agents from acp-x402-discovery.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-28).

Computes and returns a text difference (diff) between two text inputs, paid per-call via x402 in USDC on Base.

## Facts

- Endpoint: GET https://acp-x402-discovery.onrender.com/x402/text-diff?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scriptmasterlabs-text-diff-api-281453d5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_H8em1bG6_XISfoyHQp3KI

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 scriptmasterlabs-text-diff-api-281453d5
```

Example prompt: Compare these two paragraphs and show me exactly what changed — here's the original: 'The quick brown fox jumps over the lazy dog.' and here's the updated version: 'The quick red fox leapt over the sleeping dog.'

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call text diff computation without standing up your own infrastructure, especially when operating in a crypto-native or x402-payment-enabled agent pipeline and only occasional comparisons are needed at $0.001 per call.

## Known failure modes

- Missing or empty text input fields returns an empty or error response
- Malformed input schema causes a 400-level error
- Payment not settled in USDC via x402 results in a 402 Payment Required response
- Very large text inputs may result in timeout or truncated diff
- Ambiguous 'properties' parameter may yield unexpected results if not properly formatted

## How this service works

Pay-per-call crypto, RWA, federal, SEC, and compliance APIs. Settled in USDC on Base via x402. Hyphen routes only (e.g. /x402/rwa-aggregates, /x402/gas-tracker).

## Output

Returns a structured diff indicating which portions of the input text were added, removed, or unchanged, enabling the agent to identify exact changes between two text versions.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scriptmasterlabs-text-diff-api-281453d5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from acp-x402-discovery.onrender.com](https://www.zero.xyz/host/acp-x402-discovery.onrender.com/llms.txt)
