Convert one PDF or Word .docx file (up to 10 MB) to Markdown
174-138-26-48.sslip.io/v1/document-to-markdown
Convert one PDF or Word .docx file (up to 10 MB) to Markdown. Send JSON {data: base64, filename?} or multipart/form-data with a file field, or the raw bytes with Content-Type application/pdf. Text-layer PDFs only (no OCR), up to 300 pages. Optional format=markdown|text|json. Failed conversions are not charged.
POST
https://174-138-26-48.sslip.io/v1/document-to-markdownUptimeNot 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://174-138-26-48.sslip.io/v1/document-to-markdown", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"data":"JVBERi0xLjQK...(base64 of the PDF or DOCX file)","filename":"report.pdf","format":"markdown"}),
});
console.log(await res.json());Example input
{
"data": "JVBERi0xLjQK...(base64 of the PDF or DOCX file)",
"filename": "report.pdf",
"format": "markdown"
}More from HTML Pack
- 174-138-26-48.sslip.io/v1/html-to-markdownConvert one caller-supplied HTML document to Markdown. The HTML is sent in the JSON body and is not fetched from the network.0.002
- 174-138-26-48.sslip.io/v1/url-to-markdownFetch one public web page and return its main content as clean Markdown (Readability-style extraction strips navigation, ads, cookie banners and footers). http/https only, private and metadata addresses refused, 5 MB / 15 s / 5 redirects. Optional format=markdown|text|json and extract=article|full. Fetch or conversion failures are not charged.0.002
