AI-powered PDF generation API

Generate beautiful PDFs
with one API call

Send HTML or describe what you need in plain English. Our AI creates professional templates, maps your data, and returns pixel-perfect PDFs in seconds.

50 free PDFs/month · 10 AI calls · No credit card needed

<3s
Average generation time
99.9%
Uptime SLA
3
API endpoints
5
Built-in templates

Simple as a fetch call

No SDKs to install. No config files. Just send a POST request.

Generate PDF
const response = await fetch("https://pdfgen.ai/api/generate", {
  method: "POST",
  headers: {
    "Authorization": "Bearer pk_your_api_key",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    html: "<h1>Hello {{name}}</h1>",
    data: { name: "Acme Corp", amount: "2,499.00" }
  })
});

const { url } = await response.json();
// → https://pdfgen.ai/storage/abc123.pdf
AI Template Generation
const response = await fetch("https://pdfgen.ai/api/ai/template", {
  method: "POST",
  headers: {
    "Authorization": "Bearer pk_your_api_key",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    prompt: "Professional invoice with logo, line items, tax, and payment terms",
    save: true,
    name: "My Invoice"
  })
});

const { html, variables, template_id } = await response.json();

Everything you need to generate PDFs

From simple HTML-to-PDF to AI-powered template generation and smart data mapping.

AI-Powered Templates

Describe what you need in plain English. Our AI generates professional HTML templates instantly.

Lightning Fast

Generate PDFs in under 3 seconds. Serverless architecture scales automatically with demand.

Simple API

One POST request is all it takes. Send HTML or a template ID with data — get a PDF back.

Built-in Templates

Start with 5 professional templates: invoices, receipts, reports, certificates, and letters.

Secure by Default

API key authentication, rate limiting, and usage tracking built in from day one.

AI Data Mapping

Send raw JSON data and template variables — our AI intelligently maps fields for you.

Three steps to your first PDF

From zero to PDF in under a minute.

01

Get your API key

Sign up free and generate your API key from the dashboard in seconds.

02

Send a request

POST your HTML or let AI generate a template. Add data variables as needed.

03

Download your PDF

Get back a URL to your pixel-perfect PDF. Store it, email it, or embed it.

Simple, transparent pricing

Start free. Scale as you grow. No hidden fees.

Free

Try it out

$0/mo
  • 50 PDFs/month
  • 10 AI calls/month
  • Watermark
  • Community support
Get Started Free
Most Popular

Starter

For side projects

$19/mo
  • 2,000 PDFs/month
  • 100 AI calls/month
  • No watermark
  • Email support
Start Free Trial

Pro

For growing teams

$49/mo
  • 15,000 PDFs/month
  • 500 AI calls/month
  • Webhooks
  • Priority support
Start Free Trial

Business

For scale

$99/mo
  • 100,000 PDFs/month
  • 2,000 AI calls/month
  • Custom domain
  • Dedicated support
Start Free Trial

Enterprise

For large orgs

$299/mo
  • Unlimited PDFs
  • Unlimited AI calls
  • SLA guarantee
  • 24/7 phone support
Start Free Trial

Ready to generate your first PDF?

Sign up in 30 seconds. Get your API key. Generate your first PDF in under a minute.

Get Started Free