Api Endpoint

api.pdfzen.site

Render a PDF. Pass `template` (one of 45 starter slugs: invoice, receipt, contract, certificate, nda, letter, report, quote, purchase-order, lease-agreement, resume, lab-report, boarding-pass, menu, bank-statement, etc.) or `html` (raw Handlebars HTML). Returns application/pdf bytes. $0.006 USDC per render, no API key, no signup. Full catalog: GET /v1/starters (free). Agent docs: https://pdfzen.site/docs/agents/tools

Open interactive test console

Offering

Provider
api.pdfzen.site
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Creative
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://api.pdfzen.site/v402/render/pdf
MIME type
Not provided
First seen
2026-10-16T01:51:20.002Z
Last seen
Tags
None supplied

Payment pricing

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

Payment option 1
0.006 USDC
Atomic price: 6000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "6000",
    "payTo": "0x2e6d9b578Dc402D8A7650b48AD3EE4FACb7c0978"
  }
]

Observed health

Status
Healthy
Latest latency
1296 ms
Average latency
807 ms
HTTP status
204
Last checked
Reachability
100% over 14 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": {
        "data": {
          "description": "Variables for the template's Handlebars context. Shape depends on the chosen template — call GET /v1/starters/:slug to fetch the expected `sampleData` for any starter.",
          "type": "object"
        },
        "filename": {
          "description": "Optional. Sets Content-Disposition filename on the response — useful when the PDF is delivered to a browser via an HTTP intermediary.",
          "examples": [
            "invoice-INV-2026-001.pdf"
          ],
          "type": "string"
        },
        "html": {
          "description": "Raw Handlebars-flavoured HTML. Use only when no starter fits (one-off bespoke layouts). Prefer `template` for consistency. Either `template` or `html` is required.",
          "examples": [
            "<h1>Hello, {{name}}</h1><p>Total: {{total}}</p>"
          ],
          "type": "string"
        },
        "pageOptions": {
          "description": "PDF page setup: format (A3/A4/A5/Letter/Legal/Tabloid), landscape, margin, scale, displayHeaderFooter. Most starters ship sensible defaults.",
          "examples": [
            {
              "format": "A4"
            },
            {
              "format": "Letter",
              "landscape": true
            }
          ],
          "properties": {
            "format": {
              "enum": [
                "A3",
                "A4",
                "A5",
                "Letter",
                "Legal",
                "Tabloid"
              ],
              "type": "string"
            },
            "landscape": {
              "type": "boolean"
            },
            "margin": {
              "type": "object"
            }
          },
          "type": "object"
        },
        "store": {
          "description": "When true, persist the PDF and return X-Document-Id response header for later retrieval via /v1/documents/:id/download. Default false.",
          "type": "boolean"
        },
        "template": {
          "description": "Slug of a built-in starter template. 45 available; GET /v1/starters lists them all (no auth, no payment). Either `template` or `html` is required.",
          "examples": [
            "invoice",
            "receipt",
            "certificate",
            "contract",
            "nda",
            "letter",
            "report",
            "resume",
            "boarding-pass",
            "menu"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "bodyType": {
      "enum": [
        "json",
        "form-data",
        "text"
      ],
      "type": "string"
    },
    "method": {
      "enum": [
        "POST"
      ],
      "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"
}