Inkspan › Python
Use the Inkspan /v1/generate/template endpoint to generate a PDF from a template in Python. It runs as a managed API — no headless-browser infrastructure, fonts, or scaling to maintain. Authenticate with your API key and send a single POST request.
import requests
r = requests.post('https://api.inkspan.dev/v1/generate/template',
headers={'X-API-Key': 'ink_live_...'},
json={"template":"<h1>{{name}}</h1>","data":{"name":"Ada"}})
open('out.pdf','wb').write(r.content)
X-API-Key header.Related: generate a PDF from HTML · convert Markdown to PDF · merge PDF files