{
  "x402Version": 2,
  "id": 30074,
  "slug": "30074",
  "resource": "https://api.relaystation.ai/v1/pdf/from-html",
  "description": "$0.003/call. Render HTML to PDF — sandboxed headless Chromium, print-quality output. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny",
  "type": "http",
  "serviceName": "Relaystation PDF From HTML",
  "resourceType": "Research",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x5F7254f252eF9b9f92B6B4F2cF91205eD7A96C7A",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x5F7254f252eF9b9f92B6B4F2cF91205eD7A96C7A",
      "asset": "0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42",
      "amount": "10000",
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "html": "string",
            "options": {
              "displayHeaderFooter": true,
              "footerTemplate": "string",
              "format": "A4",
              "headerTemplate": "string",
              "landscape": true,
              "margin": {
                "bottom": "string",
                "left": "string",
                "right": "string",
                "top": "string"
              },
              "printBackground": true,
              "scale": 0.1
            }
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "ok": true
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "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": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "html-to-pdf",
    "rendering",
    "reports",
    "pdf-tools",
    "documents",
    "bazaar"
  ],
  "sourceHost": "api.relaystation.ai",
  "lastUpdated": "2026-10-12T21:42:13.997Z",
  "quality": {
    "calls30d": 7,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-12T21:42:13.83Z"
  },
  "metadata": {
    "serviceName": "Relaystation PDF From HTML",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "html": "string",
              "options": {
                "displayHeaderFooter": true,
                "footerTemplate": "string",
                "format": "A4",
                "headerTemplate": "string",
                "landscape": true,
                "margin": {
                  "bottom": "string",
                  "left": "string",
                  "right": "string",
                  "top": "string"
                },
                "printBackground": true,
                "scale": 0.1
              }
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "ok": true
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "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": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.relaystation.ai",
    "manifest_name": "api.relaystation.ai",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}