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
No SDKs to install. No config files. Just send a POST request.
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.pdfconst 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();From simple HTML-to-PDF to AI-powered template generation and smart data mapping.
Describe what you need in plain English. Our AI generates professional HTML templates instantly.
Generate PDFs in under 3 seconds. Serverless architecture scales automatically with demand.
One POST request is all it takes. Send HTML or a template ID with data — get a PDF back.
Start with 5 professional templates: invoices, receipts, reports, certificates, and letters.
API key authentication, rate limiting, and usage tracking built in from day one.
Send raw JSON data and template variables — our AI intelligently maps fields for you.
From zero to PDF in under a minute.
Sign up free and generate your API key from the dashboard in seconds.
POST your HTML or let AI generate a template. Add data variables as needed.
Get back a URL to your pixel-perfect PDF. Store it, email it, or embed it.
Start free. Scale as you grow. No hidden fees.
For side projects
For growing teams
For scale
For large orgs
Sign up in 30 seconds. Get your API key. Generate your first PDF in under a minute.
Get Started Free