API Navigation

ZPL Conversion API

Generate label preview images from ZPL code using our simple REST API. Compatible with labelary.com API, just change the host to api.leepow.com.

API Compatibility

This API is fully compatible with labelary.com service. You can use existing code by simply changing the host from api.labelary.com to api.leepow.com.

Endpoint

POST https://api.leepow.com/printers

Request Body

{
  "ZPL": "string (required)",
  "OutputFormat": "string (JPG, PNG, PDF, PCL, EPL, PCX, GRF, FP, NV)",
  "dpi": "number (152, 203, 300, 600)",
  "width": "number (label width in inches)",
  "height": "number (label height in inches)"
}

ZPL: api.requestBody.ZPL

OutputFormat: api.requestBody.OutputFormat

dpi: Print density in DPI (dots per inch). Supported values: 152, 203, 300, 600

width: Label width in inches

height: Label height in inches

Code Examples

curl --location 'https://api.leepow.com/printers' \
--header 'Content-Type: application/json' \
--data '{
  "ZPL": "^XA^FO50,50^ADN,36,20^FDHello World^FS^XZ",
  "OutputFormat": "JPG",
  "dpi": 203,
  "width": 4,
  "height": 6
}'

Response

Returns a binary image file in the requested format (JPG, PNG, or PDF).