Docweave vs Api2Pdf
Api2Pdf is a multi-engine PDF generation API covering a broad range of conversion tasks. Docweave focuses on rendering HTML, a URL, or a template + JSON into a PDF with Chromium, and adds an MCP-native generate_pdf tool plus per-document pricing. If your workload is agent-driven or template-based, that is where Docweave differs.
Where Docweave differs
| Docweave | Api2Pdf | |
|---|---|---|
| MCP-native tool | generate_pdf, open source (npx @docweave/mcp) | REST API |
| Pricing model | Per document | See provider pricing |
| Sources | HTML, URL, template + JSON | HTML, URL, and more |
| Rendering | Chromium | Multiple engines |
Switching from Api2Pdf
Point Docweave at a URL (or send HTML or a template) and get a PDF back:
curl https://docweave.dev/api/v1/pdf \
-H "Authorization: Bearer dw_live_your_key" \
-H "Content-Type: application/json" \
-d '{
"source": { "type": "url", "url": "https://example.com/receipt" },
"options": { "format": "A4" }
}' \
--output receipt.pdfFAQ
Is Docweave an Api2Pdf alternative?
Yes for the common cases: HTML-to-PDF and URL-to-PDF. Docweave renders with Chromium, also supports template + JSON, and ships a first-class MCP server so agents can generate PDFs with a single tool call.
What does Docweave add over a general PDF API?
An open-source, MCP-native generate_pdf tool (npx @docweave/mcp) for Claude, Cursor, and any MCP client, plus template + JSON rendering so you store a layout once and bind data into it per document.
How does pricing compare?
Many general-purpose PDF APIs meter by page, credit, or engine. Docweave uses transparent per-document pricing. Review each provider's current pricing page for exact numbers.
Does Docweave support URL-to-PDF?
Yes. Pass a source of type url and Docweave renders the page with Chromium and returns a PDF, with control over format, margins, orientation, and headers/footers.
Try the MCP-native PDF API.
Get an API key