THE DOCUMENT TOOLBOX, EXPANDED

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.

See it work
No credit card No monthly commitment
DOCUMENT / 001PDF · A4
a.Acme StudioDesign with intention.

Invoice

INV—2026—042
September 07, 2026
Northstar Labs

120 Market Street
San Francisco, CA 94103

Due September 21, 2026
USD · Bank transfer

DESCRIPTIONQTYAMOUNT
Brand identity system1$2,400.00
Website design1$4,800.00
Development handoff1$1,200.00
Subtotal$8,400.00
Tax (0%)$0.00
Total due$8,400.00
Thank you for building with us.01 / 01
templateData{ "total": 8400 }
invoice.pdfSample output · ready to inspect
HTML + DATAPRODUCTION PDF
FITS RIGHT INTO YOUR STACK
REST APINode.jsPythonPHP.NETJavaCLIMCP
Explore SDKs

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.

Explore all capabilities

02 / 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.

INTERACTIVE SAMPLE

Your data. Your design.

Use a published template to turn structured data into a document that feels like your brand.

POST /v1/pdf
{
  "templateId": "your-published-template-id",
  "templateData": {
    "company": "Acme Studio",
    "customer": "Northstar Labs",
    "total": 8400
  },
  "response": "url"
}
Explore the Template API
a.Acme StudioDesign with intention.

Invoice

INV—2026—042
September 07, 2026
Northstar Labs

120 Market Street
San Francisco, CA 94103

Due September 21, 2026
USD · Bank transfer

DESCRIPTIONQTYAMOUNT
Brand identity system1$2,400.00
Website design1$4,800.00
Development handoff1$1,200.00
Subtotal$8,400.00
Tax (0%)$0.00
Total due$8,400.00
Thank you for building with us.01 / 01

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 gallery

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.

RESTSDKCLIMCP
request.shRELAYPDF / REST
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.pdf

05 / 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.

PAY AS YOU BUILD

Start with $5 on us.

Prepaid credit. Measured usage. Failed jobs are never billed.

Find your cost

A FEW MORE DETAILS

Good questions.
Clear answers.

Talk to us

Make your next document a good one.

Start with a template, a few lines of HTML, or a file you already have.