Generate invoices and PDFs from a template
Turn structured data into pixel-perfect invoices, receipts and reports — line items, totals and branding rendered server-side, every time, without a headless browser to babysit.
100 renders / month free · no card · paid plans are never blockedHow it works
Lay out the document
Define the header, line-item table and totals as a template with repeatable rows.
Send the line items
POST the customer, items and amounts as JSON — the engine handles pagination and layout.
Get a PDF back
Receive a print-ready PDF in seconds, cached and ready to attach, store or download.
One API call
curl https://api.mostlyrender.com/v1/renders \
-H "Authorization: Bearer mr_test_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"templateId":"tpl_invoice","modifications":{"customer":"Northwind Co.","number":"2049","total":"$1,700.00"}}'Questions
Why not run Puppeteer myself for PDFs?
You can — until you’re maintaining fonts, a browser farm, retries and a queue. MostlyRender is that pipeline as an API, with predictable latency and a cache so the same document isn’t rendered twice.
Do multi-page documents work?
Yes. Add merge: true to a batch request and every item is rendered as a page and stitched into one multi-page PDF — the path for long invoices, statements and reports.
How do I send the invoice data?
As JSON. POST the template id and a modifications object keyed by layer name — customer, invoice number, totals and so on — and the response contains the PDF’s URL.
Can I render invoices asynchronously?
Yes. Add async: true (or a webhookUrl) and you get a job id back immediately with a 202; we call your webhook with a signed payload when the PDF is ready, or you can poll the job.
Is the PDF vector or an image?
Vector. PDF output keeps text and lines sharp at any zoom and prints cleanly, which is why invoices and statements usually go out as PDF rather than PNG.
What does it cost to generate invoices at volume?
A single-page invoice is one render, and a merged multi-page PDF is metered per page. Starter includes 2,000 a month for $19, Pro 10,000 for $49 and Scale 50,000 for $149; past that, overage is billed at $3–$5 per 1,000 and rendering never stops on a paid plan.
Are the PDFs stored for me?
Yes, for a while: rendered files are retained for 30 days on Free and 90 days on paid plans. Treat our URL as the delivery link and keep your own copy for your records.