Comparisons · 2026

The 11 Best PDF Generation APIs in 2026

Prices checked: November 11, 2026 · Updated: November 20, 2026

Short answer

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.

Key takeaways
  • 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
At a glance

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) —
* APITemplate.io’s $19 price requires annual billing ($24 month-to-month). Counts as one varies by vendor (document, PDF, credit, seat, or usage) — confirm on each pricing page for your workload. Scope: this guide compares APIs for a team/SaaS generating its own documents (invoices, reports, contracts, forms); embedding an editor for your end-customers to design invoices inside your product is a different evaluation. All prices/quotas taken from each vendor’s pricing page on November 11, 2026. A dash in the MCP column means no MCP server was listed on that product’s site when we checked — not that one cannot exist.

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).

Method

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.

Feature matrix

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 free
The taxonomy

Four 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 →
The APIs

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.

Best for: print-grade fidelity — statements, books, accessible PDFs, mixed page sizes in one document.
Limitations: paid plans start at $15/mo for only 125 documents, and it gets expensive fast at volume.
Hosted HTML-to-PDF

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.

Best for: larger organizations that need centralized template governance and brand compliance across Microsoft 365 and Google Workspace.
Limitations: priced per user, so cost scales with headcount rather than document volume; connectors and approvals require Enterprise, and there is no public price or self-serve PDF API.
Enterprise templates

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).

Best for: template-driven generation when you also need filler operations and e-signatures from one credit pool.
Limitations: credits are shared across operations, so effective PDF counts drop if you mix in watermarks and merges; tiers run $29–$499.
Templates

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.

Best for: large orgs that need a full document stack (PDF, OCR, redaction) under enterprise procurement rather than a low-cost template entry point.
Limitations: credit-based and quote-driven above the free plan, so unit economics are harder to compare with flat-rate APIs; we have not run it in production.
Enterprise

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.

Best for: teams that need PDFs and images from one template workflow (WYSIWYG, HTML, URL or Markdown sources).
Limitations: the $19 price needs annual billing ($24 month-to-month); automation depth depends on Zapier/Make plans.
Templates + HTML

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.

Best for: template-based document generation, AI-agent workflows (Claude, ChatGPT and Gemini via MCP), batch business docs, and filling existing PDF forms.
Limitations: closed source, and the ecosystem is younger than the incumbents — paid plans start once you pass 25 documents a month.
Templates + MCP

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).

Best for: products whose core object is a filled PDF form — contracts, applications, onboarding packets.
Limitations: steepest entry price of the template APIs ($49/mo), and its 25¢ overage rate is the highest per-document rate in this comparison.
Form filling

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.

Best for: SaaS platforms that need an embedded template editor with compliance credentials and an enterprise story.
Limitations: EUR-only pricing and credit-based quotas you need to model before committing; entry tier is light (50 credits/mo).
Embedded editor

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.

Best for: unpredictable volumes and agent-driven generation — pay per byte and second, never per tier.
Limitations: costs are hard to forecast in advance, and you inherit engine quirks across three different renderers.
Wrapper API

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.

Best for: teams with Docker already who want $0 licensing and full control of their data.
Limitations: you own uptime, scaling, queues and security — no hosted SLA, no support contract, no template editor.
Self-hosted

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.

Best for: product teams already in Node who want rendering in-process with no network hop.
Limitations: no hosted service — you build retries, queues, font packaging and memory management yourself, with no SLA.
Code library
Pricing

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
Not listed above: Nutrient bills pay-as-you-go credits rather than a flat monthly document plan; PDF Generator API bills annually from €80/year with 50–250 credit tiers. Metering matters: “1 document” is not universal (credits can be shared across operations; API2PDF bills per MB and compute-second; Templafy per seat). Annual discounts: APITemplate.io saves up to 20%. DocuQueue is marked best value at ~1,000 docs/mo here: stored templates, form filling, batch and MCP on the same $29 plan. Prices/quotas verified October 15 and re-checked November 11, 2026.

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.

Try it with Claude
Generate a quarterly report PDF from this JSON data
✓ Template Quarterly Report found
✓ Mapped JSON fields to template slots
✓ PDF rendered — q3-report.pdf
C
Done. Your report is ready: q3-report.pdf
Decision

