Document generation API for SaaS and enterprise
Secure and scalable PDF generator API
Build a template with AI or import a document you already use. Your app fills it with JSON through the API, and your customers edit it in a white label editor under your brand.
Free for 14 days in the Sandbox. Full API, 50 credits, no credit card.

A branded invoice with my logo, billing details, a line items table with VAT, totals on the right and a payment QR code.
- Read the template structure
- Add header with logo and invoice number
- Add billing and shipping blocks
- Add line items table with VAT
- Add totals and payment QR code
- Set sample data and validate
In this template

A delivery note with the route, sender and consignee, a table of pallets with weights, and a tracking barcode.
- Read the template structure
- Add header and delivery number
- Add route with three stops
- Add pallet table with weights
- Add tracking barcode
- Set sample data and validate
In this template

A landscape certificate of completion with the course name, the learner name in a script font, a seal, two signatures and a verification ID.
- Read the template structure
- Set landscape page and border
- Add course and learner name
- Add seal and two signature lines
- Add verification ID
- Set sample data and validate
In this template

A monthly performance report with four KPI tiles, a revenue chart for the last six months and a table of top customers.
- Read the template structure
- Add title and reporting period
- Add four KPI tiles
- Add revenue chart
- Add top customers table
- Set sample data and validate
In this template

An event ticket with the event name, date and venue, the attendee name, seat and ticket type, and a QR code to scan at the door.
- Read the template structure
- Add event name, date and venue
- Add attendee and seat
- Add ticket type badge
- Add QR code
- Set sample data and validate
In this template
Built by the AI template builder from one sentence. Every numbered feature runs on the same account.
How it works
How the PDF generation API works in three simple steps
From idea to shipped document. Build the template once, then send data whenever a document is due.
Three ways to create a PDF template
All of them end in the same drag and drop editor.
Try it firstOpen the editor demo, or let an agent build templates with our GitHub skill.
One request returns the PDF
One request with the template ID and your JSON, from an AI agent, your code or a workflow tool.
Start with the Developer guide, SDKs, a Postman collection and the JWT how to.
Without codeUse Make, n8n, Zapier, Odoo or the MCP server.
# Add the MCP server to Claude, Cursor or n8n
{
"mcpServers": {
"pdf-generator-api": {
"url": "https://mcp.pdfgeneratorapi.com/mcp",
"headers": { "Authorization": "Bearer <JWT>" }
}
}
}
# Then ask in plain language
Generate the November invoice for Mooc & Finn as a PDF
curl -X POST https://us1.pdfgeneratorapi.com/api/v4/documents/generate \ -H"Authorization: Bearer $JWT"\ -H"Content-Type: application/json"\ -d'{ "template": { "id": 104872, "data": { "invoice": { "number": "INV-2026-0931" } } }, "format": "pdf", "output": "url" }'
const res = await fetch("https://us1.pdfgeneratorapi.com/api/v4/documents/generate", { method:"POST", headers: { Authorization:`Bearer ${jwt}`,"Content-Type":"application/json"}, body: JSON.stringify({ template: { id: 104872, data: order }, format:"pdf", output:"url"}) }); const { response: url } = await res.json();
import requests
r = requests.post(
"https://us1.pdfgeneratorapi.com/api/v4/documents/generate",
headers={"Authorization": f"Bearer {jwt}"},
json={
"template": {"id": 104872, "data": order},
"format": "pdf", "output": "url",
})
url = r.json()["response"]
Six more services for your documents
Signing, forms, conversion, accessibility, e-invoices and PDF tools run on the same account and the same templates.
SpeedA one page invoice takes a median 0.97 s in our speed benchmark.
Example templates
Free PDF templates with sample data
Open a template, send your own JSON to it, or change the layout in the editor.
Partner program
PDF API partner program for platforms, ISVs and agencies
Partner through a revenue share, partner pricing or a white label deployment. We built the integrations below ourselves, and each one has its own page and tutorial.
Logos belong to their owners and show platforms with a PDF Generator API integration, not members of the partner program. SaaS and ERP vendors can also embed the white label editor with a workspace per customer.
Enterprise deployment
Dedicated deployment and on premises PDF generation
When a security review or a data residency rule decides where documents are made, run a single tenant instance in your region or install it yourself.
Runs in the US and starts in minutes. Plans and credits are on the pricing page.
Installed in your own environment, behind your network and your keys. How on premises works
Single tenant, operated by us in the region you pick. HIPAA with a BAA is available here only.
Our customers know better
Don’t just take our word for it
We are extremely grateful that a number of local and global companies have chosen us as their service providers. Here is what they have to say about our service.

The drag and drop builder is the main reason we switched. Our designer can now build and adjust templates directly, without touching the code.


It would be really hard without this for us to build the PDF documents our clients need. It has saved us hundreds, maybe thousands of hours.

Everything in this document is generated with PDF Generator. It works seamlessly with our CRM and automation system. That was essential for us.
Questions
PDF generator API FAQ
Pricing, the free trial, hosting and what your customers can do themselves.
Help from a person when you need it
Our support team is there when you want to go through a template, an integration or a deployment with a person.
How much does PDF Generator API cost?
Is there a free PDF generator API?
Can my customers edit their own PDF templates?
Can AI create a PDF template for me?
Can we run PDF Generator API on premises?
Where is my data stored?
How does PDF Generator API compare with other PDF APIs?
Which industries use PDF Generator API?
How does the partner program work?
Which integrations does PDF Generator API have?
Can PDF Generator API create e-invoices?
Can it generate accessible PDF/UA documents?
Sandbox
Try the PDF generator API with your own document
The Sandbox gives you the full API for 14 days. Paid plans start at €8 a month on the pricing page.
































United Kingdom
Germany
Australia