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.
# 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)
Edit the HTML or Typst, or paste a URL, and render a real PDF with the same engine the API uses.
Keep your templates in your own app (Handlebars, Razor, Tera, Jinja, anything). We only do the rendering.
Pick a plan and pay with BTC (Lightning) or USDC. Payment is confirmed automatically and your key appears on screen and in your inbox.
Build the document with your usual templates and CSS. Add header.html and footer.html files if you want page headers and numbers.
Send a multipart/form-data request. The response body is the PDF, ready to save, stream or email.
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()));| Endpoint | What it does |
|---|---|
POST/forms/chromium/convert/html | HTML → PDF. The main file must be named index.html. You can also send CSS, images and fonts as extra files. |
POST/forms/chromium/convert/url | Renders a public web page to PDF. Send the url field. |
POST/forms/chromium/convert/markdown | Markdown files rendered through an index.html wrapper. |
POST/forms/typst/convert | Typst → 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/html | HTML → 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/convert | Word, Excel, PowerPoint, ODF, CSV and more → PDF. Send merge=true to combine several documents. |
POST/forms/libreoffice/screenshot | Office document → PNG or JPG. page (default 1), dpi (default 150), format=png|jpg; the response has X-Page-Count. |
POST/forms/pdfengines/screenshot | PDF page → PNG or JPG, with the same page, dpi and format options. |
POST/forms/pdfengines/merge | Merges several PDFs, in alphabetical order of their filenames. |
GET/health | Service status, for uptime checks. |
paperWidth=8.27paperHeight=11.7marginTop=0.5marginBottom=0.5landscape=trueprintBackground=truescale=1.0nativePageRanges=1-3waitDelay=1sheader.htmlfooter.htmlPaste 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.
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
Every plan includes all endpoints. Pay with BTC or USDC, with no card or bank account needed.
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.
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.
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.
Send a footer.html file containing <span class="pageNumber"></span> / <span class="totalPages"></span>. Chromium fills these in on every page.
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.
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.
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.
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.
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.