Onyxcine PDF API & MCP Docs
Base URL: https://onyxcine.com · Auth header: Authorization: Bearer oxpdf_live_...
1. Generate PDF (POST /api/v1/pdf)
Accepts JSON up to 256 KB with one of: template + data, markdown, html, or url. Returns binary application/pdf by default, or JSON if "responseType": "base64" is passed.
POST https://onyxcine.com/api/v1/pdf
Authorization: Bearer oxpdf_live_YOUR_KEY
Content-Type: application/json
{
"template": "invoice",
"data": {
"brandName": "Northstar Creative LLC",
"invoiceNumber": "INV-2026-084",
"issueDate": "2026-12-06",
"items": [{ "description": "Consulting Retainer", "qty": 1, "unitPrice": 1200 }]
},
"options": { "format": "a4", "landscape": false }
}2. Generate OG Card / Screenshot (POST /api/v1/screenshot)
Renders crisp 1200x630 social Open Graph images or full-page website captures in png or webp.
POST https://onyxcine.com/api/v1/screenshot
Authorization: Bearer oxpdf_live_YOUR_KEY
Content-Type: application/json
{
"template": "og-card",
"data": {
"theme": "dark",
"badge": "RELEASE 2.0",
"title": "Zero-Puppeteer PDF Generation",
"domain": "onyxcine.com/pdf"
},
"options": { "type": "png", "width": 1200, "height": 630 }
}3. Built-In Templates (GET /api/v1/pdf/templates)
invoicepdfMulti-line invoice with automatic subtotal/tax math, due status, and clickable payment CTA.
receiptpdfClean single-page confirmation receipt ideal for Polar, Stripe, or SaaS billing webhooks.
ai-reportpdfTurns LLM / n8n Markdown insights and KPI cards into an executive-ready board PDF.
proposalpdfStructured agency pitch & scope of work with deliverables checklist and pricing breakdown.
certificatepdfLandscape credential card with clean border framing, verification ID, and signatory block.
og-cardscreenshotPixel-exact social preview & blog thumbnail card rendered as crisp PNG or WebP.
4. Claude Desktop / Cursor MCP Setup
Add our zero-dependency open-source MCP server (packages/onyxcine-pdf-mcp) to your MCP config so AI agents can emit formatted invoices, executive Markdown reports, and OG cards directly:
{
"mcpServers": {
"onyxcine-pdf": {
"command": "npx",
"args": ["-y", "onyxcine-pdf-mcp"],
"env": {
"ONYXCINE_PDF_API_KEY": "oxpdf_live_YOUR_KEY"
}
}
}
}Exposed MCP tools: list_pdf_templates, render_template_pdf, render_markdown_pdf, render_html_pdf, and render_og_image.
5. Quotas, Rate Limits & Support
- Free Plan: 50 renders/month, 10 requests/min burst, max 3 new API keys/day/IP.
- Paid Plans: Starter 60 requests/min (3,000/mo, rollover to 6,000); Growth 120 requests/min (15,000/mo, rollover to 30,000); upstream Cloudflare Paid capacity 10 req/s (600/min).
- Auto-Refund Protection: Upstream render errors auto-refund 1 credit (capped at 15 auto-refunds/hour/account).
- Support, Billing & Abuse Reports: Email support@onyxcine.com.