How 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 →
FAQ

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?
For most teams in 2026: DocuQueue — 25 docs/month free, $9 for 250, with HTML, stored templates, form filling, CSV batch and an MCP server so Claude or ChatGPT can generate docs directly. It fits SaaS invoices and reports because you can fill stored templates from JSON/CSV (50 docs per request). For print-perfect HTML/CSS, choose DocRaptor. To self-host, choose Gotenberg ($0). Quick rule: pick based on who changes the document after launch — developer in code, a team filling a stored template, a form-filling workflow, or an AI agent via MCP.
What is the best HTML-to-PDF API in 2026?
DocRaptor is the strongest choice for print-grade fidelity — it is the only hosted API built on the Prince print engine and is SOC2 and HIPAA compliant. For budget-focused HTML-to-PDF, APITemplate.io starts at $19/month for 3,000. If you can self-host, Gotenberg does the same job with Chromium for free.
What is the best free PDF generation API?
The most generous free hosted tiers we verified on November 11, 2026: DocuQueue gives 25 documents per month including its MCP server, APITemplate.io 50 PDFs plus 3 templates, CraftMyPDF 50 PDFs, and DocRaptor 5. For truly unlimited free generation, self-host Gotenberg or use Puppeteer — both are open source and cost only your infrastructure.
What is the cheapest PDF generation API?
API2PDF has the lowest entry price of any hosted API we checked: $1 per month plus $0.001 per MB of bandwidth and $0.00019551 per second of compute. Among flat-rate plans, DocuQueue starts at $9/month. If you already run servers, Gotenberg and Puppeteer are free.
Can Claude or ChatGPT generate PDFs through an MCP server?
Yes. DocuQueue ships a native MCP server on every plan — including the free tier — so Claude, ChatGPT or Gemini can render documents as a direct tool call. API2PDF also offers an MCP server and accepts x402 payments from agents. Any other REST API on this list can be called by an agent through a simple tool wrapper. For the end-to-end flow, see generating PDFs with Claude; if the template itself is the task, see designing PDF templates with Claude.
Which PDF API is best for invoices, reports and batch document generation?
DocuQueue is built for this: stored templates filled from JSON/CSV (batch 50 documents per request), form filling, HTML/URL rendering and Zapier/Airtable integrations, from $9/month for 250 documents ($29/month for ~1,000) with MCP on every plan. PDF Generator API is an alternative if you need an embedded template editor inside your own product; Gotenberg or Puppeteer if you generate invoices/reports from HTML in your own infrastructure. Always compare metering (“counts as one”: document, PDF, credit or seat) at your volume. For a single one-off invoice, the free invoice generator needs no signup.
How should I choose a PDF generation API based on who edits the template?
Choose by who makes changes after launch: (1) a developer edits HTML/CSS in code — use HTML-to-PDF (DocRaptor, API2PDF) or self-host (Gotenberg/Puppeteer); (2) your app fills a stored template with data (common for invoices and reports) — use a template/batch API (DocuQueue, APITemplate.io, CraftMyPDF, PDF Generator API); (3) the document is an existing PDF form — use a form-filling API (DocuQueue, DocSpring); (4) an AI agent generates documents — prefer an MCP-enabled API (DocuQueue on every plan; API2PDF also offers MCP). Also compare metering (“counts as one”) at your volume.
Which PDF generation API is best for SaaS invoices and reports?
For a SaaS generating its own invoices and reports, prioritize stored templates filled from data, batch generation and predictable metering at ~1,000 documents/month. DocuQueue supports stored templates, CSV/JSON batch (50 documents per request), form filling, HTML/URL rendering and MCP on every plan ($29/month for 1,000 docs). If you need an embedded template editor inside your own product, compare PDF Generator API; if you render from HTML in your own infrastructure, compare Gotenberg or Puppeteer. This differs from embedding an editor for end-customers to design invoices inside your product.
What is the difference between an HTML-to-PDF API and a template API?
An HTML-to-PDF API takes markup you build in code and returns a rendered PDF — DocRaptor, Gotenberg. A template API stores a designed template once and fills it with JSON or CSV data per request — DocuQueue, CraftMyPDF, APITemplate.io. HTML-to-PDF gives developers full layout control; templates let non-developers own the design.
Is there an open-source, self-hosted PDF API?
Yes, two good options. Gotenberg is a Docker-based REST API that wraps Chromium and LibreOffice (docker run -p 3000:3000 gotenberg/gotenberg:8). Puppeteer and Playwright are Node libraries that drive headless Chromium directly via page.pdf(). Both are free; you are responsible for uptime, scaling and security.
How much does a PDF generation API cost at 1,000 documents (invoices/reports) per month?
Among hosted plans we verified (re-checked November 11, 2026), plans covering ~1,000 docs/month included: APITemplate.io PDF Basic $19 (3,000 included, annual), CraftMyPDF Lite $29 (1,200 credits), DocuQueue Pro $29 (1,000 docs, templates/forms/batch/MCP), DocRaptor Premium $75 (1,250 docs), and DocSpring Professional $99 (1,000 PDFs). API2PDF bills metered usage (MB + compute-second), and self-hosted Gotenberg/Puppeteer cost $0 plus infrastructure. Check metering (“counts as one”: document, PDF, credit, seat or usage) because it drives the real bill.
What is the best PDF form filling API for developers?
For developers who want form filling in the same stack as templates, batch and AI agents, DocuQueue includes a Form Fill API on every plan — 25 documents a month free, $9 for 250 — plus an MCP server so an agent can fill and generate documents without a custom integration. If your product’s core job is filling complex PDF forms and collecting e-signatures, DocSpring is the forms-first specialist (from $49/month for 50 PDFs).
Which PDF generation APIs support filling existing PDF forms?
DocSpring is a forms-first API (fill templates, web forms, and existing PDFs, from $49/month). DocuQueue includes a Form Fill API on every plan. DocRaptor converts raw HTML forms into real, accessible PDF forms using the Prince engine. CraftMyPDF also sells a dedicated PDF filler API. Deep dive: our PDF form filling API guide.
Which PDF generation API is best for legal documents and contracts?
For legal and contract documents, DocRaptor offers print-grade rendering plus SOC2/HIPAA compliance, while DocuQueue covers template-driven contracts with batch processing and form filling from $9/month. We compare more options in our guide to automating NDAs and legal documents.
What should a PDF generation API comparison cover — features, pricing, and rate limits?
A solid comparison separates entry price from real cost — which is why this guide prices every API at 1,000 documents per month.
  • 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?
