Docweave vs PDFGeneratorAPI
Docweave is an MCP-native document-generation API: one REST call turns HTML, a URL, or a template + JSON into a PDF, billed per document. PDFGeneratorAPI is a template-based document generation API with a browser template editor; the biggest reason to consider Docweave instead is its open-source generate_pdf MCP tool combined with per-document (not per-credit or per-page) pricing.
Where Docweave differs
| Docweave | PDFGeneratorAPI | |
|---|---|---|
| MCP-native tool | generate_pdf, open source (npx @docweave/mcp) | See provider docs |
| Pricing model | Per document | See provider pricing |
| Sources | HTML, URL, template + JSON | Template + JSON (browser template editor) |
| Rendering | Chromium | See provider docs |
Switching from PDFGeneratorAPI
The request shape is familiar — POST a source, get a PDF back:
curl https://docweave.dev/api/v1/pdf \
-H "Authorization: Bearer dw_live_your_key" \
-H "Content-Type: application/json" \
-H "Accept: application/pdf" \
-d '{
"source": { "type": "html", "html": "<h1>Invoice #1024</h1>" },
"options": { "format": "A4", "margin": "20mm" }
}' \
--output invoice.pdfFAQ
Is Docweave a drop-in PDFGeneratorAPI alternative?
For template-based document generation, the shape is similar: you store a layout and bind data into it to get a PDF back. Docweave accepts a template + JSON, raw HTML, or a URL, renders with Chromium, and returns the file. The main additions are a first-class MCP server and per-document pricing.
What does Docweave offer that a template-based document API does not?
An open-source, MCP-native generate_pdf tool (npx @docweave/mcp) that any MCP client — Claude, Cursor, and others — can call directly, alongside HTML and URL sources for cases where you do not want to build a template first.
How does pricing compare?
Many template-based document platforms bill per credit, per template, or on tiered plans tied to a browser editor. Docweave bills per document, so a long report and a one-page receipt are priced the same way. Check PDFGeneratorAPI's current pricing page for exact numbers.
Can I use Docweave from an AI agent?
Yes. Add the Docweave MCP server and your agent gets a generate_pdf tool — one tool call instead of HTTP plumbing, with built-in idempotency so it never double-generates the same document.
Try the MCP-native PDF API.
Get an API key