Tools & Payable Endpoints (2)
$0.004 USD per rendered PDF document (x402 instant micropayment)
Compiles Markdown (headings, bold/italic/code, lists, GFM tables, callouts, '---pagebreak---') or HTML into both print-ready themed HTML and a spec-compliant multi-page PDF 1.7 binary with running headers, 'Page X of Y' footers, repeated table headers across page breaks, optional watermark, and deterministic layoutDiagnostics.
Why buy vs. DIY: Avoids spinning up 400MB Puppeteer/Playwright containers or hand-rolling brittle PDF stream/xref math; returns both binary PDF and layout QA diagnostics in <20ms at $0.004.
POST https://pdf-forge.apikeg.com/v1/render-document-pdf ·
Full Parameter Spec ·
Markdown Spec
$0.001 USD per PDF binary inspection (x402 instant micropayment)
Parses a Base64-encoded PDF binary to verify %PDF header/EOF integrity and extract pdfVersion, exact pageCount, byteLength, encryption status, AcroForm presence, and Info dictionary metadata.
Why buy vs. DIY: Instant deterministic PDF preflight without installing native poppler/pdfinfo binaries; $0.001 per check.
POST https://pdf-forge.apikeg.com/v1/inspect-pdf-document ·
Full Parameter Spec ·
Markdown Spec
Quickstart: MCP, x402 & Optional Bearer API Key
1. Streamable HTTP MCP Config (com.apikeg/pdf-forge)
{
"mcpServers": {
"pdf-forge": {
"type": "streamable-http",
"url": "https://pdf-forge.apikeg.com/mcp"
}
}
}
Using a Monthly Stripe Plan? Get your per-email ak_live_... key at https://apikeg.com/account ($5 / $20 / $50 monthly tiers) and pass header Authorization: Bearer ak_live_... on REST or MCP requests.
2. Free Schema Dry-Run ($0.00)
curl -X POST "https://pdf-forge.apikeg.com/v1/render-document-pdf?dry_run=true" \
-H "Content-Type: application/json" \
-d '{"title":"Q4 Cloud FinOps Executive Summary","subtitle":"Quarterly Infrastructure Margin & Savings Audit","author":"Platform FinOps Team","theme":"executive","pageSize":"Letter","orientation":"portrait","contentFormat":"markdown","headerText":"ACME CORP — Q4 FINOPS AUDIT","includePageNumbers":true,"watermarkText":"CONFIDENTIAL","content":"## Highlights\n\nNet cloud margin improved **420 bps** quarter-over-quarter.\n\n| Service | Q3 Spend | Q4 Spend | Delta |\n| --- | ---: | ---: | ---: |\n| Compute | $142,000 | $118,500 | -16.5% |\n| Storage | $38,400 | $35,100 | -8.6% |\n\n> [!NOTE]\n> Reserved capacity commitments lock in an additional $95k annualized savings."}'
Frequently Asked Questions
Why should an AI agent call PDF Forge & Layout Diagnostics Edge API instead of writing custom code?
Eliminates heavyweight headless Chromium containers, broken PDF byte-offset xref tables, clipped wide tables, and embarrassing 2-line trailing orphan pages before delivering client-facing PDFs.
How do I connect PDF Forge & Layout Diagnostics Edge API to Claude, Cursor, or an MCP client?
Connect directly to the stateless Streamable HTTP MCP endpoint at https://pdf-forge.apikeg.com/mcp (registry ID: com.apikeg/pdf-forge). No API keys or OAuth accounts are required; initialize and tools/list are 100% free.
How much does PDF Forge & Layout Diagnostics Edge API cost per API or MCP call?
Pay per call with zero signup via HTTP 402 (x402 v2 USDC on Base): render_document_pdf ($0.004 USD per rendered PDF document (x402 instant micropayment)); inspect_pdf_document ($0.001 USD per PDF binary inspection (x402 instant micropayment)). Prefer traditional monthly billing? Get a verified-email Bearer API key at https://apikeg.com/account with $5/mo ($6 credit), $20/mo ($28 credit), or $50/mo ($80 credit) per-product plans. Invalid schemas (HTTP 400) and ?dry_run=true always cost $0.00.
Can I validate request payloads for free before paying?
Yes. Pass ?dry_run=true in the URL or send the header X-Dry-Run: true to validate your JSON input against the strict schema at $0.00 cost.