This guide publishes no benchmark timings, so it does not name a single fastest API — throughput depends more on architecture than on any one vendor.
  • 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?
Start with who changes the document and the job (SaaS invoices/reports, batch, forms, or agent/MCP), then apply these criteria.
  • 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?
The guide does not rank language-specific SDKs, so the answer splits by approach.
  • 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?
A PDF generation API takes an input — HTML, a URL, a stored template plus JSON data, or a spreadsheet row — and returns a finished PDF file. Your application sends the request and the service renders the document, so you never run the rendering engine yourself. It handles layout, fonts, page setup and delivery, and returns either a job to poll or a file to download.
Can I generate PDFs from existing documents like Word or Excel files?
Yes. Upload a Word (.docx) template once, fill its placeholders with JSON, and DocuQueue returns a rendered PDF. Batch upload accepts CSV or Excel directly, one PDF per row. This is template filling rather than a full re-layout, so keep the .docx design stable and map your data to its existing fields.
Are PDF generation APIs secure for sensitive documents?
They can be, if you check transport, storage, retention and training. DocuQueue encrypts traffic with TLS 1.2+, encrypts documents at rest, removes generated documents immediately after processing, and does not train AI models on your data. Confirm where the file is stored, who can reach it, and whether the provider's terms meet your industry's requirements.
What should I watch out for when scaling PDF generation workflows?
Watch four things: the rate limit, the concurrency, the billing unit and the queue. DocuQueue allows 5 requests a minute on free, 20 on Starter, 50 on Pro and 100 on Business, and one batch request accepts up to 50 documents with throughput around 10,000 PDFs an hour. Test with a realistic document — long tables and images change both render time and page count — and check what happens to the credit when a request fails.
How do I manage templates and dynamic data for PDF generation?
Choose between writing HTML in your own app and storing a template with the provider. DocuQueue templates use {{variables}} and {% for item in list %} loops filled from JSON in one request, or from a CSV for many documents at once. The schema is read from the template itself, so the design carries its own data shape and you can preview it before you fill.
Is it possible to combine PDF generation with other document processing actions?
Yes, when the platform exposes them together. One DocuQueue account covers HTML and URL conversion, template filling, PDF form filling and CSV batch against the same credits, plus an MCP server on every plan so an agent can call them — instead of joining a generator, a form filler and a queue from three different vendors.
Which PDF generator API can I call from an AI agent?
DocuQueue ships a native MCP server on every plan, including free, so Claude, ChatGPT, Cursor or Gemini can call it directly over MCP at https://docuqueue.com/mcp/v1 with an API key. APIs without an MCP server can still be used by an agent, but only through a REST tool you write and maintain yourself.
Can I test a PDF generation API before committing to a paid plan?
Yes. DocuQueue gives 25 documents a month free with no credit card, which covers a real integration test rather than a sandbox. Before you commit anywhere, check whether the free tier is watermarked, whether it has a company-size or revenue limit, and what happens to your files after the trial.
Do PDF generation APIs support custom fonts and styling?
For HTML-based APIs, yes. Inline CSS and images are supported, and web fonts let you keep brand typography. Font loading, line wrapping and page breaks are where renderers differ most, so test a long table and your own font on a real document before you commit.
How do I handle errors and failed PDF generations?
Poll the job, read the response body, and retry only what actually failed. DocuQueue returns a job_id on submit, exposes GET /api/v1/status/{job_id} and GET /api/v1/download/{job_id}, and refunds the credit when a request fails, so a broken document does not cost you a credit. Always verify the returned file before you send it on.
How do PDF generation APIs compare to server-side libraries like wkhtmltopdf or Puppeteer?
A library runs inside your app and costs nothing to license, but you own the engine: installs, font packaging, headless-browser memory, retries and capacity. A hosted API moves rendering, scaling and upgrades to the provider and you pay per document. Volume alone does not decide it — compare your total cost (infrastructure plus maintenance) against the API's price at your real volume, and keep a library when documents must never leave your own infrastructure.

Try document generation free

25 free credits per month. No credit card required. Generate your first document in minutes.

Get Started Free