Api Endpoint

Publishing Calc

Full paperback cover width and height with bleed from trim size and page count, in inches, mm and pixels.

Open interactive test console

Offering

Provider
publishing-calc.x402tookit.com
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://publishing-calc.x402tookit.com/cover-size
MIME type
application/json
First seen
2026-11-05T17:26:24.043Z
Last seen
Tags
Publishing, cover, bleed, trim-size

Payment pricing

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

Payment option 1
0.02 USDC
Atomic price: 20000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.02 USDC
Atomic price: 20000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Payment option 3
0.02 USDC
Atomic price: 20000 · Network: eip155:137 · Asset: USDC · Scheme: exact
Payment option 4
0.02 USDC
Atomic price: 20000 · Network: eip155:42161 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "20000",
    "payTo": "0xb531320805C5BED1D46AEaDcF4F008FDF172DBDa"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "20000",
    "payTo": "DUPiupXtuox38dcGoXUKer5mAydCzmaHjrbQ66qeEm8s"
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "20000",
    "payTo": "0xb531320805C5BED1D46AEaDcF4F008FDF172DBDa"
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "20000",
    "payTo": "0xb531320805C5BED1D46AEaDcF4F008FDF172DBDa"
  }
]

Observed health

Status
Healthy
Latest latency
182 ms
Average latency
212 ms
HTTP status
402
Last checked
Reachability
100% over 8 checks

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

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "trimWidth": {
          "type": "number",
          "description": "Trim width of one page (inches by default)"
        },
        "trimHeight": {
          "type": "number",
          "description": "Trim height of one page"
        },
        "pages": {
          "type": "integer",
          "description": "Total printed page count"
        },
        "paper": {
          "type": "string",
          "description": "white (default), cream or color; sets spine thickness"
        },
        "pageThicknessIn": {
          "type": "number",
          "description": "Override: inches of spine per page"
        },
        "bleed": {
          "type": "number",
          "description": "Bleed on each outer edge in the same unit (default 0.125 in or 3.175 mm)"
        },
        "unit": {
          "type": "string",
          "description": "in (default) or mm for trim and bleed"
        },
        "dpi": {
          "type": "number",
          "description": "Pixels per inch for the pixel size (default 300)"
        }
      },
      "required": [
        "trimWidth",
        "trimHeight",
        "pages"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "verdict": {
          "type": [
            "null",
            "string"
          ]
        },
        "summary": {
          "type": [
            "null",
            "string"
          ]
        },
        "reasons": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "inputUnit": {
          "type": [
            "null",
            "string"
          ]
        },
        "trimWidthIn": {
          "type": [
            "null",
            "number"
          ]
        },
        "trimHeightIn": {
          "type": [
            "null",
            "number"
          ]
        },
        "bleedIn": {
          "type": [
            "null",
            "number"
          ]
        },
        "spineWidthIn": {
          "type": [
            "null",
            "number"
          ]
        },
        "coverWidthIn": {
          "type": [
            "null",
            "number"
          ]
        },
        "coverHeightIn": {
          "type": [
            "null",
            "number"
          ]
        },
        "coverWidthMm": {
          "type": [
            "null",
            "number"
          ]
        },
        "coverHeightMm": {
          "type": [
            "null",
            "number"
          ]
        },
        "dpiUsed": {
          "type": [
            "null",
            "number"
          ]
        },
        "coverWidthPx": {
          "type": [
            "null",
            "number"
          ]
        },
        "coverHeightPx": {
          "type": [
            "null",
            "number"
          ]
        },
        "spineXStartIn": {
          "type": [
            "null",
            "number"
          ]
        },
        "frontXStartIn": {
          "type": [
            "null",
            "number"
          ]
        },
        "degraded": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "notChecked": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "source": {
          "type": [
            "null",
            "string"
          ]
        },
        "asOf": {
          "type": [
            "null",
            "string"
          ]
        },
        "disclaimer": {
          "type": [
            "null",
            "string"
          ]
        }
      }
    }
  },
  "required": [
    "type"
  ]
}