Sign In
Products
ZPL ViewerBarcode GeneratorImage → ZPLZPL cheat sheetLabel DesignerTemplate Gallery
Developers
API QuickstartAPI ReferenceMCP ServerBulk GenerationWebhooksSDKs & ExamplesLimitsDirectPrint agent NewGitHub ActionVS Code extensionOn-Premise
Solutions
Logistics & ShippingE-CommerceERP & WMSManufacturingRetailHealthcare & LaboratoryAll solutions
Tools
ZPL Diagnostics HubZPL DebuggerSize & DPI AnalyzerDPI ConverterBarcode fit calculatorShipping Label AnalyzerFont InspectorOrientation DebuggerCalibration AssistantPrinter Compatibility CheckerBarcode Readability CheckerPrinter Language DetectorThermal Printer Test PackZPL ToolsEPL ToolsTSPL ToolsCPCL ToolsPrinter Language ConverterAll ToolsGuidesPricing
Language
EnglishTürkçeDeutsch
Home›Thermal label API: ZPL, EPL, TSPL and CPCL

Thermal label API: ZPL, EPL, TSPL and CPCL

Labelixa renders and checks thermal label code in four printer languages over one REST API: ZPL in depth, and the core command sets of EPL, TSPL and CPCL. Each language has a render endpoint that returns a PNG and a check endpoint that returns findings as JSON. No printer or driver is involved.

Languages and endpoints

The table shows what is live today. ZPL is the primary language. For EPL, TSPL and CPCL the engine implements the commands listed in each command reference, and the coverage column says so rather than implying parity.

LanguageRender (PNG)Check (JSON)CoverageCommand reference
ZPL/v1/printers/{dpmm}dpmm/labels/{width}x{height}/{index}//v1/diagnosticsPrimaryZPL
EPL/v1/epl/render/v1/epl/diagnosticsCore command setEPL
TSPL/v1/tspl/render/v1/tspl/diagnosticsCore command setTSPL
CPCL/v1/cpcl/render/v1/cpcl/diagnosticsCore command setCPCL

Not sure which language a file is?

POST the code to /v1/language-detect. It answers with the language and a high, medium or low confidence tier from documented rules. It is not a language model, and it does not store the code.

The request

A TSPL label renders the same way as ZPL: the raw label code is the request body.

curl -X POST "https://labelixa.com/v1/tspl/render" \
  --data-binary $'SIZE 50 mm,30 mm\nGAP 2 mm,0 mm\nCLS\nTEXT 20,20,"3",0,1,1,"Labelixa"\nBARCODE 20,70,"128",60,1,0,2,2,"1234567890"\nPRINT 1' \
  -o label.png -D -

What you get back

You get a PNG of the label. X-Warnings-Count says how many commands the engine skipped or could not draw fully, and X-Label-Count how many labels the code produces; ?index= picks one. The check endpoint returns the same findings as JSON.

Quotas

Today, ZPL rendering counts against the plan quota below. Rendering and checking EPL, TSPL and CPCL, the ZPL check endpoint and language detection are limited by requests per second only and do not use the monthly label quota.

PlanRequests per secondLabels per month
free35,000
starter525,000
pro10100,000
business20500,000
enterprise20by agreement

From an AI assistant (MCP)

The same engines are exposed as MCP tools, so an assistant can render and check label code it has just written:

A preview is not a print guarantee

A preview is the engine's reading of the printer manual, not the printer. The EPL, TSPL and CPCL previews follow the manuals and have been checked on only a few physical printers; built-in bitmap fonts are approximated, and commands outside the implemented set come back as warnings instead of being drawn. ZPL coverage is broader, but Zebra's proprietary fonts are substituted too. Print one test label on the target printer before you rely on a layout in production.

Where to go next

Open the browser preview → Read the API reference → Connect an AI assistant (MCP) →

Related pages

Frequently asked questions

Which thermal printer languages does the Labelixa API support?

ZPL, EPL (EPL2), TSPL (TSPL2) and CPCL. ZPL has the broadest coverage; EPL, TSPL and CPCL cover the core commands listed in each command reference. DPL, IPL and ESC/POS are not supported.

Can the API convert EPL or TSPL into ZPL?

No. Each language is rendered and checked as it is; the API does not translate one printer language into another. For ZPL there is a separate DPI conversion between 203, 300 and 600 dpi.

Do I need a printer or a driver?

No. Rendering happens on the server: you send text and get an image back. To print, send the same code to the printer the way you already do.