Invoicing PDF API for developers

Multi-currency invoice PDFs, straight from your HTML.

Send HTML and your numbers — rates from Stripe Tax, TaxJar, or your own logic — and get back a pixel-perfect, locale-correct invoice rendered by real Chromium. No headless browser to maintain. Receipts, contracts and reports too.

POST /v1/documents
Request
curl -X POST https://glyfa.dev/v1/documents \
  -H "Authorization: Bearer dk_live_..." \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-4821-invoice" \
  -d '{
    "type": "invoice",
    "template": "tpl_invoice_standard",
    "data": {
      "customer": "Acme Corp",
      "amount": 4500.00,
      "items": [
        { "desc": "Enterprise Plan", "qty": 1 }
      ]
    },
    "options": { "format": "A4" }
  }'
Response (202 Accepted)
{
  "id": "doc_8f7d9a2b3c1e",
  "status": "queued",
  "jobId": "job_c4f2a1b9",
  "createdAt": "2026-06-09T14:32:01Z"
}

// Poll for completion:
// GET /v1/documents/doc_8f7d9a2b3c1e
// → { "status": "completed", "url": "https://..." }
Live sandbox

See it render in seconds.

No signup, no card. Type two names, click the button, get a real PDF rendered by the same engine you'd ship with.

Public sandbox — 5 renders / minute / IP
Your rendered PDF will appear here.
Most sample renders finish in a second or two.
Like what you see? Get your own free API key and ship it.

Built for billing & document workflows

Tax & currency aware

Multi-currency formatting (locale-correct — JPY, EUR, GBP…), tax line items, and breakdowns rendered from the rates you send. Bring your own tax engine: Stripe Tax, TaxJar, or your own logic.

No Chromium to babysit

We run the headless-browser fleet so you don't — no 2 GB instances, no Chrome-update breakage, no serverless limits. Send HTML, get a PDF.

Real-Chromium rendering

Pixel-perfect PDFs from modern HTML, CSS & JavaScript — the same engine your site renders in. Most documents finish in 1–2 seconds.

Webhooks, not polling

Pass a callbackUrl and we POST an HMAC-signed event the moment a render finishes — with automatic retries. No status polling. (Business plan.)

Secure by default

Every render runs in an isolated, non-root browser with sanitized HTML and no access to internal networks.

Self-hostable

Run Glyfa on your own infrastructure. AGPL-licensed open core; the cloud is the paid convenience.

Integrate in minutes

A workflow designed for developers. No drag-and-drop editors, just code.

01

Define Template

Write standard HTML/CSS. Use Handlebars syntax for variables and helpers (currency, date, tax breakdown). No proprietary layout engines to learn.

02

Send JSON Data

Hit our REST API with your dynamic data payload. We merge it with your template instantly, sanitize it, and queue the render.

03

Receive PDF

Get a highly optimized, pixel-perfect PDF back synchronously or via a signed URL once rendering finishes.

Transparent Pricing

Start free. Pay for what you render — generous included volume, then $0.002 each.

2 months free

Free

For testing and side projects.

$0/mo
  • 1,000 renders / month
  • Custom HTML + all pre-built templates
  • Full REST API & OpenAPI docs
  • Community support

Developer

For small apps and growing side projects.

$19/mo
  • Everything in Free
  • 5,000 renders / month included
  • $0.002 per extra render
  • Email support
Most Popular

Business

For production billing & document workflows.

$49/mo
  • Everything in Developer
  • 25,000 renders / month included
  • Async webhook delivery
  • Priority render queue
  • $0.002 per extra render
  • Priority email support