Phone ReadyTry 2 Free AI Brand Brief Rewrites →
Onyxcine
← Back to Live Playground & Keys

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)

invoicepdf

Multi-line invoice with automatic subtotal/tax math, due status, and clickable payment CTA.

receiptpdf

Clean single-page confirmation receipt ideal for Polar, Stripe, or SaaS billing webhooks.

ai-reportpdf

Turns LLM / n8n Markdown insights and KPI cards into an executive-ready board PDF.

proposalpdf

Structured agency pitch & scope of work with deliverables checklist and pricing breakdown.

certificatepdf

Landscape credential card with clean border framing, verification ID, and signatory block.

og-cardscreenshot

Pixel-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.
2 MONTHS FREE · 7-DAY REFUND

1 wrong claim freezes 30–90 days of TikTok payouts

Filming into a saturated niche or a blind 1/3 Spark Ads payout cut wastes weeks of shoots. Spot risky phrases and real buyer demand before hitting record.

Pro $9.90/mo or $99/yr (2 months free) · 0 TikTok password needed · 7-day Polar refund

Compare Pro Plans →