Foliant

PDFs from your app in one HTTP call. Same layout every time.

Foliant renders Typst source to PDF, PNG or SVG in under a second. Store a template once, send data as inputs, and every invoice, report or contract comes out identical, whether your backend or an AI agent asked for it.

300 pages a month, free for good. No credit card, no trial that expires. We email a sign-in link; your key is on the next page.

Real output, A5 rendered in 67 ms Typst 0.15

The whole integration

No headless browser to run, no LaTeX to install, no HTML-to-PDF quirks. Post the source, save the response. Errors come back as JSON with the line number. Works from any language that can make an HTTP request.

  • Under a second per document, p95 around 200 ms
  • Data in Frankfurt; optional US endpoint
  • Documents are never stored, only counted
  • Invoices with VAT for every payment
curl -X POST https://api.foliant.dev/v1/render \
  -H "Authorization: Bearer $FOLIANT_API_KEY" \
  -H "Content-Type: application/json" \
  -o invoice.pdf -d @- <<'JSON'
{ "template": "invoice.typ",
  "inputs": { "no": "2026-0042",
              "customer": "Northwind Traders",
              "total": "8 496.60" } }
JSON

Start from a template, not from a blank page

Ten documents, each a real render. Copy one into your account and change only the data. The layout cannot drift, which is what makes generated documents look like they came from one hand.

Built for agents as much as for backends

The same endpoint is an MCP server. Connect it to Claude, ChatGPT, Grok, Cursor or your own agent: it can check a document compiles, render a stored template with data, and hand back a download link. Templates are the guardrail: the agent fills the fields, the layout stays yours.

Honest pricing

Free: 300 pages a month. Pay as you go: 0.4 cent per page, prepaid, never expires. Plans from 9 EUR a month with included pages. Failed renders are never charged. Full pricing.

Your first PDF in the next five minutes

Enter your email above, open the link, copy the key, run the curl. That is the whole onboarding.

Get my free API key Read the docs first

Operated by karrer.solutions, Austria. Privacy Policy, Terms.