← Back to all APIs

Document To Markdown

$0.01

Convert any document to Markdown with automatic format detection. One endpoint for pdf, docx, pptx, xlsx, csv, epub, html and plain text — provide a URL or base64 bytes and the type is detected from the file contents. Spreadsheets return both a Markdown table and a JSON array of rows.

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

⚡ Try with your wallet — live payment

curl -X POST https://x402.freeq.one/tools/document_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.