Skip to content
Fourohtwo

1gateway.dev/v1/render/pdf

Use when an agent must hand over a document as a PDF (report, invoice, summary, receipt). Input: GET ?url= for a public page, or POST JSON {html | markdown | url, format A4|Letter, landscape, margin_mm}. Markdown gets a clean stylesheet with Korean fonts. Output: JSON fileBase64 (decode to the PDF), bytes, page settings. Headless Chrome on Cloudflare. Bad input or daily cap refused before payment.

BaseMonadPolygonArbitrumSolanaAnswering
GEThttps://1gateway.dev/v1/render/pdf

Uptime100% of 1 check 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://1gateway.dev/v1/render/pdf?format=A4&html=&landscape=0&margin_mm=12&markdown=&url=https%3A%2F%2Fexample.com%2F");
console.log(await res.json());

Example input

{
  "format": "A4",
  "html": "",
  "landscape": "0",
  "margin_mm": 12,
  "markdown": "",
  "url": "https://example.com/"
}