Magic Templates turns a plain-English description into a reusable, print-ready PDF template in about a minute. No HTML, no CSS, no design tools — then it's one API call per document, forever.
Try it free — included on every planThree steps, about a minute, no design skills required.
Send a sentence to POST /v1/templates/magic — "a modern invoice with my brand colors and French labels." Optionally include a sample data payload.
The AI writes a self-contained HTML/CSS template with mustache placeholders ({{fields}}, loops, conditionals) and saves it to your account as custom:name.
Call POST /v1/generate with your data and that template name. Same template, unlimited documents — no AI cost after the first build.
If you can describe it, PDFMint can build it.
Create the template once, then generate as many documents as you like.
# 1. Create a reusable template from a description curl -X POST https://pdfmintapi.com/v1/templates/magic \ -H "Authorization: Bearer pm_your_key" \ -H "Content-Type: application/json" \ -d '{"description":"A clean invoice with a navy header, itemized table with tax, and a PAID stamp","name":"studio-invoice"}' # → { "template": "custom:studio-invoice", ... } # 2. Generate documents from it — forever, no AI cost curl -X POST https://pdfmintapi.com/v1/generate \ -H "Authorization: Bearer pm_your_key" \ -H "Content-Type: application/json" \ -d '{"template":"custom:studio-invoice","data":{ ... }}' --output invoice.pdf
Free tier includes Magic Templates — no credit card, 100 PDFs a month.
Get your free API key →