x402

Convert Markdown to PDF

Pay-per-call Markdown to PDF for wallet-holding agents ($0.01 in USDC via x402). Call unpaid to get the 402 challenge, then retry with PAYMENT-SIGNATURE. Use /api/v1/md instead if you have an API key.

post/api/v1/markdown

Request

  • Base URL: https://makespdf.com
  • URL: https://makespdf.com/api/v1/markdown
  • Auth: none required

Request body

markdownstring required

GitHub-flavoured Markdown source. Max 200KB of text - inline data: image payloads are excluded from that budget and bounded by the image limits (5MB each, 20 per document). Request body max 15MB.

Response

Rendered PDF (PDF/A-2A + PDF/UA-1 dual-compliant, tagged). Send Accept: application/json for metadata instead of bytes.

successtrue required
templateIdstring

Stored template rendered (/render only).

pageCountinteger required
sizeBytesinteger required
renderMsinteger required
artifactIdstring

Render artifact id; download again via GET /api/v1/artifacts/{id}/pdf.

credits_deductedinteger
remaining_balanceinteger

Changes

No recorded changes to this operation across all 1 revision of this API.