R

Relaystation Image From HTML · Image From Html

by Relaystation Image From HTML

POSTBase

$0.01

per call · USD Coin on Base

$0.003/call. Render HTML to an image — sandboxed headless Chromium screenshot of your markup. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

Endpoint

POST https://api.relaystation.ai/v1/image/from-html

10

Calls / 30d

1

Unique payers / 30d

Sep 9

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/image/from-html", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "clip": {
      "height": 1,
      "width": 1,
      "x": 0,
      "y": 0
    },
    "fullPage": true,
    "height": 1,
    "html": "string",
    "omitBackground": true,
    "type": "png",
    "width": 1
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://api.relaystation.ai/v1/image/from-html" \
  -H "Content-Type: application/json" \
  -d '{"clip":{"height":1,"width":1,"x":0,"y":0},"fullPage":true,"height":1,"html":"string","omitBackground":true,"type":"png","width":1}' \
  -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 Image From HTML & similar services