Now with AI templates

PDF generation for developers

One API call. Send HTML, get a PDF. Or describe what you need in plain English — AI builds the template for you.

Free tier: 50 PDFs + 10 AI calls/month. No credit card.

generate-pdf.js
Node.js
// Generate a PDF in one call
const response = await fetch(
"https://pdfgen-api.vercel.app/api/generate"
, { method: "POST",
headers: {
"Authorization": "Bearer pk_your_key"
}, body: JSON.stringify({
html: "<h1>Invoice #1042</h1>"
}) })
Response 200 OK
{ "url": "https://...storage/invoice-1042.pdf" }
<3sgeneration time
99.9%uptime SLA
3API endpoints
5built-in templates

Built for developers who ship fast

Everything you need to generate PDFs at scale. Nothing you don't.

One API call

Send a POST with HTML. Get a PDF URL back. That's the entire integration — no SDKs, no config files.

AI template generation

Describe what you need in plain English. AI generates a complete, styled HTML template with variables.

Smart data mapping

Send raw JSON + template variables. AI maps fields intelligently — first_name + last_name → full_name.

Sub-3s generation

Serverless Chromium renders your HTML to pixel-perfect PDFs. Scales automatically with demand.

Secure by default

API key auth, rate limiting, HMAC webhook verification, HTML sanitization. Enterprise-ready.

Built-in templates

5 professional templates ready to use: invoices, receipts, reports, certificates, and letters.

AI-powered

Describe it.
AI builds it.

Don't write HTML templates from scratch. Just describe what you need — “professional invoice with line items, tax calculation, and payment terms” — and get a complete, production-ready template in seconds.

  • AI generates styled HTML templates from descriptions
  • Smart variable extraction ({{company}}, {{items}}, etc.)
  • AI maps your JSON data to template fields automatically
  • Save and reuse templates across projects
AI Template Request
// Let AI create your template
await fetch("/api/ai/template", {
method: "POST",
body: JSON.stringify({
prompt: "Professional invoice
with company logo, line items,
tax calculation, and total"
})
})
Response
{ html: "<!DOCTYPE html>...",
variables: ["company", "items", "tax", "total"],
template_id: "tmpl_8f3k..." }

Three steps to your first PDF

From zero to PDF in under a minute.

1

Get your API key

Sign up free, grab your key from the dashboard. Takes 30 seconds.

2

Send a request

POST your HTML or describe what you need. Add data variables as needed.

3

Get your PDF

Receive a signed URL to your pixel-perfect PDF. Store, email, or embed it.

Simple, transparent pricing

Start free. Upgrade when you grow. No surprises.

Free

Perfect to get started

$0/month
  • 50 PDFs/month
  • 10 AI calls/month
  • All built-in templates
  • Community support
Get started
Most popular

Pro

For production apps

$49/month
  • 15,000 PDFs/month
  • 500 AI calls/month
  • No watermark
  • Priority support
  • Webhooks
Start free trial

Business

For scale

$99/month
  • 100,000 PDFs/month
  • 2,000 AI calls/month
  • Custom domain
  • Dedicated support
  • SLA guarantee
Start free trial

Also available: Starter ($19/mo) and Enterprise ($299/mo). See all plans

Ready to generate your first PDF?

Sign up in 30 seconds. Get your API key instantly. No credit card required.