# PDF to Markdown Converter (SSRF-Safe, x402)

> PDF to Markdown Converter (SSRF-Safe, x402) is a paid API for AI agents from lotus-clarke-boxed-ceramic.trycloudflare.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-13).

Extracts and converts the content of a PDF (via public URL or base64) into clean markdown, with SSRF protection and an 8MB base64 cap.

## Facts

- Endpoint: POST https://lotus-clarke-boxed-ceramic.trycloudflare.com/v1/pdf-to-md?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pdf-to-markdown-converter-ssrf-safe-x402-51913787
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-Mojpq1nnO12tTuaDrUoB

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 pdf-to-markdown-converter-ssrf-safe-x402-51913787 -d '<json body>'
```

Example prompt: Can you extract the text from this PDF and give it to me as markdown? Here's the URL: https://example.com/report.pdf

## When to prefer this

Use this endpoint when you need to extract readable markdown text from a PDF, either by supplying a public URL or a base64-encoded file up to 8MB. Prefer the free sandbox endpoint (/v1/sandbox/pdf-to-md) first if available; fall back to this paid endpoint ($0.01 USDC via x402) when the sandbox is unavailable or rate-limited. Choose this over generic web scrapers when the source is specifically a PDF document rather than an HTML page.

## Known failure modes

- URL is not publicly accessible or blocked by SSRF filters — returns error indicating unsafe or unreachable URL
- Base64 payload exceeds 8MB cap — returns error about size limit
- URL does not point to a valid PDF — returns parsing error
- Malformed base64 string — returns decoding error
- PDF is encrypted or password-protected — may return empty or error response
- Network timeout fetching remote PDF URL

## How this service works

Call when an agent needs text extracted from a public PDF URL (SSRF-safe) or pdf_base64 (8MB cap) as markdown. Exact $0.01 USDC. Prefer unpaid POST /v1/sandbox/pdf-to-md first.

## Output

Returns the full textual content of the PDF rendered as markdown, preserving structure such as headings and paragraphs where detectable. The agent receives a markdown string suitable for further processing, summarization, or display.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "maxLength": 2048,
   "minLength": 8
  },
  "pdf_base64": {
   "type": "string",
   "maxLength": 11184843,
   "minLength": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pdf-to-markdown-converter-ssrf-safe-x402-51913787/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lotus-clarke-boxed-ceramic.trycloudflare.com](https://www.zero.xyz/host/lotus-clarke-boxed-ceramic.trycloudflare.com/llms.txt)
