Live API · MCP-ready · 99.9% uptime

HTML, URL & Markdown
to pixel-perfect PDF

One REST call renders a production-grade PDF. Bearer-token auth, structured JSON, idempotent retries — purpose-built for developers and AI agents.

Free tier available · No credit card to test · Key emailed instantly

Quickstart

Get a key from Gumroad (emailed instantly), then make your first request.

request.sh

Live playground

Paste your API key and generate a real PDF right here. Your key stays in your browser — requests go straight to the API.

No key yet? Grab one on Gumroad →

Run a request to see the JSON response and a download link here.

API reference

Base URL https://quill.rgtz.dev · Auth: Authorization: Bearer <api_key>

POST /v1/pdf Generate a PDF

Provide exactly one of html, url, or markdown. Returns a presigned, time-limited download URL.

FieldTypeDescription
htmlstringRaw HTML document to render.
urlstringPublic http(s) URL to render.
markdownstringGitHub-flavored Markdown.
filenamestring?Output filename.
options.formatstringA4 · Letter · Legal · A3 · A5 · Tabloid (default A4).
options.landscapeboolLandscape orientation.
options.marginobject{ top, bottom, left, right } CSS sizes.
options.scalenumber0.1–2.
options.returnBase64boolAlso return pdf_base64 in the response.

Header Idempotency-Key (optional) makes retries safe — replays return the same result with no double billing.

200 OK
{
  "id": "1fca919f-…",
  "download_url": "https://…s3…/invoice.pdf?X-Amz-…",
  "expires_in": 3600,
  "bytes": 17554,
  "filename": "invoice.pdf",
  "usage": { "used": 1, "limit": 5000, "period": "2026-06", "tier": "pro" }
}
GET /v1/usage Current tier & monthly usage
{ "tier": "pro", "used": 128, "limit": 5000, "period": "2026-06" }
GET /v1/manifest
Machine-readable capability manifest for agents. View →
GET /openapi.yaml
OpenAPI 3.1 spec. View →

Error codes

All errors share the envelope { "error": { "code", "message", "hint", "request_id" } }.

HTTPcodeMeaning
401unauthorizedMissing or invalid API key.
403forbiddenKey revoked, or URL blocked (SSRF).
400invalid_requestBad/missing input.
429quota_exceededMonthly quota reached.
413payload_too_largeInput or output exceeds tier limit.
502render_failedRendering failed (quota refunded).
AGENT-NATIVE

Drop it into your AI agent

Ships with an MCP server and a machine-readable OpenAPI 3.1 spec, so your agent discovers and calls the API with zero glue code.

  • MCP server — register one tool, agent gains generate_pdf.
  • OpenAPI 3.1 + manifest — models read every parameter without guessing.
  • Deterministic contracts — stable error codes, idempotent retries.
mcp.json
{
  "mcpServers": {
    "pdf": {
      "command": "npx",
      "args": ["pdf-api-mcp"],
      "env": { "PDF_API_KEY": "pdfk_…" }
    }
  }
}

Simple pricing

Start free. Upgrade when you need volume. Cancel anytime.

Free

$0/mo
  • ✓ 100 PDFs / month
  • ✓ Up to 5 MB / document
  • ✓ HTML, URL & Markdown
  • ✓ MCP + OpenAPI
Start free

Pro

Popular
$19/mo
  • ✓ 5,000 PDFs / month
  • ✓ Up to 20 MB / document
  • ✓ Custom size, margins, landscape
  • ✓ Idempotency-Key retries
Get Pro

Scale

$99/mo
  • ✓ 50,000 PDFs / month
  • ✓ Up to 50 MB / document
  • ✓ Everything in Pro
  • ✓ Priority rendering
Get Scale