REST API · v1 · 99.9% uptime

One PDF API for generate, parse & AI extract

Drop a single REST endpoint into your stack and ship merge, split, OCR, invoice parsing, and chat-with-PDF — no LibreOffice subprocesses, no fragmented scripts.

15
REST endpoints
$0.004
per op at scale
109
OCR languages
POST /api/pdf/generate
curl https://clovipdf.com/api/pdf/generate \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "source": "markdown",
    "content": "# Invoice #1001",
    "engine": "weasyprint"
  }'

# → 200 OK
{
  "success": true,
  "file_id": "pdf_a1b2c3d4",
  "pages": 3
}
Getting started

Live in under 5 minutes

Four steps from sign-up to your first generated PDF. Tap any step to expand the details.

Sign up and generate a personal API key from your dashboard. Every request authenticates with a single Authorization: Bearer header — the same CloviTek JWT used across the platform.
Pass a public URL, a base64 blob, or an existing file_id. Files live in temporary storage with a configurable TTL — from 1 hour on free up to 90 days on Business.
Hit /api/pdf/generate, /merge, /chat or any of the 15 endpoints. Synchronous ops return a file_id instantly; heavy jobs run async via /batch with webhook callbacks.
Poll /status/:file_id or use the returned signed URL to fetch the finished PDF, ZIP, or JSON. Subscribe to webhooks to get notified the moment a batch completes.
API Reference

15 endpoints, one base path

Everything under /api/pdf/. JWT auth, per-tier rate limits, consistent JSON responses.

POST
/generate

Render a PDF from HTML, Markdown, a URL, or a saved template via Chromium, WeasyPrint, or ReportLab.

POST
/merge

Combine up to 50 PDFs into one with full page-order control. Accepts URLs, file_ids, or base64.

POST
/split

Split by page ranges, every N pages, or bookmarks. Returns a ZIP or an array of file_ids.

POST
/compress

Ghostscript compression with screen/ebook/printer/prepress presets or a target file size.

POST
/convert

PDF ↔ DOCX, XLSX, PPTX, HTML, TXT, MD, PNG, JPG with optional auto-OCR for scanned pages.

POST
/protect

Add AES-256 open & permissions passwords and granular print/copy/modify flags.

POST
/watermark

Add or remove text/image watermarks with full control over opacity, rotation, and page targeting.

POST
/extract

Pull text, tables, images, form fields, metadata, and bookmarks — output JSON, CSV, Markdown, or XLSX.

POST
/ocr

PaddleOCR PP-OCRv5 across 109 languages. Output a searchable PDF, plain text, or coordinate JSON.

POST
/chat AI

RAG chat-with-PDF backed by CloviAI — answers include page numbers and quoted source excerpts.

POST
/invoice AI

Structured invoice parsing — vendor, line items, totals, terms — with 93%+ field accuracy.

POST
/summarize AI

Executive, detailed, or key-facts summaries at short/medium/long lengths with optional topic focus.

POST
/sign

Create ordered e-sign requests with signer emails, signed URLs, and a full IP/timestamp audit trail.

GET
/status/:file_id

Check whether a file is processing, ready, failed, or expired — plus size, pages, and download URL.

POST
/batch

Queue many operations at once with async processing, webhook callbacks, and email notifications.

API Pricing

Pay for what you process

Usage-based credit packs. AI ops (chat, invoice, summarize) count as 5 standard operations.

MonthlyAnnual (save ~15%)

Starter

For side projects and prototypes.

$9/mo

500 ops · $0.018/op

  • Personal API key
  • 50MB max file size
  • All core endpoints
  • 7-day file retention
Start with Starter
Most Popular

Growth

For production apps and teams.

$49$499/mo

5,000 ops · $0.0098/op

  • Everything in Starter
  • 200MB max file size
  • AI chat, invoice & summarize
  • Webhooks & priority queue
  • 30-day file retention
Get Growth

Scale

For high-volume workloads.

$149$1,499/mo

25,000 ops · $0.006/op

  • Everything in Growth
  • 500MB max file size
  • Unlimited AI summaries
  • 90-day file retention
  • Dedicated support SLA
Choose Scale

Need 100K+ ops or self-hosting? Talk to us about Enterprise →

Free sandboxOpenAPI 3.0 specNo credit card

Ship your first PDF call today

Grab a key, hit the sandbox, and read the full reference. The CloviPDF API is ready when you are.