# BRAINIAC Contract Clause Extractor

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

Extracts clauses, parties, defined terms, governing law references, and compliance findings from a legal contract document or text.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/contract-operations/clause-extract?utm_source=zero.xyz
- Price: $0.06/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-clause-extractor-f1d65430
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SEnAO8ikywZK9mRPnNKmw

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-clause-extractor-f1d65430 -d '<json body>'
```

Example prompt: Can you extract all the clauses, parties, and defined terms from this contract PDF and flag which of these standard clauses are missing: Termination, Limitation of Liability, Confidentiality, Governing Law?

## When to prefer this

Choose this endpoint when you need structured extraction of contract clauses, parties, defined terms, and governing law from a legal document, especially when you want to check the document against a known clause checklist. It is purpose-built for contract operations and returns rich, labeled structured output rather than raw text. Prefer it over general-purpose document parsing when legal structure (clause numbers, headings, defined terms, party roles) matters to downstream processing.

## Known failure modes

- File too large — base64 exceeds 12MB limit returns validation error
- Unsupported media type — only application/pdf and text/plain accepted
- Neither text nor file provided — at least one input is required
- Malformed base64 encoding causes parsing failure
- Checklist clause text too long — individual clause text exceeds 20000 characters
- Payment not received or insufficient USDC — 402 response with payment instructions

## 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

Returns a structured JSON object containing: an array of extracted clauses (with id, number, heading, excerpt, source, and page), an array of parties (name, role, excerpt, clauseId), an array of defined terms (term, definition, excerpt, clauseId), an array of legal references such as governing law, any compliance findings from a provided checklist, a checkedAt timestamp, and a set of limitation disclaimers. The legalAdvice flag is always false.

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "clauses": [
   {
    "id": "C-001",
    "kind": "extracted",
    "page": null,
    "number": "1",
    "source": "document",
    "excerpt": "1. Definitions \"Goods\" means the paper products listed in Schedule 1. \"Effective Date\" means 1 November 2026.",
    "heading": "Definitions"
   },
   {
    "id": "C-002",
    "kind": "extracted",
    "page": null,
    "number": "2",
    "source": "document",
    "excerpt": "2. Supply The Seller shall deliver the Goods within 14 days after each order.",
    "heading": "Supply"
   }
  ],
  "parties": [
   {
    "name": "Northwind Paper Ltd",
    "role": "Buyer",
    "excerpt": "between Northwind Paper Ltd (\"Buyer\") and Harbor Ink LLC (\"Seller\")",
    "heading": "Preamble",
    "clauseId": "preamble"
   },
   {
    "name": "Harbor Ink LLC",
    "role": "Seller",
    "excerpt": "between Northwind Paper Ltd (\"Buyer\") and Harbor Ink LLC (\"Seller\")",
    "heading": "Preamble",
    "clauseId": "preamble"
   }
  ],
  "findings": [],
  "checkedAt": "2026-11-02T19:00:00.000Z",
  "references": [
   {
    "kind": "governing_law",
    "name": "England and Wales",
    "excerpt": "governed by the laws of England and Wales",
    "heading": "Preamble",
    "clauseId": "preamble"
   }
  ],
  "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.",
   "Numbered clauses, article headings, quoted defined terms, party roles, and a governing-law sentence are read as printed."
  ],
  "definedTerms": [
   {
    "term": "Goods",
    "excerpt": "\"Goods\" means the paper products listed in Schedule 1",
    "heading": "Definitions",
    "clauseId": "C-001",
    "definition": "the paper products listed in Schedule 1"
   },
   {
    "term": "Effective Date",
    "excerpt": "\"Effective Date\" means 1 November 2026",
    "heading": "Definitions",
    "clauseId": "C-001",
    "definition": "1 November 2026"
   }
  ],
  "complianceDetermined": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-contract-clause-extractor-f1d65430/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)
