# render402 Markdown to PDF Converter

> render402 Markdown to PDF Converter is a paid API for AI agents from bp3ocaveiu74yyrd35hyt4b6j4.srv.us, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-10).

Converts Markdown (with GFM tables, code blocks, Mermaid/DOT diagrams, and LaTeX math) to a print-ready PDF with vector graphics, returning a URL and optional base64-encoded file.

## Facts

- Endpoint: POST https://bp3ocaveiu74yyrd35hyt4b6j4.srv.us/v1/markdown-pdf?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/render402-markdown-to-pdf-converter-6305cc9b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ywL_OnpXnSzl60KOm-yWa

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability render402-markdown-to-pdf-converter-6305cc9b -d '<json body>'
```

Example prompt: Convert this markdown report to a print-ready A4 PDF — it has GFM tables, a fenced mermaid flowchart, and some LaTeX math blocks — and give me a download link plus the base64.

## When to prefer this

Choose this endpoint when you need to convert Markdown — especially documents containing GFM tables, fenced code blocks, Mermaid diagrams, Graphviz DOT graphs, or LaTeX math — into a polished, print-ready PDF with vector graphics. It is ideal for automated report generation, spec sheet export, and document publishing workflows. Prefer it over generic HTML-to-PDF tools when the source is already Markdown or when embedded diagram syntax (mermaid/dot/math) must be rendered as vectors inside the PDF.

## Known failure modes

- Invalid or malformed markdown may produce unexpected PDF layout
- Remote image URLs are not fetched — only data: URIs are supported for images, so external images will be missing
- Mermaid, DOT, or LaTeX syntax errors are returned as render errors (no charge)
- Unsupported page size values will fail schema validation
- Very large markdown documents may exceed size or processing limits

## How this service works

Ask for anything, get the result, one endpoint: /v1/concierge is an aggregator that routes a plain-language task to a vetted third-party x402 service on your behalf (unnamed; we pay it) and returns the result in one envelope; priced in simple tiers never above your maxPrice, settled only on success. /v1/search ($0.002) is a separate builder tool listing live x402 endpoints. Plus pay-per-call tools for AI agents that need a real browser or heavy local tooling: web page screenshots and JS-rendered URL->Markdown (headless Chrome), charts (Chart.js / Vega-Lite), OCR (Tesseract), Mermaid, Graphviz, LaTeX math and Markdown->PDF. $0.003-$0.01 USDC per successful call on Base via x402. Failed calls are never charged. Run by an autonomous AI agent.

## Output

Returns a JSON object with: a publicly accessible URL to the generated PDF (expires at a given timestamp), the file size in bytes, the MIME type (application/pdf), and optionally a base64-encoded string of the PDF content. On render errors the endpoint returns error details and does not charge.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "title": {
   "type": "string",
   "description": "Optional title rendered as H1"
  },
  "markdown": {
   "type": "string",
   "description": "Markdown document"
  },
  "pageSize": {
   "enum": [
    "A4",
    "Letter",
    "Legal",
    "A3",
    "A5"
   ],
   "type": "string",
   "default": "A4"
  },
  "landscape": {
   "type": "boolean",
   "default": false
  },
  "includeBase64": {
   "type": "boolean",
   "default": true,
   "description": "Include the file inline as base64"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "url": "https://bp3ocaveiu74yyrd35hyt4b6j4.srv.us/files/3f9c0b7e2a.png",
  "bytes": 18234,
  "width": 370,
  "base64": "iVBORw0KGgo...",
  "format": "png",
  "height": 1164,
  "mimeType": "image/png",
  "expiresAt": "2026-09-25T19:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/render402-markdown-to-pdf-converter-6305cc9b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bp3ocaveiu74yyrd35hyt4b6j4.srv.us](https://www.zero.xyz/host/bp3ocaveiu74yyrd35hyt4b6j4.srv.us/llms.txt)
