# BRAINIAC Contract Version Diff

> BRAINIAC Contract Version Diff is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.08/call, status unknown (last checked 2026-11-17).

Compares two versions of a contract and returns a clause-by-clause diff identifying changed, added, and removed provisions

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/contract-operations/version-diff?utm_source=zero.xyz
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-contract-version-diff-5a9541a1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8CLhodiumMApKVjDgz7oz

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 brainiac-contract-version-diff-5a9541a1 -d '<json body>'
```

Example prompt: Compare these two contract drafts for me — the original PDF I sent last week and the revised version the other party just sent back — and tell me exactly which clauses were changed, added, or removed.

## When to prefer this

Use this endpoint when you need a structured, clause-level diff between two contract versions rather than a free-text redline or a full document summary. It is ideal when clauses have consistent numbering or headings across versions, and when you need machine-readable output identifying specifically which provisions changed. Prefer it over general document comparison tools when legal precision and clause traceability matter. At $0.08 per call with no account required, it suits agentic workflows that need to compare contracts on demand.

## Known failure modes

- Mismatched clause numbering across versions may cause incorrect clause pairing
- Very large documents (>12MB base64) will be rejected
- Whitespace-only or case-only differences are intentionally ignored and not reported
- Clauses without consistent headings or numbers may not be matched correctly
- Payment failure on Base network will prevent result delivery

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

A JSON object with a status field ('changes_found', 'no_changes', etc.), an array of change objects each containing the change type (changed/added/removed), clause ID, heading, base excerpt, and revised excerpt, plus a checkedAt timestamp and an array of limitations clarifying that the output is not legal advice.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "base": {
   "type": "object",
   "properties": {
    "file": {
     "type": "object",
     "required": [
      "mediaType",
      "fileBase64"
     ],
     "properties": {
      "filename": {
       "type": "string",
       "maxLength": 180,
       "minLength": 1
      },
      "mediaType": {
       "enum": [
        "application/pdf",
        "text/plain"
       ],
       "type": "string"
      },
      "fileBase64": {
       "type": "string",
       "maxLength": 12000000,
       "minLength": 1
      }
     },
     "additionalProperties": false
    },
    "text": {
     "type": "string",
     "maxLength": 200000,
     "minLength": 1
    },
    "clauses": {
     "type": "array",
     "items": {
      "type": "object",
      "required": [
       "heading",
       "text"
      ],
      "properties": {
       "text": {
        "type": "string",
        "maxLength": 20000,
        "minLength": 1
       },
       "number": {
        "type": "string",
        "maxLength": 40,
        "minLength": 1
       },
       "heading": {
        "type": "string",
        "maxLength": 200,
        "minLength": 1
       }
      },
      "additionalProperties": false
     },
     "maxItems": 80
    }
   },
   "additionalProperties": false
  },
  "revised": {
   "type": "object",
   "properties": {
    "file": {
     "type": "object",
     "required": [
      "mediaType",
      "fileBase64"
     ],
     "properties": {
      "filename": {
       "type": "string",
       "maxLength": 180,
       "minLength": 1
      },
      "mediaType": {
       "enum": [
        "application/pdf",
        "text/plain"
       ],
       "type": "string"
      },
      "fileBase64": {
       "type": "string",
       "maxLength": 12000000,
       "minLength": 1
      }
     },
     "additionalProperties": false
    },
    "text": {
     "type": "string",
     "maxLength": 200000,
     "minLength": 1
    },
    "clauses": {
     "type": "array",
     "items": {
      "type": "object",
      "required": [
       "heading",
       "text"
      ],
      "properties": {
       "text": {
        "type": "string",
        "maxLength": 20000,
        "minLength": 1
       },
       "number": {
        "type": "string",
        "maxLength": 40,
        "minLength": 1
       },
       "heading": {
        "type": "string",
        "maxLength": 200,
        "minLength": 1
       }
      },
      "additionalProperties": false
     },
     "maxItems": 80
    }
   },
 
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "changes_found",
  "changes": [
   {
    "change": "changed",
    "heading": "Supply",
    "clauseId": "C-001",
    "baseExcerpt": "1. Supply The Seller shall deliver the Goods within 14 days after each order.",
    "revisedExcerpt": "1. Supply The Seller shall deliver the Goods within 30 days after each order."
   },
   {
    "change": "changed",
    "heading": "Term",
    "clauseId": "C-002",
    "baseExcerpt": "2. Term This Agreement expires on 1 November 2027.",
    "revisedExcerpt": "2. Term This Agreement expires on 1 November 2028."
   },
   {
    "change": "added",
    "heading": "Confidentiality",
    "clauseId": "C-003",
    "baseExcerpt": "",
    "revisedExcerpt": "3. Confidentiality The Seller shall keep the Buyer's information confidential."
   }
  ],
  "findings": [],
  "checkedAt": "2026-11-02T19:00:00.000Z",
  "legalAdvice": false,
  "limitations": [
   "This output is not legal advice.",
   "A checklist match is not a determination of legal compliance.",
   "Clauses, deadlines, obligations, and missing provisions are not invented.",
   "Missing provisions are reported only against a checklist or standard provisions supplied in the request.",
   "Clauses match on their number, or on the heading when no number is present. Whitespace and letter case alone are not treated as changes."
  ],
  "complianceDetermined": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-contract-version-diff-5a9541a1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
