HTML to PDF converter

Print HTML or a web page to PDF. The example turns an HTML invoice into an A4 document with margins for printing.

Run with a free API key

Each PDF uses one render. The free plan includes 50 renders per month across all tools.

POST /v1/pdf
curl 'https://api.kamineko.dev/v1/pdf' \
  -H "Authorization: Bearer $KAMINEKO_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "html": "<h1>Invoice #0042</h1><p>Thanks for your order.</p>",
  "paper": "a4",
  "margin": "1.5cm"
}' \
  -o 'invoice.pdf'

To run this example, set KAMINEKO_API_KEY to your key in your shell.

Use with MCP

Set KAMINEKO_API_KEY to your key and run this command to connect Claude Code. Try the pdf tool with this prompt.

Print https://example.com to an A4 PDF with 1 cm margins.
MCP https://api.kamineko.dev/mcp
claude mcp add --transport http kamineko \
  https://api.kamineko.dev/mcp \
  --header "Authorization: Bearer $KAMINEKO_API_KEY"