Structured document diffs
for AI agents

Compare contracts, policies, and regulatory documents. Get back classified JSON — not visual redlines.

{
  "section": "Liability Cap (Section 4.2)",
  "change_type": "modification",
  "significance": "high",
  "category": "financial",
  "description": "Liability cap reduced by 50%",
  "old_text": "...shall not exceed $1,000,000",
  "new_text": "...shall not exceed $500,000"
}

How it works

Three API calls. No SDKs, no setup, no visual diffing tools.

1

Upload documents

Send two PDFs, text files, or URLs via the REST API. Up to 10MB per document.

2

Diff + Classify

Section-level deterministic diffing finds every change. An LLM classifies each by type, significance, and category.

3

Structured JSON

Get back a JSON array of changes — each with section, old/new text, significance score, and a one-line description.

Built for agent workflows

📄

Contract Monitoring

Track changes to vendor agreements, SLAs, and legal terms. Get alerted when liability caps or payment terms shift.

⚖️

Compliance Tracking

Monitor regulatory documents for material changes. Know when new requirements appear before they take effect.

🔍

TOS / Policy Monitoring

Compare website terms and privacy policies over time. Detect scope changes, data sharing updates, and liability shifts.

API preview

One POST, one GET. That's it.

Request
# Submit two documents for comparison
curl -X POST https://diffai.kofikodr.com/v1/compare \
  -H "Authorization: Bearer dk_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "source": "text",
    "document_a": {"text": "...", "name": "contract-v1.txt"},
    "document_b": {"text": "...", "name": "contract-v2.txt"}
  }'
Response
{
  "status": "completed",
  "changes": [
    {
      "section": "Payment Terms (Section 3.1)",
      "change_type": "modification",
      "significance": "high",
      "category": "financial",
      "description": "Payment window extended from 30 to 60 days"
    }
  ],
  "summary": { "total_changes": 8, "high_significance": 2 }
}

Pricing

Pay per comparison. No setup fees, no minimums.

Free

$0/mo
10 comparisons/month
  • 10 comparisons/month
  • PDF + TXT
  • Async processing
Get started

Starter

$49/mo
500 comparisons/month
  • 500 comparisons/month
  • PDF + TXT
  • URL comparison
  • Priority support
Get started

Scale

$399/mo
10,000 comparisons/month
  • 10,000 comparisons/month
  • All file types
  • URL comparison
  • Dedicated support
Get started