Generate invoices, reports, certificates and filled PDF forms from HTML, URLs, or stored templates. Send JSON and get a finished PDF via REST API, batch jobs, or AI agents (MCP) with Claude and ChatGPT.
Pick the method that fits the job: render from HTML/URLs, fill a stored template with data, fill an existing PDF form, or let an AI agent generate documents via MCP.
Render raw HTML/CSS or convert a web page to a pixel-perfect PDF. Best when a developer controls layout in code (HTML to PDF examples).
Design/store a template once, then fill it with JSON/CSV to generate invoices, reports or certificates—one or in bulk (batch generation). A developer/team owns the template; your app fills the data.
Upload an existing PDF and fill its fields with data (e.g. W-4, W-9, I-9 or custom forms). Form filling API with field detection.
Let Claude, ChatGPT or other MCP clients generate invoices, PDFs and filled forms from chat by calling the same capabilities via the DocuQueue MCP server.
A PDF Generation API is a REST endpoint that programmatically creates PDF documents from structured data, HTML markup, stored templates, or existing PDF forms. Instead of manually designing documents in word processors, developers send a request to the API and receive a formatted PDF in return. This automates document workflows at scale, eliminating repetitive manual work.
Developers use PDF generation APIs to automate invoice creation, contract assembly, certificate generation, report rendering, and tax form filling. The API handles layout, styling, fonts, and pagination, so your application focuses on data, not document design. Whether you need a single PDF or ten thousand, the API scales to match.
DocuQueue lets you generate invoices, reports and filled forms via a single REST API: render a URL or raw HTML (HTML to PDF examples), fill a stored template with JSON/CSV data (a developer/team owns the template; your app fills it), or fill existing PDF forms. The same capabilities are available over MCP for AI agents like Claude and ChatGPT, with batch jobs and webhooks for automation. Each generated PDF counts as one. Start with 25 free documents/month.
Six endpoints to handle every PDF generation workflow. Convert URLs, render HTML, fill templates, and manage jobs.
Convert any URL to a pixel-perfect PDF. Supports batch processing for multiple pages.
Send raw HTML and CSS, receive a rendered PDF. Full control over layout and styling.
Fill a pre-built or custom template with JSON data. Variables, line items, and conditionals supported.
Check the status of an async conversion job. Poll or use webhooks.
Download the generated PDF once the job completes.
Get started in minutes with any language. Copy, paste, and run.
# Convert a URL to PDF curl -X POST https://docuqueue.com/api/v1/convert \ -H "api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"urls": ["https://example.com"]}' # Convert HTML to PDF curl -X POST https://docuqueue.com/api/v1/convert-html \ -H "api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"html": "<h1>Hello</h1><p>World</p>"}' # Fill a template with data curl -X POST https://docuqueue.com/api/v1/templates/{id}/fill \ -H "api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"data": {"name": "John", "amount": 100}}'
import requests API_KEY = "your_api_key" BASE_URL = "https://docuqueue.com/api/v1" # Convert a URL to PDF response = requests.post( f"{BASE_URL}/convert", headers={"api-key": API_KEY}, json={"urls": ["https://example.com"]} ) # Check job status job_id = response.json()["job_id"] status = requests.get( f"{BASE_URL}/status/{job_id}", headers={"api-key": API_KEY} ) # Download the PDF pdf = requests.get( f"{BASE_URL}/download/{job_id}", headers={"api-key": API_KEY} ) open("output.pdf", "wb").write(pdf.content)
const API_KEY = "your_api_key"; const BASE_URL = "https://docuqueue.com/api/v1"; // Convert a URL to PDF const response = await fetch(`${BASE_URL}/convert`, { method: "POST", headers: { "api-key": API_KEY, "Content-Type": "application/json", }, body: JSON.stringify({ urls: ["https://example.com"], }), }); const { job_id } = await response.json(); // Download the PDF const pdf = await fetch(`${BASE_URL}/download/${job_id}`, { headers: { "api-key": API_KEY }, }); const buffer = await pdf.arrayBuffer(); require("fs").writeFileSync("output.pdf", buffer);
REST API with API key auth, Chromium rendering, batch processing, async jobs, templates, and webhooks.
Pass your API key in the api-key header with every request. No OAuth or token refresh required.
PDFs are rendered via Chromium. Supports complex HTML layouts, CSS, and web fonts.
Process multiple documents in parallel. Generate hundreds of PDFs per request.
Submit jobs and poll for status. Non-blocking workflow for high-throughput apps.
Pre-built templates or custom DOCX. Variables, line items, and conditionals.
Get notified when jobs complete. Build event-driven document workflows.
Automate any document workflow that currently involves manual PDF creation.
Generate invoices from CRM data automatically
Create awards, completions, and credentials
Assemble agreements from templates and data
Render analytics and business reports as PDF
Fill and generate W-9, W-4, I-9, 1099 forms
Stop creating PDFs by hand. Automate PDF generation from your data, templates, or HTML so documents are produced automatically whenever your app or workflow needs them.
Trigger automated PDF generation from any app event—a new order, signup, or form submission. Call the API to create a PDF instantly.
Fill reusable templates with JSON or spreadsheet data to automatically generate invoices, contracts, reports, and certificates at scale.
Automate bulk PDF generation with async jobs and batch endpoints. Poll status or use webhooks to deliver finished PDFs into your workflow.
With DocuQueue, automated PDF generation is as simple as one API call: convert HTML or URLs to PDF, or fill a template with data and get a ready-to-download file. Combine bulk generation, webhooks, and the REST API to run fully automated document workflows without managing rendering infrastructure.
Start free to automate your first PDF, or see the API docs for endpoints and examples.
Generate PDFs programmatically inside your product. Multi-tenant, white-label ready.
Each API key maps to a tenant. Isolated data, separate billing, per-tenant rate limits.
Remove DocuQueue branding. Your PDFs look like they come from your product.
From 10 PDFs/month to 100,000+. Same API, same latency, same quality.
Two terms, overlapping but distinct. Here's the short version.
A PDF API focuses specifically on PDF output. You send HTML, a URL, or structured data; you get a PDF back. The API handles rendering, pagination, and styling.
A Document Generation API is broader. It may produce PDFs, Word docs, Excel spreadsheets, or presentations from the same template. Useful when your workflow requires multiple output formats.
DocuQueue is a PDF-focused API. If you need PDFs only, you get a simpler interface, faster rendering, and lower cost. If you need multiple formats, compare document generation APIs.
Key differences at a glance (metering and “counts as one” vary by vendor). See the full comparison for developers & AI agents →
| Feature | DocuQueue | APITemplate.io | CraftMyPDF | PDFGeneratorAPI |
|---|---|---|---|---|
| Free Tier | 25 credits/mo | None | 3 credits/mo | None |
| HTML to PDF | Yes | Yes | No | No |
| Batch Processing | Yes | No | No | No |
| PDF Form Filling | Yes | No | No | No |
| MCP for AI agents (Claude, ChatGPT) | Yes | No | No | No |
"We replaced our entire PDF pipeline with DocuQueue's API. The HTML to PDF conversion is pixel-perfect, and batch processing cut our document generation time from hours to minutes."Marcus Chen CTO, InvoiceFlow
"The template system is exactly what we needed. We upload a DOCX template, send JSON data via the API, and get formatted PDFs back. Our legal team generates 200+ contracts per week now."Sarah Mitchell Operations Manager, LegalEdge
"Finally, a PDF API with a real free tier. I evaluated five different services and DocuQueue was the only one that let me prototype without entering a credit card. The API docs are excellent."James Park Solo Developer
api-key header with every request. Get your key from the dashboard after registering. No OAuth or token refresh required.
https://docuqueue.com/mcp/v1) lets Claude, ChatGPT, Cursor and other MCP clients create PDFs and invoices from stored templates, fill PDF forms, and run batch jobs from chat. You can also call the same capabilities via the REST API. For a side-by-side of tools and APIs, see the PDF generation APIs comparison guide.
/api/v1/forms/fill, or connect via MCP: claude mcp add docuqueue --transport http https://docuqueue.com/mcp/v1. Supports W-4, W-9, I-9, and custom PDF forms.
Need higher volume or done-for-you setup? Email arun@docuqueue.com.