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
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.
API reference
Base URL https://quill.rgtz.dev · Auth: Authorization: Bearer <api_key>
/v1/pdf
Generate a PDF
Provide exactly one of html, url, or markdown. Returns a presigned, time-limited download URL.
| Field | Type | Description |
|---|---|---|
| html | string | Raw HTML document to render. |
| url | string | Public http(s) URL to render. |
| markdown | string | GitHub-flavored Markdown. |
| filename | string? | Output filename. |
| options.format | string | A4 · Letter · Legal · A3 · A5 · Tabloid (default A4). |
| options.landscape | bool | Landscape orientation. |
| options.margin | object | { top, bottom, left, right } CSS sizes. |
| options.scale | number | 0.1–2. |
| options.returnBase64 | bool | Also return pdf_base64 in the response. |
Header Idempotency-Key (optional) makes retries safe — replays return the same result with no double billing.
{
"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" }
}
/v1/usage
Current tier & monthly usage
{ "tier": "pro", "used": 128, "limit": 5000, "period": "2026-06" }
/v1/manifest
/openapi.yaml
Error codes
All errors share the envelope { "error": { "code", "message", "hint", "request_id" } }.
| HTTP | code | Meaning |
|---|---|---|
| 401 | unauthorized | Missing or invalid API key. |
| 403 | forbidden | Key revoked, or URL blocked (SSRF). |
| 400 | invalid_request | Bad/missing input. |
| 429 | quota_exceeded | Monthly quota reached. |
| 413 | payload_too_large | Input or output exceeds tier limit. |
| 502 | render_failed | Rendering failed (quota refunded). |
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.
{
"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
- ✓ 100 PDFs / month
- ✓ Up to 5 MB / document
- ✓ HTML, URL & Markdown
- ✓ MCP + OpenAPI
Pro
Popular- ✓ 5,000 PDFs / month
- ✓ Up to 20 MB / document
- ✓ Custom size, margins, landscape
- ✓ Idempotency-Key retries
Scale
- ✓ 50,000 PDFs / month
- ✓ Up to 50 MB / document
- ✓ Everything in Pro
- ✓ Priority rendering