R

Relaystation From Office · PDF From Office

by Relaystation From Office

POSTBase

$0.01

per call · USD Coin on Base

$0.005/call. Convert Word, Excel, or PowerPoint to PDF via LibreOffice — layout preserved. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

Endpoint

POST https://api.relaystation.ai/v1/pdf/from-office

9

Calls / 30d

1

Unique payers / 30d

Sep 10

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api.relaystation.ai/v1/pdf/from-office", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "file": {},
    "filename": "string",
    "options": {
      "landscape": true,
      "losslessImageCompression": true,
      "maxImageResolution": 75,
      "pageRanges": "string",
      "quality": 1,
      "reduceImageResolution": true
    }
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://api.relaystation.ai/v1/pdf/from-office" \
  -H "Content-Type: application/json" \
  -d '{"file":{},"filename":"string","options":{"landscape":true,"losslessImageCompression":true,"maxImageResolution":75,"pageRanges":"string","quality":1,"reduceImageResolution":true}}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "ok": true
}

Payment details

Pay to0x5f7254f252ef9b9f92b6b4f2cf91205ed7a96c7a
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Media & Generation and the homepage with a featured placement.

Get featured →

More from Relaystation From Office & similar services