PDF generation & document processing API
HTML to PDFs
without the
struggle.
Generate beautiful PDFs. Convert, edit, and extract document data. One API for your applications and coding agents.
Invoice
INV—2026—042September 07, 2026
120 Market Street
San Francisco, CA 94103
Due September 21, 2026
USD · Bank transfer
{ "total": 8400 }01 / THE PLATFORM
Every document task.
One place to build.
From the first render to the final handoff, RelayPDF gives your code the tools to work with documents.
Generate
HTML, URLs, Markdown, and your templates. Beautiful PDFs with the details in place.
PDF · SCREENSHOTS · TEMPLATESConvert
Turn Office files, images, and email into documents your application can use.
OFFICE · IMAGES · EMAILEdit
Merge, split, fill, protect, and optimize. A complete set of practical PDF operations.
MERGE · FORMS · COMPRESSIONExtract
Make scans searchable. Turn incoming PDFs into text, structured data, and assets.
OCR · JSON · TEXTAutomate
Connect your code and agents. Keep jobs moving with async delivery and webhooks.
REST · SDK · CLI · MCP02 / INPUT MEETS OUTPUT
A few lines in.
Something useful out.
See how a template becomes an invoice, a PDF becomes structured data, and a scan becomes searchable.
Your data. Your design.
Use a published template to turn structured data into a document that feels like your brand.
{
"templateId": "your-published-template-id",
"templateData": {
"company": "Acme Studio",
"customer": "Northstar Labs",
"total": 8400
},
"response": "url"
}Explore the Template APIInvoice
INV—2026—042September 07, 2026
120 Market Street
San Francisco, CA 94103
Due September 21, 2026
USD · Bank transfer
Illustrative preview. No API request is sent.
03 / A HEAD START
Good documents
start with good design.
Start with a stock layout. Make it yours. Publish once and render with fresh data whenever you need it.
Browse the template galleryInvoice
INV—2026—042September 07, 2026
120 Market Street
San Francisco, CA 94103
Due September 21, 2026
USD · Bank transfer
A clearer view.
A stronger quarter.
Product performance & business review
Illustrative document designs. Explore the gallery for available templates.
04 / BUILT FOR BUILDERS
Your code.
Your agents.
Your workflow.
Use the interface that fits. Start with REST, reach for an SDK, work in the terminal, or connect your coding agent through MCP.
curl https://api.relaypdf.com/v1/pdf \
-H "Authorization: Bearer $RELAYPDF_API_KEY" \
-H "Content-Type: application/json" \
-d '{"html":"<h1>Hello, world.</h1>"}' \
--output hello.pdf05 / READY FOR THE HANDOFF
The details that matter
after the first request.
Document processing is part of your application. Delivery, cost controls, and file handling should be too.
Keep work moving
Async jobs, polling, and signed account webhooks with delivery history and replay.
Read the detailsKnow what you spend
Usage receipts and per-job spending caps. Supported retries reuse the job without a second charge.
Read the detailsHandle files deliberately
Account-owned private uploads, temporary outputs, and document contents kept out of request logs.
Read the detailsMake your next document a good one.
Start with a template, a few lines of HTML, or a file you already have.