New — Magic Templates writes your HTML from a sentence

JSON in. PDF out.
One API call.

Send your data, get back a pixel-perfect invoice, receipt, certificate or report. No headless browser to babysit, no HTML to fight.

Start free — 100 PDFs/month
No credit card Cancel anytime Real Chromium rendering
POST /v1/generate
{
  "template": "invoice",
  "data": {
    "invoice_number": "INV-0042",
    "to": { "name": "Acme GmbH" },
    "items": [
      { "name": "Website redesign",
        "amount": "4,800.00" }
    ],
    "total": "4,800.00"
  }
}
INV-0042.pdf
Northwind StudioINVOICE
Bill to
Acme GmbH
Website redesign$4,800.00
Total due$4,800.00
~600 msmedian render
5 templatesready to use, or bring your own HTML
Zapier & Makefriendly REST API

Try it now — no signup

This is the real API. Pick a template, edit the JSON, get a PDF back in about a second. 5 free runs per day.

POST /tools/generate
What happens: your JSON hits the same rendering engine paying customers use — real Chromium, ~600 ms — and the PDF downloads instantly. Like it? Grab a free key for 100 PDFs/month.

Built for automations

PDFMint slots into the workflows you already run — no PDF library, no wkhtmltopdf flags, no font debugging.

Invoices on autopilot

New Stripe payment or form submission → branded PDF invoice in your customer's inbox.

Certificates at scale

Course completed in your LMS → personalized certificate generated and delivered, hundreds at a time.

Reports on schedule

Cron job posts your metrics JSON every Monday → a clean KPI report lands in Slack.

Five templates, ready on day one

Every template ships with a sample payload — copy it, swap in your data, done. Or describe your own with Magic Templates.

Magic Templates — describe it, get it

No HTML, no design work. Tell PDFMint what you need in plain English and it writes a reusable, print-ready template — then it's one API call per document, forever. Here's the flow:

POST /v1/templates/magic
Describe your document
Understanding your request
Writing HTML & CSS
Rendering print-ready PDF
template.html

Try Magic Templates free → See the full walkthrough →

Document Tracking — know when it's opened

Every PDF you generate gets a hosted, trackable link. See the moment your invoice or quote is actually opened, and fire a webhook to automate the follow-up. No other PDF API in this category offers this.

Invoice-0042.pdf
Opened by [email protected] · 3 views
Opened
"event": "document.viewed", "filename": "Invoice-0042.pdf", "view_count": 3
Chase invoices smarter
Know if a client opened it three times but hasn't paid — a very different follow-up than one they never saw.
Automate the follow-up
The document.viewed webhook triggers a Slack ping, thank-you email, or CRM update the second it's opened.
Zero extra work
On by default — every PDF returns a view link and document ID. No setup, no separate service.
See how tracking works →

Pricing

Start free. Upgrade when your volume does. Cancel anytime.

Free

$0
forever
  • 100 PDFs / month
  • All 5 templates
  • Raw HTML & Markdown
Get API key

Starter

$15
per month
  • 1,000 PDFs / month
  • 50 Magic Templates
  • Document tracking
  • Email support
Start with Starter

Pro

$49
per month
  • 5,000 PDFs / month
  • 500 Magic Templates
  • Document tracking webhooks
  • Priority support
Go Pro

Business

$149
per month
  • 25,000 PDFs / month
  • 2,000 Magic Templates
  • Custom templates built for you
  • Same-day support
Scale with Business

Quickstart

Two requests: get a key, make a PDF.

# 1. Get a free API key
curl -X POST https://pdfmintapi.com/v1/keys \
  -H "Content-Type: application/json" \
  -d '{"email":"[email protected]"}'

# 2. Generate your first PDF
curl -X POST https://pdfmintapi.com/v1/generate \
  -H "Authorization: Bearer pm_your_key" \
  -H "Content-Type: application/json" \
  -d @invoice.json --output invoice.pdf

Free tools

Try the engine without writing a line of code — 5 free PDFs per day, no signup.