Document To Markdown API — Pay Per Call with USDC on Base

🔧

**Convert any document to Markdown with automatic format detection — pdf, docx, pptx, xlsx, csv, epub, html, text. One endpoint for all of them.** Part of the x402 Gateway — $0.01 per call, settled in USDC on Base. No accounts, no API keys: agents pay per request via the x402 protocol. ## How payment works Send a **POST** to `https://x402.freeq.one/tools/document_to_markdown` without a payment header and the API replies `402 Payment Required` with an x402 challenge (payTo address, USDC amount, Base network). A paying agent signs the USDC payment and retries with the `PAYMENT-SIGNATURE` header (base64 JSON payment payload) — settlement is verified on-chain in seconds and the API response returns with a `PAYMENT-RESPONSE` receipt header. ## Example call ```bash 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"}' ``` Browse every pay-per-call API on the [all APIs page](https://x402.freeq.one/apis.html), or inspect the machine-readable [service card](https://x402.freeq.one/.well-known/x402.json) and [OpenAPI spec](https://x402.freeq.one/openapi.json).