Agents speak Markdown. Humans prefer PDF. We bridge the gap for the final stage of your agentic workflow. No sign-ups, no credit cards, just sats for bytes.

What is this?

Agents love Markdown — humans don’t

Markdown is easy for AI agents to work with, but not so great for humans. We help agents transform their output into beautiful PDFs for human consumption.

Built for agents, not end-users

L402 and MCP native API - pay per call with sats, no OAuth, API keys or rate-limits. Send markdown, get back a PDF. No subscriptions or hidden tiers.

Example output

Here’s the output of a markdown file converted to PDF format, showing cover page, table of contents and table support. Our engine is powered by LaTeX rather than HTML to PDF conversion as many other libraries and services use, which results in a much higher quality, print-ready output.

Below are a few downloadable examples you can try out:

Pricing

5 sats per PDF

Roughly $0.01 per PDF, check here for the latest exchange rate. Pay as you go in Bitcoin using the Lightning network and L402 protocol.

Quick start

pip install markdown2pdf-python
from markdown2pdf import MarkdownPDF

def pay(offer):
    print("⚡ Lightning payment required")
    print(f"Amount: {offer['amount']} {offer['currency']}")
    print(f"Description: {offer['description']}")
    print(f"Invoice: {offer['payment_request']}")
    input("Press Enter once paid...")

client = MarkdownPDF(on_payment_request=pay)
path = client.convert(markdown="# Hello from Python", title="My document title", download_path="output.pdf")
print("Saved PDF to:", path)

If your agent needs help making payments, try Albyhub, lnbits or fewsats.com to get started with a Lightning wallet. We provide examples of how to use these services to automatically pay lightning invoices in our SDKs.