# ScriptMasterLabs ACP x402 Text Diff API

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

Returns a text diff comparison between two text inputs, paid per-call in USDC on Base via the x402 protocol.

## Facts

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

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-acp-x402-text-diff-api-1e889ec5
```

Example prompt: Compare these two versions of my contract clause and show me exactly what changed: original says 'Payment is due within 30 days of invoice' and the new version says 'Payment is due within 15 days of receipt of invoice.'

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call text diff computation settled instantly in USDC on Base via the x402 micropayment protocol, without needing a subscription or API key — ideal for agents that compare document revisions, detect regulatory filing changes, or audit contract edits on demand.

## Known failure modes

- Missing or malformed input text parameters returns an error or empty diff
- Service unavailable due to cold-start on Render free tier causing timeout
- x402 payment failure or insufficient USDC balance prevents access (402 response)
- Extremely large text inputs may be truncated or cause slow responses
- Ambiguous or identical inputs may return an empty change set

## 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 modified, enabling programmatic or human review of 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-acp-x402-text-diff-api-1e889ec5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from acp-x402-scriptmasterlabs.onrender.com](https://www.zero.xyz/host/acp-x402-scriptmasterlabs.onrender.com/llms.txt)
