Skip to content
Fourohtwo

PDF to Markdown

x402.freeq.one/tools/pdf_to_markdown

PDF to Markdown: 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. Pay per call in USDC on Base via x402 — POST https://x402.freeq.one/tools/pdf_to_markdown.

BaseUnchecked
POSThttps://x402.freeq.one/tools/pdf_to_markdown

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://x402.freeq.one/tools/pdf_to_markdown", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"url":"https://x402.freeq.one/samples/report.pdf","file_b64":"file_b64","max_length":100000}),
});
console.log(await res.json());

Example input

{
  "url": "https://x402.freeq.one/samples/report.pdf",
  "file_b64": "file_b64",
  "max_length": 100000
}

More from x402-gateway