generate_label_sheet — Generate Printable Barcode / QR Label Sheet

Batch-encodes up to 200 QR or 1D barcodes into print-ready @page HTML/SVG label sheets formatted for Avery 5160 (30-up US Letter), Zebra 4x6 shipping thermal, or Zebra 2x1 retail/bin tags.

Why buy vs. DIY: Replaces brittle PDF/headless-Chrome pipelines with zero-margin print-accurate @page CSS + inline crisp vector SVGs for up to 200 warehouse or retail labels in a single call.

Pricing: $0.002 base (up to $0.008 max ($0.002 base + $0.002 per 50 rendered labels, capped at $0.008 for up to 200 labels), x402 variable settlement) · REST: POST https://barcode-pass.apikeg.com/v1/generate-label-sheet · MCP: https://barcode-pass.apikeg.com/mcp

Input Parameters

FieldTypeRequired / DefaultDescription & Constraints
template string Default: "avery_5160" Print stock layout: 'avery_5160' (3x10 US Letter 8.5x11in, 30/page), 'zebra_4x6' (4x6in shipping/pallet thermal), or 'zebra_2x1' (2x1in retail/shelf thermal). (enum: avery_5160 | zebra_4x6 | zebra_2x1)
items array Required 1 to 200 barcode/QR label definitions to render onto print-ready sheets. (minItems: 1, maxItems: 200)
startOffset integer Default: 0 Blank cells to skip on page 1 for partially used Avery 5160 sheets. (min: 0, max: 29)
includeBarcodeText boolean Optional Render human-readable text inside each barcode SVG (defaults to true for 1D, false for QR).
includePng boolean Default: false Also include lossless base64 PNGs alongside each label's inline SVG.
foreground string Optional Foreground bar/module hex color (#RGB or #RRGGBB, default '#000000'). (maxLength: 16)
background string Optional Background hex color (#RGB or #RRGGBB, default '#FFFFFF'). (maxLength: 16)

REST Example (curl)

curl -X POST "https://barcode-pass.apikeg.com/v1/generate-label-sheet" \
  -H "Content-Type: application/json" \
  -d '{
  "template": "avery_5160",
  "startOffset": 0,
  "items": [
    {
      "format": "ean13",
      "value": "4006381333931",
      "title": "Neon Highlighter Yellow",
      "subtitle": "$3.49",
      "sku": "HL-YLW-01",
      "quantity": 15
    },
    {
      "format": "upca",
      "value": "036000291452",
      "title": "Cotton Tissue Pack",
      "subtitle": "$5.99",
      "sku": "CT-PK-12",
      "quantity": 15
    }
  ]
}'

MCP tools/call Payload

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "generate_label_sheet",
    "arguments": {
      "template": "avery_5160",
      "startOffset": 0,
      "items": [
        {
          "format": "ean13",
          "value": "4006381333931",
          "title": "Neon Highlighter Yellow",
          "subtitle": "$3.49",
          "sku": "HL-YLW-01",
          "quantity": 15
        },
        {
          "format": "upca",
          "value": "036000291452",
          "title": "Cotton Tissue Pack",
          "subtitle": "$5.99",
          "sku": "CT-PK-12",
          "quantity": 15
        }
      ]
    }
  }
}