DOCUMENT DIFFERENCE API

Add Track Changes
to your application.

Compare the text content of two versions across HTML, Markdown, TXT, JSON, DOCX, and searchable PDF. Review detected additions and deletions in HTML; DOCX comparisons can also produce a Word file with Track Changes.

  • HTML & DOCX
  • Developer Friendly
  • Scales with You
Service Agreement — Redline Diff

Service Agreement

This Agreement is made effective as of January 1, 2024 March 1, 2024 between Acme Corp and Global Solutions LLC.

The term of this Agreement shall commence on the effective date and shall continue for a period of one (1) year unless earlier terminated in accordance with the terms herein. two (2) years

Provider agrees to maintain minimum 99.9% uptime SLA and respond to severity 1 tickets within 4 hours 15 minutes.

BUILT FOR DEVELOPERS BUILDING WHAT'S NEXT

A better way to compare documents.

Deterministic. Accurate. Production-ready.

</>

HTML Redlines

Compare the text content of two HTML documents and review additions and deletions with <ins>/<del> markup.

DOCX Track Changes

Get a real Microsoft Word document with native Track Changes you can open, review, and collaborate on in Word, Google Docs, or LibreOffice.

⚡

Fast & Reliable

Fast comparisons for short snippets and documents up to 10 MiB, with automatic safeguards for complex content.

Simple Integration

REST API, straightforward JSON responses, developer API keys, hosted viewers, and predictable pricing. Integrate into your app in minutes.

PLAYGROUND

Try Redline

Open the built-in sample for free, or compare your own text or files with your plan allowance.

Original HTML 0 chars
Revised HTML 0 chars
DEVELOPER INTEGRATION

Integrate with one clean API call.

Zero complicated diff libraries to maintain. Just clean, semantic HTML in and out.

body='{"original":"<p>The fox jumped over the fence.</p>","revised":"<p>The quick fox jumped over the old fence.</p>","mode":"auto"}'
curl -X POST https://api.bookcicle.com/v1/redline/html \
  -H "Authorization: Bearer bc_live_..." \
  -H "Content-Type: application/json" \
  --data-binary "$body"
const body = JSON.stringify({
  original: "<p>The fox jumped over the fence.</p>",
  revised: "<p>The quick fox jumped over the old fence.</p>",
  mode: "auto"
});
const response = await fetch("https://api.bookcicle.com/v1/redline/html", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.REDLINE_API_KEY}`,
    "Content-Type": "application/json"
  },
  body
});
const { html, usage } = await response.json();
console.log("Semantic diff:", html);
import json, os, requests

body = json.dumps(
    {
        "original": "<p>The fox jumped over the fence.</p>",
        "revised": "<p>The quick fox jumped over the old fence.</p>",
        "mode": "auto"
    }, separators=(",", ":")
).encode()
response = requests.post(
    "https://api.bookcicle.com/v1/redline/html",
    headers={
        "Authorization": f"Bearer {os.environ['REDLINE_API_KEY']}",
        "Content-Type": "application/json",
    },
    data=body
)
data = response.json()
print("Redline HTML:", data["html"])
HOSTED COMPARISON VIEWER

Don't want to build a review UI?
Let Redline host it.

Pass output: ["html", "hosted_viewer"] to generate a private, access-controlled viewer or embed it directly into your dashboard with a responsive iframe.

HTML Iframe Embed
<iframe
  src="https://redline.bookcicle.com/embed/cmp_9f82d1?token=cmp_tok_abc123&theme=system"
  width="100%"
  height="600"
  loading="lazy"
  style="border:1px solid #e2e8f0; border-radius:8px;"
></iframe>
Contract Amendment v2

Section 4: Termination & Remedies

Either party may terminate this agreement upon 30 days 60 days written notice. In the event of material breach, cure period shall be ten (10) calendar days fifteen (15) business days.

All notices under this Section shall be given in writing and deemed served upon confirmed receipt.

Neither party shall be liable for indirect, incidental, or consequential damages resulting from early termination.

In the event of termination, licenses granted hereunder shall immediately terminate except as otherwise agreed.

Sections 5, 7, and 9 shall survive any termination or expiration of this Agreement.

WHY DETERMINISTIC COMPARISON

Your AI changed the text.
Show your user the detected edits.

Redline compares the text content of two versions and marks detected additions and deletions. Review the result against the source documents before relying on it.

Text change review

Inspect detected wording, punctuation, and number changes in one result.

Clear support limits

The comparison does not guarantee preservation of layout, styles, table structure, or document structure.

Reviewable output

See detected text additions and deletions in HTML; DOCX comparisons can also produce native Word Track Changes.

PRICING

Simple, transparent pricing.

Start a 14-day free trial with your selected plan's Redline allowance.

Basic

$0/month

For playground experimentation and lightweight testing.

  • 100 Redline units / month shared across HTML & DOCX
  • HTML & DOCX comparisons
  • Native Word Track Changes via API
  • Playground access
  • Standard community docs
Get Started

Creator

$19/month

For production apps diffing user edits and AI updates.

  • 5,000 Redline units / month
  • HTML & DOCX comparisons
  • Interactive track changes review & Accept/Reject
  • Bidirectional postMessage callbacks & drop-in SDK
  • Developer API keys (up to 5)
  • 120 req/min rate limit
  • Hosted viewers & iframe embeds (24h–32h TTL)
  • Email developer support
Start Free 14-Day Trial

Team & Custom

Custom

For high-volume enterprise document workflows.

  • Higher volume units
  • Custom SLA options
  • Dedicated Slack channel
  • Custom deployment options
Contact Us
1 Redline unit = 100 KiB combined input. Calculated using UTF-8 byte sizes.
READY TO BUILD?

Get started with Redline today.

Join developers using Redline to power document comparison in their applications. Start a 14-day free trial with your selected plan's Redline allowance.