Skip to content
Fourohtwo

api.gaents.com/v1/jobs/doc-to-markdown

Convert a document to Markdown (MarkItDown) Converts one document (PDF with a text layer, DOCX, PPTX, XLSX, XLS, HTML, CSV, JSON, XML, EPUB, TXT; sent as base64) to Markdown with Microsoft MarkItDown, keeping headings, lists and tables.

BaseUnchecked
POSThttps://api.gaents.com/v1/jobs/doc-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://api.gaents.com/v1/jobs/doc-to-markdown", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"file_b64":"PGgxPkV4YW1wbGU8L2gxPjxwPkhlbGxvIGZyb20gZ2FlbnRzLjwvcD4=","filename":"example.html"}),
});
console.log(await res.json());

Example input

{
  "file_b64": "PGgxPkV4YW1wbGU8L2gxPjxwPkhlbGxvIGZyb20gZ2FlbnRzLjwvcD4=",
  "filename": "example.html"
}

More from gaents