Skip to content
Fourohtwo

api.delx.ai/api/v1/x402/render-document-pdf

Generate a PDF from HTML or Markdown (HTML-to-PDF and Markdown-to-PDF renderer) with optional inline CSS in A4 or Letter size for $0.005 USDC via x402 on Base or Solana. Ideal for agent-generated invoices, briefs, and reports; returns base64 PDF bytes, page count, and SHA-256 locally while blocking all external network fetches—no API key, no subscription.

BaseAnswering
POSThttps://api.delx.ai/api/v1/x402/render-document-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://api.delx.ai/api/v1/x402/render-document-pdf", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"markdown":"# Invoice","page_size":"Letter"}),
});
console.log(await res.json());

Example input

{
  "markdown": "# Invoice",
  "page_size": "Letter"
}