The 11 Best PDF Generation APIs in 2026
Prices checked: November 11, 2026 · Updated: November 20, 2026
What is the best PDF generation API for developers, invoices and reports? For most teams in 2026: DocuQueue — 25 docs/mo free, $9 for 250, with HTML, stored templates, form filling, CSV batch (50 docs per request) and an MCP server so Claude or ChatGPT can generate docs directly. For print-perfect HTML/CSS, choose DocRaptor. To self-host, choose Gotenberg ($0).
Quick decision rule: pick based on who changes the document after launch — a developer editing HTML/code, a team filling a stored template via API data, someone filling existing PDF forms, or an AI agent calling an MCP tool. That usually matters more than the per-PDF price.
- Best for developers, invoices & reports: pick by who changes the document — developer in HTML/code, stored template filled with data, PDF form filling, or an AI agent via MCP. For most teams DocuQueue covers all four in one API (HTML, templates, forms, CSV batch, MCP) from 25 docs/mo free, $9/250.
- DocuQueue vs DocRaptor: DocRaptor wins on Prince print fidelity, print CSS, and SOC2/HIPAA ($15/mo); DocuQueue wins on broader workflow + MCP at lower entry cost.
- DocuQueue vs self-hosted (Gotenberg/Puppeteer): self-hosting is $0 license with full control but you own ops; DocuQueue is managed with MCP/editor/integrations.
- Other fits: APITemplate.io/CraftMyPDF for visual template editing, API2PDF for metered pay-per-use, Templafy/Nutrient/DocSpring for enterprise governance or forms-first depth.
It’s month-end and you need a PO number on every invoice before the batch goes out — or a field added to 1,000 reports. The right PDF generation API depends less on cents per PDF and more on who can change the document: a developer in HTML/code, a team updating a stored template filled with data, a form-filling workflow, or an AI agent via MCP. Below: 11 APIs compared for developers and SaaS invoices/reports, with prices, quotas and metering (what counts as one) taken from each vendor’s pricing page on November 11, 2026 — including DocuQueue, listed under full disclosure.
Best API by use case
| Use Case | Winner | Why |
|---|---|---|
| Best PDF generation API for developers | DocuQueue | Templates, HTML, forms and batch in one API; MCP on every plan; $9/mo for 250 documents, free 25/mo |
| Invoices, reports & batch documents | DocuQueue | Stored templates filled from JSON/CSV (50 docs/request), form filling and MCP; $29/mo covers ~1,000 docs |
| Template-based docs + AI-agent (MCP) workflows | DocuQueue | $9/mo for 250 documents; templates, forms, batch in one API; MCP on every plan, free tier included |
| Multi-tenant SaaS, white-label documents | DocuQueue | White-label ready; templates, forms and batch via one API |
| Print-grade HTML/CSS fidelity | DocRaptor | Prince print engine; SOC2 + HIPAA |
| Cheapest hosted entry | API2PDF | $1/mo + metered bandwidth and compute |
| Enterprise template governance | Templafy | $40/user/mo (Team, up to 25 seats) |
| Drag-and-drop templates | CraftMyPDF | Editor, e-sign and filler from $29/mo |
| Enterprise PDF platform | Nutrient | Pay-as-you-go credits, free plan on each API |
| Filling existing PDF forms | DocSpring | Forms-first API, web forms, from $49/mo |
| Embedded editor for your SaaS | PDF Generator API | Embedded editor; ISO 27001; on-prem option |
| Self-hosted, zero license cost | Gotenberg | Docker API over Chromium + LibreOffice |
The 11 APIs at a glance
Pick by who changes the document (developer in code, a team in a stored template/editor, a form-filling workflow, or an AI agent), then compare cost. Entry price, what’s included, and what counts as one are taken from each vendor’s pricing page on November 11, 2026.
| API | Who changes it / approach | Entry price | Free tier | Included (counts as one) | MCP server |
|---|---|---|---|---|---|
| DocuQueue | Dev/API or AI agent; stored templates, forms, batch + MCP | $9/mo | 25 docs/mo | 250 documents (1 doc = 1) | ✓ every plan |
| DocRaptor | Developer edits HTML/CSS; hosted Prince rendering | $15/mo | 5 docs/mo | 125 documents (1 doc = 1) | — |
| Templafy | Enterprise/governed template management (per user) | $40/user/mo | 14-day trial | Unlimited docs per seat (Team) | — |
| APITemplate.io | Web editor (WYSIWYG/HTML) or dev API; templates | $19/mo* | 50 PDFs/mo + 3 templates | 3,000 PDFs (1 PDF = 1) | — |
| CraftMyPDF | Drag-and-drop editor; templates, filler, e-sign | $29/mo | 50 PDFs/mo | 1,200 credits (shared; ~1 template PDF/credit) | — |
| Nutrient | Developer/enterprise PDF platform APIs | Pay-as-you-go | Free plan on each API | Credit-based (varies by operation) | — |
| DocSpring | Forms-first; build/fill PDF forms via API or web forms | $49/mo | — | 50 PDFs (1 PDF = 1) | — |
| API2PDF | Developer API (and MCP); wrapper over multiple engines | $1/mo + usage | 1 month free credit | Metered ($0.001/MB + compute/sec) | ✓ + x402 |
| PDF Generator API | Embedded editor for your SaaS; templates/forms | €80/yr | 14-day trial | 50 credits/mo (credit-based) | — |
| Gotenberg | You/DevOps run it (Docker); REST over Chromium/LibreOffice | $0 | open source | Unlimited (you pay infra) | — |
| Puppeteer / Playwright | Developer writes/runs code in-process (Node) | $0 | open source | Unlimited (you pay infra) | — |
How DocuQueue compares: only entry-price plan here bundling HTML, templates, form filling, CSV batches, and MCP on every tier (including free). API2PDF also offers MCP but is metered; others focus on a narrower slice (rendering, templates, or self-hosting).
How we compared
Every number was read from each vendor’s pricing page on November 11, 2026 (re-checked where noted). Where billing is in euros, credit-based, per-user, metered or quota-hidden, we call it out — including “counts as one” metering. This comparison is for teams/SaaS generating their own documents (invoices, reports, forms); embedding an editor for end-customers is a different evaluation.
Full disclosure: DocuQueue is our product and compared under the same rules as every other vendor (no affiliate/financial ties). At a glance vs DocuQueue: stronger on all-in-one workflows + MCP/agent access at low entry cost; weaker than DocRaptor on print-engine fidelity, and than Gotenberg/Puppeteer on self-host control and $0 infra-only cost.
How do the 11 APIs compare on features?
The core capabilities side by side, across the three APIs we have used in production.
| Feature | DocuQueue | DocRaptor | Gotenberg |
|---|---|---|---|
| Type | Cloud API | Cloud API | Self-hosted |
| Rendering | Web browser | Print engine | Web browser |
| Visual editor | ✓ | — | — |
| Word doc support | ✓ | — | — |
| Batch processing | ✓ | — | — |
| PDF form filling | ✓ | — | — |
| MCP / AI agent support | ✓ | — | — |
| Integrations | Zapier, n8n, webhooks | Webhooks | None (raw HTTP) |
| Free tier | 25 credits/mo | No | Unlimited (self-host) |
How DocuQueue compares on features: vs DocRaptor it trades Prince-grade print fidelity for templates, forms, batch, and MCP; vs Gotenberg it trades self-host control for managed API + editor/integrations. MCP is on every plan, including free.
Start freeFour ways to generate a PDF (by who changes it)
Pick by who changes the document after launch, then by vendor. For invoices, reports and batch docs, “who can update the template or data” usually matters more than cents per PDF. How DocuQueue compares is noted in each path.
A developer owns HTML/CSS in code
Who changes it: a developer edits markup and deploys. Hosted HTML-to-PDF: POST markup, get a PDF. DocRaptor for print fidelity; APITemplate.io for budget; API2PDF for metered usage; Gotenberg if you run Docker.
vs DocuQueue: also supports HTML/URL-to-PDF, plus stored templates, form filling, CSV batch and MCP in one API. Pick DocRaptor if Prince-level print CSS/accessibility is the top priority.
See the APIs →A team fills a stored template with data (invoices, reports)
Who changes it: design/store a template once, then your app (or ops data) fills it per request — ideal for SaaS invoices, statements and reports. With DocuQueue’s template API and CSV batch generation (50 documents per request) you can generate one or 1,000 docs from JSON/CSV. CraftMyPDF, APITemplate.io and PDF Generator API compete on editor/template workflows.
vs DocuQueue: stored templates, form filling, batch and MCP on every plan (incl. free, $9/250). Others may offer deeper visual editors or different billing; compare metering (“counts as one”) at your volume.
See the APIs →Your team runs the infrastructure (self-hosted)
Who changes it: developers/DevOps own the renderer and deploys. Gotenberg (REST over Chromium/LibreOffice, $0) or Puppeteer/Playwright in code — see our Puppeteer vs DocuQueue breakdown. You own uptime, scaling and security.
vs DocuQueue: managed (no ops) with templates, form filling, batch, integrations and MCP. Gotenberg/Puppeteer win on control and $0 license if you run the stack.
See the APIs →The document is an existing PDF form (or an agent fills it)
Who changes it: data fills fixed fields in an existing PDF (or an AI agent does it via a tool). DocSpring and DocuQueue fill existing PDFs; DocRaptor converts HTML forms to accessible PDFs. See the form filling guide and AI form filling tools guide.
vs DocuQueue: form filling included with templates, batch and MCP on every plan (including free). DocSpring is the deeper forms-first specialist (higher entry).
Form filling guide →All 11 APIs in detail
One card per API: what it is, who changes the document, cost/metering, fit and limits. Quick compare vs DocuQueue: DocRaptor wins on Prince print fidelity/compliance; Templafy/Nutrient on enterprise governance/suite; CraftMyPDF/APITemplate.io/PDF Generator API on visual editors; DocSpring on forms-first depth; API2PDF on metered MCP/usage; Gotenberg/Puppeteer on self-hosted $0 control. DocuQueue combines stored templates, form filling, CSV batch, HTML/URL and MCP on every plan (incl. free, $9/250) — a strong fit for SaaS invoices, reports and AI-agent workflows.
DocRaptor
The only hosted API built on the Prince print engine — the technology that pioneered HTML-to-PDF in 2003, now from Artifex. SOC2, HIPAA and GDPR compliant with a 99.99% uptime guarantee. DocuQueue vs DocRaptor compared here.
Templafy
Enterprise document and template management, priced per user: Team is $40/user/month for up to 25 seats — $400/month for ten people — with a 14-day free trial. CRM, DMS and Teams connectors and approval workflows are listed on its Enterprise plan, which has no public price.
CraftMyPDF
Drag-and-drop template editor plus REST API, PDF filler and e-signature API. Free tier gives 50 PDFs/month; Lite is $29/mo with 1,200 credits (1 credit ≈ 1 template PDF).
Nutrient
Enterprise document platform (formerly PSPDFKit): conversion, OCR, redaction, generation and document APIs. Bills pay-as-you-go credits with a free plan on each API — no public flat monthly document tier; larger deployments are sales-led.
APITemplate.io
Two product lines: PDF-only plans from $19/mo for 3,000 PDFs, or mixed image + PDF plans from $29. Free forever: 50 images/PDFs and 3 templates, no card required.
DocuQueue
Disclosure: this is our product. Template-first document generation with HTML/URL-to-PDF, a Form Fill API, batch CSV processing, and a native MCP server on every plan — including the free 25-documents-a-month tier. If you want the agent-first path, start with how to generate PDFs with Claude. If you’d rather design the template with the assistant, design a PDF template with Claude covers that end to end. $9/mo for 250 documents.
DocSpring
Forms-first API: build fillable templates, accept web-form input, and fill existing PDFs. Starter is $49/mo for 50 PDFs (25¢ each after); Professional is $99/mo for 1,000 (10¢ each after).
PDF Generator API
Built to live inside your own product: embedded template editor, dynamic web forms, HTML-to-PDF and a fill API. Creator is €80/year for 50 credits/month, scaling to tiers priced annually. ISO 27001 certified, HIPAA and GDPR compliant, on-premises option.
API2PDF
One API over three engines — Headless Chrome, wkhtmltopdf and LibreOffice — with pure pay-as-you-go: $1/month plus $0.001/MB bandwidth and $0.00019551/second of compute. It also ships an MCP server and accepts x402 payments from AI agents.
Gotenberg
Free, open-source Docker API wrapping Chromium and LibreOffice: docker run -p 3000:3000 gotenberg/gotenberg:8 and you are converting. Images for amd64, arm64, armhf and more. DocuQueue vs Gotenberg compared here.
Puppeteer / Playwright
Not an API — the official Node libraries that drive headless Chromium, where page.pdf() is your renderer. The same engine the hosted wrappers charge for, running inside your own process. See Puppeteer vs DocuQueue.
What it costs at 1,000 documents (invoices/reports) per month
Entry prices lie. Here is the cheapest plan that actually covers ~1,000 documents a month on each hosted API — plus what you pay beyond it. Check the metering unit (“counts as one”: document, PDF, credit, page/MB-sec, or seat) because that drives the real bill at invoice/report volume.
| API | Plan covering ~1,000 docs | Monthly cost | Cost beyond included quota |
|---|---|---|---|
| DocuQueue ✓ best value | Pro (1,000 exactly) | $29 | $0.03 / document |
| APITemplate.io | PDF Basic (annual billing) | $19 | next tier: 12,000 docs at $69 |
| Templafy | Team ($40/user/mo, up to 25 seats) | $400 (10 users) | Enterprise: no public price |
| CraftMyPDF | Lite (1,200 credits) | $29 | shared credit pool |
| DocRaptor | Premium (1,250 incl.) | $75 | next tier: 5,000 docs at $149 |
| DocSpring | Professional (1,000 exactly) | $99 | $0.10 / document |
| API2PDF | pay-as-you-go | usage-based | $0.001/MB + $0.00019551/s |
How DocuQueue compares on price: at ~1,000 docs/mo DocuQueue Pro is $29 (templates/forms/batch/MCP included) vs $75 DocRaptor Premium or $99 DocSpring Professional; APITemplate.io/CraftMyPDF can be similar/cheaper for pure template volume, while API2PDF/Gotenberg can undercut on metered/self-hosted workloads if you accept ops or usage variability.
Generate PDFs from any AI assistant via MCP
DocuQueue’s MCP server lets Claude, ChatGPT, or Gemini generate PDFs from natural language. How it compares: DocuQueue includes MCP on every plan (incl. free 25 docs/mo) with templates/forms/batch in the same toolset; API2PDF also offers MCP with metered/x402 pricing but a different engine-wrapper workflow. Most others have no listed MCP server and need a custom REST tool wrapper.
- How to generate PDFs with Claude — the full walkthrough, from connector setup to first render.
- Design a PDF template with Claude — variables, loops and conditionals, designed inside the chat.
- MCP tool bench — every tool the server exposes, with example calls.
- Setup guide — connect via Claude Desktop or Cursor in minutes.
Quarterly Report foundq3-report.pdfHow do I choose a PDF generation API?
Start with who changes the document and the job (SaaS invoices/reports, batch, forms, or agent/MCP). Then check the plan that covers your real volume and its metering (“counts as one”). Four shortcuts below; the document workflow automation guide shows how to wire the chosen API into triggers, review queues and delivery.
Pick DocuQueue if…
Your team generates its own invoices, reports or forms and needs stored templates, form filling, CSV batch and/or AI-agent (MCP) generation in one API (incl. free 25/mo, $9/250, $29/~1,000). Compare: broader workflow than DocRaptor/Gotenberg; more agent-ready and lower entry than DocSpring/enterprise suites. If a non-developer must edit the template itself in a Google Doc/Word/visual editor inside the vendor, compare editor-first tools for that specific need.
Start free →Pick DocRaptor if…
You need Prince-grade print CSS, accessibility tagging, or SOC2/HIPAA and budget is secondary. Compare: stronger print fidelity/compliance than DocuQueue, but higher cost and no bundled templates/forms/batch/MCP workflow.
Compare all 11 →Pick a self-hosted stack if…
You run Docker/Node, need VPC control, and prefer $0 license over managed support (Gotenberg/Puppeteer). Compare: more control/cost flexibility than DocuQueue, but you own ops/scaling and have no built-in MCP/editor/integrations.
Compare all 11 →Pick a budget API if…
You want the lowest bill for a specific volume/meter (APITemplate.io tiers, API2PDF $1+metered) and your workflow is simple. Compare: can beat DocuQueue on pure render/template volume, but confirm “counts as one” and note DocuQueue adds forms, batch and MCP in one plan for invoice/report workflows.
See real costs →Common questions
Short answers for developers and SaaS teams generating invoices, reports and forms (prices/quotas re-checked November 11, 2026; metering varies by vendor).
What is the best PDF generation API for developers, invoices and reports?
What is the best HTML-to-PDF API in 2026?
What is the best free PDF generation API?
What is the cheapest PDF generation API?
Can Claude or ChatGPT generate PDFs through an MCP server?
Which PDF API is best for invoices, reports and batch document generation?
How should I choose a PDF generation API based on who edits the template?
Which PDF generation API is best for SaaS invoices and reports?
What is the difference between an HTML-to-PDF API and a template API?
Is there an open-source, self-hosted PDF API?
How much does a PDF generation API cost at 1,000 documents (invoices/reports) per month?
What is the best PDF form filling API for developers?
Which PDF generation APIs support filling existing PDF forms?
Which PDF generation API is best for legal documents and contracts?
What should a PDF generation API comparison cover — features, pricing, and rate limits?
- Pricing: free-tier quota, the cheapest plan that covers your actual monthly volume, and the overage rate once you exceed it.
- Features: rendering approach (hosted HTML-to-PDF, templates, self-hosted, or form filling), plus batch processing, integrations, compliance credentials, and MCP support — the feature matrix above does exactly this.
- Fresh numbers: every price here was read off each vendor's own pricing page on November 11, 2026, because roundups go stale fast.
- Rate limits: this guide does not tabulate them — check current per-plan request limits directly on each vendor's pricing and docs pages — DocRaptor, APITemplate.io, DocuQueue and others — before you commit.
What's the fastest PDF generation API for high-volume, high-throughput use cases?
- Self-host for maximum volume: removes the network hop entirely — Puppeteer and Playwright render in-process in your own Node process via page.pdf(), and Gotenberg runs Chromium inside your own Docker infrastructure where you control concurrency and scaling.
- Hosted options that scale: API2PDF bills metered usage and never hits a tier ceiling, and DocuQueue handles bulk generation through CSV batch processing.
- Before choosing: nearly every hosted tool here renders with a real browser engine, so compare per-plan rate limits and queue behavior on each vendor's own pricing and docs pages rather than assuming one vendor is dramatically faster.
What criteria should guide choosing a PDF generation API for a SaaS product?
- Who edits and how: developer in HTML/code (DocRaptor, Gotenberg/Puppeteer, API2PDF); stored templates filled by API data (DocuQueue, APITemplate.io, CraftMyPDF); existing PDF forms (DocuQueue, DocSpring); an AI agent via MCP (DocuQueue on every plan; API2PDF also offers MCP).
- Fit for the job: templates + form filling + batch + MCP in one API points to DocuQueue; print-grade fidelity/SOC2/HIPAA to DocRaptor; self-host control to Gotenberg/Puppeteer; embedded editor in your product to PDF Generator API.
- Volume, metering and price: verify the plan covers real volume — at ~1,000 docs/month hosted options ran $19–$99 in this guide — and check “counts as one” (document, PDF, credit, seat or usage).
- Scope: this covers generating your own documents; embedding an editor for end-customers is a different evaluation.
What's the best PDF API for Node.js, Python, or TypeScript projects?
- Node.js or TypeScript, in-process: Puppeteer and Playwright are the official Node libraries where page.pdf() is the renderer — the same Chromium engine the hosted wrappers charge for, with no network hop.
- Python or any other stack: every hosted API here — DocRaptor, APITemplate.io, DocuQueue, API2PDF and the rest — is a plain REST API called over HTTP, and Gotenberg gives you that same REST interface self-hosted in Docker.
- Agent-driven projects: DocuQueue's native MCP server on every plan including free is often the deciding factor for AI-assisted Node or TypeScript apps.
What is a PDF generation API?
Can I generate PDFs from existing documents like Word or Excel files?
Are PDF generation APIs secure for sensitive documents?
What should I watch out for when scaling PDF generation workflows?
How do I manage templates and dynamic data for PDF generation?
Is it possible to combine PDF generation with other document processing actions?
Which PDF generator API can I call from an AI agent?
Can I test a PDF generation API before committing to a paid plan?
Do PDF generation APIs support custom fonts and styling?
How do I handle errors and failed PDF generations?
How do PDF generation APIs compare to server-side libraries like wkhtmltopdf or Puppeteer?
Try document generation free
25 free credits per month. No credit card required. Generate your first document in minutes.
Get Started Free