Skip to content
Fourohtwo

Convert office documents and images between formats

agent-tools-production-e6aa.up.railway.app/v1/convert

Convert office documents and images between formats. Documents (docx, doc, xlsx, xls, pptx, ppt, odt, rtf, html, txt, csv) to pdf, docx, odt, txt, xlsx or csv; images between png, jpg, webp and gif. Use when a user or system needs a file in a different format. Send {url} or {base64}, plus filename (with extension) and to. Returns the converted file. Errors: 400 unsupported pair, 422 conversion fai

BaseAnswering
POSThttps://agent-tools-production-e6aa.up.railway.app/v1/convert

Uptime100% of 4 checks in 30 days

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

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent-tools-production-e6aa.up.railway.app/v1/convert", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"base64":"PGgxPkhlbGxvPC9oMT48cD5Db252ZXJ0ZWQgYnkgQWdlbnQgVG9vbHMgVUsuPC9wPg==","filename":"hello.html","to":"pdf"}),
});
console.log(await res.json());

Example input

{
  "base64": "PGgxPkhlbGxvPC9oMT48cD5Db252ZXJ0ZWQgYnkgQWdlbnQgVG9vbHMgVUsuPC9wPg==",
  "filename": "hello.html",
  "to": "pdf"
}

More from Agent Tools UKProvider status