Api Endpoint

Relaystation PDF From HTML

$0.003/call. Render HTML to PDF — sandboxed headless Chromium, print-quality output. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

Open interactive test console

Offering

Provider
api.relaystation.ai
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
General Utilities
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://api.relaystation.ai/v1/pdf/from-html
MIME type
Not provided
First seen
2026-10-16T01:51:20.002Z
Last seen
Tags
html-to-pdf, rendering, reports, pdf-tools, documents

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
10000 atomic units
Atomic price: 10000 · Network: eip155:8453 · Asset: 0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42 · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "0x5F7254f252eF9b9f92B6B4F2cF91205eD7A96C7A"
  },
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42",
    "amount": "10000",
    "payTo": "0x5F7254f252eF9b9f92B6B4F2cF91205eD7A96C7A"
  }
]

Observed health

Status
Healthy
Latest latency
26 ms
Average latency
50 ms
HTTP status
204
Last checked
Reachability
100% over 15 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "additionalProperties": false,
  "properties": {
    "body": {
      "properties": {
        "html": {
          "description": "The HTML to render; all assets inlined as data: URIs / inline <style>.",
          "minLength": 1,
          "type": "string"
        },
        "options": {
          "properties": {
            "displayHeaderFooter": {
              "description": "Render the header/footer templates (default false; auto-enabled when a template is supplied).",
              "type": "boolean"
            },
            "footerTemplate": {
              "description": "HTML print footer; same classes/sandbox as headerTemplate.",
              "maxLength": 50000,
              "type": "string"
            },
            "format": {
              "enum": [
                "A4",
                "Letter",
                "Legal",
                "A3",
                "A5",
                "Tabloid",
                "Ledger"
              ],
              "type": "string"
            },
            "headerTemplate": {
              "description": "HTML print header; use the date/title/url/pageNumber/totalPages classes. Rendered under the data:-only sandbox.",
              "maxLength": 50000,
              "type": "string"
            },
            "landscape": {
              "type": "boolean"
            },
            "margin": {
              "properties": {
                "bottom": {
                  "type": "string"
                },
                "left": {
                  "type": "string"
                },
                "right": {
                  "type": "string"
                },
                "top": {
                  "description": "CSS size, e.g. \"10mm\".",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "pageRanges": {
              "description": "Page subset to print, e.g. \"1-5, 8\" (default: all pages).",
              "maxLength": 255,
              "type": "string"
            },
            "printBackground": {
              "type": "boolean"
            },
            "scale": {
              "maximum": 2,
              "minimum": 0.1,
              "type": "number"
            },
            "tagged": {
              "description": "Emit a tagged (accessible) PDF (default true).",
              "type": "boolean"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    },
    "bodyType": {
      "enum": [
        "json",
        "form-data",
        "text"
      ],
      "type": "string"
    },
    "method": {
      "enum": [
        "POST",
        "PUT",
        "PATCH"
      ],
      "type": "string"
    },
    "type": {
      "const": "http",
      "type": "string"
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "type": "object"
}

Output schema

{
  "properties": {
    "example": {
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}