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.
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
}Four steps from sign-up to your first generated PDF. Tap any step to expand the details.
Authorization: Bearer header — the same CloviTek JWT used across the platform.file_id. Files live in temporary storage with a configurable TTL — from 1 hour on free up to 90 days on Business./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./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.Everything under /api/pdf/. JWT auth, per-tier rate limits, consistent JSON responses.
/generateRender a PDF from HTML, Markdown, a URL, or a saved template via Chromium, WeasyPrint, or ReportLab.
/mergeCombine up to 50 PDFs into one with full page-order control. Accepts URLs, file_ids, or base64.
/splitSplit by page ranges, every N pages, or bookmarks. Returns a ZIP or an array of file_ids.
/compressGhostscript compression with screen/ebook/printer/prepress presets or a target file size.
/convertPDF ↔ DOCX, XLSX, PPTX, HTML, TXT, MD, PNG, JPG with optional auto-OCR for scanned pages.
/protectAdd AES-256 open & permissions passwords and granular print/copy/modify flags.
/watermarkAdd or remove text/image watermarks with full control over opacity, rotation, and page targeting.
/extractPull text, tables, images, form fields, metadata, and bookmarks — output JSON, CSV, Markdown, or XLSX.
/ocrPaddleOCR PP-OCRv5 across 109 languages. Output a searchable PDF, plain text, or coordinate JSON.
/chat AIRAG chat-with-PDF backed by CloviAI — answers include page numbers and quoted source excerpts.
/invoice AIStructured invoice parsing — vendor, line items, totals, terms — with 93%+ field accuracy.
/summarize AIExecutive, detailed, or key-facts summaries at short/medium/long lengths with optional topic focus.
/signCreate ordered e-sign requests with signer emails, signed URLs, and a full IP/timestamp audit trail.
/status/:file_idCheck whether a file is processing, ready, failed, or expired — plus size, pages, and download URL.
/batchQueue many operations at once with async processing, webhook callbacks, and email notifications.
Usage-based credit packs. AI ops (chat, invoice, summarize) count as 5 standard operations.
For side projects and prototypes.
500 ops · $0.018/op
For production apps and teams.
5,000 ops · $0.0098/op
For high-volume workloads.
25,000 ops · $0.006/op
Need 100K+ ops or self-hosting? Talk to us about Enterprise →
Grab a key, hit the sandbox, and read the full reference. The CloviPDF API is ready when you are.