← Back to all APIs

Pdf To Markdown

$0.01

Convert a PDF document to clean, LLM-ready Markdown. Provide a direct URL to the PDF or base64-encoded file bytes. Auto-extracts headings, paragraphs, lists and tables. Ideal for feeding reports, papers and contracts into RAG pipelines.

POST https://x402.freeq.one/tools/pdf_to_markdown
Try it (x402 payment flow)

⚡ Try with your wallet — live payment

curl -X POST https://x402.freeq.one/tools/pdf_to_markdown \ -H "Content-Type: application/json" \ -d '{"url":"https://x402.freeq.one/samples/report.pdf","max_length":100000}'

Without payment, the server returns 402 Payment Required with x402 challenge details. A paying agent signs a USDC transaction on Base and retries with the payment header.