Shrink a PDF with Ghostscript (quality presets)
pdf-editor-production-7c4b.up.railway.app/x402/compress
Shrink a PDF with Ghostscript (quality presets). Multipart upload, field "file", max 50 MB. $0.01 up to 10 MB, $0.03 up to 50 MB. Files are deleted as soon as the response is sent.
POST
https://pdf-editor-production-7c4b.up.railway.app/x402/compressUptime0.0% of 2 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://pdf-editor-production-7c4b.up.railway.app/x402/compress", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"file":"<PDF file>"}),
});
console.log(await res.json());Example input
{
"file": "<PDF file>"
}