Skip to content
Fourohtwo

convert.guru/api/x402/v1/convert-file

Convert files asynchronously for AI agents (DOCX to PDF, PDF to DOCX, HEIC to JPG, JPG to PNG, MP4 to MP3). Common formats include PDF, DOCX, XLSX, CSV, PPTX, ODT, RTF, EPUB, JPG, JPEG, PNG, WEBP, HEIC, AVIF, SVG, TIFF, GIF, TXT, HTML, MP3, WAV, FLAC, M4A, OGG, MP4, MOV, MKV, AVI, and WEBM.

BasePolygonArbitrumSolanaAnswering
POSThttps://convert.guru/api/x402/v1/convert-file

Uptime100% of 3 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://convert.guru/api/x402/v1/convert-file", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"created_at":"2026-05-21T14:30:00Z","file":"<binary file>","filename":"document.pdf","size_bytes":184221,"target_format":"docx"}),
});
console.log(await res.json());

Example input

{
  "created_at": "2026-05-21T14:30:00Z",
  "file": "<binary file>",
  "filename": "document.pdf",
  "size_bytes": 184221,
  "target_format": "docx"
}