PDF generation API

Send HTML.
Get back a pixel-perfect PDF.

One HTTP endpoint for every stack. Convert HTML, live URLs, Markdown, Typst and Office files to PDF, PNG or JPG, with real browser rendering or Typst in milliseconds. You don't install anything in your app.

Node.jsC# / .NETRustPythonPHPGocurl
# 1. Write any HTML
echo '<h1>Invoice #1042</h1>' > index.html

# 2. POST it
curl -H "Authorization: Bearer $KEY" \
  -F files=@index.html \
  -F printBackground=true \
  https://pdf-api.usekaze.app/forms/chromium/convert/html \
  -o invoice.pdf

# 3. Done ✓  invoice.pdf  (38 KB, 0.4s)
Live playground

Try it right now

Edit the HTML or Typst, or paste a URL, and render a real PDF with the same engine the API uses.

Your PDF will appear here.
How it works

Three steps, any language

Keep your templates in your own app (Handlebars, Razor, Tera, Jinja, anything). We only do the rendering.

1

Get your API key

Pick a plan and pay with BTC (Lightning) or USDC. Payment is confirmed automatically and your key appears on screen and in your inbox.

2

Render your HTML

Build the document with your usual templates and CSS. Add header.html and footer.html files if you want page headers and numbers.

3

POST & receive PDF

Send a multipart/form-data request. The response body is the PDF, ready to save, stream or email.

Quickstart

Copy, paste, generate

Every example sends the same request. Replace KEY with your API key. Check your plan, PDFs left and expiry at any time with GET /key.

// Node.js 18+ (no dependencies)
import { writeFile } from "node:fs/promises";

const form = new FormData();
form.append("files", new Blob(["<h1>Hello PDF</h1>"], { type: "text/html" }), "index.html");
form.append("printBackground", "true");

const res = await fetch("https://pdf-api.usekaze.app/forms/chromium/convert/html", {
  method: "POST",
  headers: { Authorization: "Bearer KEY" },
  body: form,
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
await writeFile("out.pdf", Buffer.from(await res.arrayBuffer()));
EndpointWhat it does
POST/forms/chromium/convert/htmlHTML → PDF. The main file must be named index.html. You can also send CSS, images and fonts as extra files.
POST/forms/chromium/convert/urlRenders a public web page to PDF. Send the url field.
POST/forms/chromium/convert/markdownMarkdown files rendered through an index.html wrapper.
POST/forms/typst/convertTypst → PDF in a few milliseconds, no browser. Upload main.typ plus data and images; other form fields arrive as sys.inputs.
POST/forms/chromium/screenshot/htmlHTML → PNG or JPG. format=png|jpg, width, height, fullPage=true for the whole page, deviceScaleFactor=2 for retina, quality for JPG. Also /screenshot/url for web pages.
POST/forms/libreoffice/convertWord, Excel, PowerPoint, ODF, CSV and more → PDF. Send merge=true to combine several documents.
POST/forms/libreoffice/screenshotOffice document → PNG or JPG. page (default 1), dpi (default 150), format=png|jpg; the response has X-Page-Count.
POST/forms/pdfengines/screenshotPDF page → PNG or JPG, with the same page, dpi and format options.
POST/forms/pdfengines/mergeMerges several PDFs, in alphabetical order of their filenames.
GET/healthService status, for uptime checks.

Useful form fields for Chromium endpoints:

paperWidth=8.27paperHeight=11.7marginTop=0.5marginBottom=0.5landscape=trueprintBackground=truescale=1.0nativePageRanges=1-3waitDelay=1sheader.htmlfooter.html
API tester

Test your integration with your token

Paste your API token, pick an endpoint and send a real request, like Postman. Every endpoint comes with a working example; replace the fields and files with your own, then copy the matching curl command.

POST /forms/chromium/convert/html · Send the page as index.html; CSS, images and fonts as extra files, referenced by name.

488 B
508 B
238 B
149 B

Paste your token to send. Each successful render uses one download from your plan.

curl -X POST "https://pdf-api.usekaze.app/forms/chromium/convert/html" \
  -H "Authorization: Bearer $KEY" \
  -F "files=@index.html" \
  -F "files=@style.css" \
  -F "files=@logo.svg" \
  -F "files=@footer.html" \
  -F "printBackground=true" \
  -F "paperWidth=210mm" \
  -F "paperHeight=297mm" \
  -o invoice.pdf
The response will appear here.
Pricing

Simple, monthly, cancel anytime

Every plan includes all endpoints. Pay with BTC or USDC, with no card or bank account needed.

Starter

$9 / month
  • 2,000 PDFs / month
  • All conversion routes
  • 10 MB uploads
Choose Starter

Business

$99 / month
  • 100,000 PDFs / month
  • All conversion routes
  • 100 MB uploads
  • Custom fonts installed
Choose Business
Pay as you go

1,000 PDFs

$5 once
  • 1,000 PDFs, never expire
  • Pay once, no subscription
Choose 1,000 PDFs
Pay as you go

10,000 PDFs

$35 once
  • 10,000 PDFs, never expire
  • Pay once, no subscription
Choose 10,000 PDFs
Payment

Pay with Bitcoin or USDC

Choose a plan and coin. Payment is detected automatically: Lightning in seconds, USDC once the transfer has a few confirmations. Your key is shown here and emailed to you.

Renewals with the same email extend your existing key, so you don't need to change your code.

FAQ

Questions

Do you store my documents?

No. Each file is rendered in memory and deleted as soon as the PDF is returned. We never keep your HTML or the PDFs we generate.

Can I use custom fonts and CSS?

Yes. Send font files and stylesheets as extra files in the same request and reference them with relative paths from index.html. Google Fonts links also work.

How do I add page numbers?

Send a footer.html file containing <span class="pageNumber"></span> / <span class="totalPages"></span>. Chromium fills these in on every page.

What if I send the wrong network or amount?

Email business@usekaze.app with the transaction ID and we'll activate your key by hand. Tokens sent on a network we don't list may not be recoverable, so double-check the network before you send.

Monthly plan or pack?

A monthly plan gives you a number of PDFs every 30 days while it's paid. A pack adds PDF credits that never expire. You can have both: the monthly allowance is used first, then credits.

How do I renew or top up?

Buy again with the same email, or paste your existing token at checkout. Months stack on the time you have left, packs add credits, and your token stays the same.

I lost or leaked my key.

Call POST https://api.usekaze.app/pdf/key/rotate with your current token to get a new one immediately, or email support and we'll rotate it for you.

Which formats can I convert?

HTML, web pages, Markdown, Typst, and Office files (Word, Excel, PowerPoint, ODF, CSV) to PDF, plus HTML, web pages, Office files and PDF pages to PNG or JPG.