$ man pdf-to-markdown-api
/pdf-to-markdown-api
PRICE / CALL
$0.20
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
mediakitCATEGORY
uncategorized
STATUS
● live
NAME
pdf-to-markdown-api — pdf to markdown api / pdf parser api / pdf to text api / scanned pdf ocr api
synonym alias of pdf-to-markdown — reuses the canonical handler.
SYNOPSIS
POST https://x402.agentutility.ai/pdf-to-markdown-api
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
PDF to Markdown API / PDF parser API / PDF to text API / scanned PDF OCR API. Converts a public PDF URL into clean Markdown, HTML, or structured JSON while preserving headings, tables, equations, and reading order. Datalab Marker backend, 30 pages max.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| pdf_url | string | Public URL of a PDF file (http or https). Must be directly fetchable, not behind auth or a viewer redirect. Max 30 pages. | required |
| output_format | string | 'markdown' (default — best for LLM downstream), 'html' (preserves more layout structure), or 'json' (per-page blocks with type + bbox). enum: markdown · html · json | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| markdown | string | — |
| page_count | string | — |
| source_url | string | — |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/pdf-to-markdown-api \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster npx -y @agentutility/mcp-<cluster> # Required: EVM private key with USDC on Base export X402_PRIVATE_KEY=0x... # Then call the pdf-to-markdown-api tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- mediakitpdftomarkdownapipdf-to-markdown-api
- methods
- POST
- cluster
- mediakit
- price
- $0.20 USDC per call
ADJACENT — other endpoints in mediakit
| endpoint | description | price |
|---|---|---|
| convert-pdf | PDF converter / convert PDF to Markdown / HTML / JSON / structured text. | $0.20 |
| ocr | OCR / optical character recognition / scanned document extractor / image-PDF to text. | $0.20 |
| pdf-parser-api | PDF parser API / PDF content extractor / scanned PDF OCR API. | $0.20 |
| pdf-text-extractor | PDF text extractor / PDF to text API / OCR PDF reader. | $0.20 |
| pdf-to-markdown | PDF parser / PDF to Markdown / PDF to text / OCR PDF / extract tables from PDF / scanned-PDF OCR / PDF reader / PDF data extractor / equa… | $0.20 |
| pdf-to-text | Extract text from PDF / PDF to plain text / pdftotext / pdf2txt / PDF text extractor / scanned PDF OCR / read PDF / parse PDF / PDF conte… | $0.20 |
| pdf2md | PDF to Markdown converter. | $0.20 |
| doc-to-json | Document to structured JSON / PDF/DOCX/PPT/XLSX/image to JSON / file parser with schema / invoice extractor / resume parser / contract ex… | $0.10 |
SEE ALSO