# Barcode Generator API

> Barcode Generator API is a paid API for AI agents from barcode-generator.api.klymax402.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Generates a barcode image from text or numeric data in formats like Code128, Code39, EAN-13, or UPC-A

## Facts

- Endpoint: GET https://barcode-generator.api.klymax402.com/api/barcode
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/barcode-generator-api-klymax402-com-b4264fc0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TQ3ncSsczr3C_Sk38RSCm

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability barcode-generator-api-klymax402-com-b4264fc0
```

Example prompt: Generate a Code128 barcode for the text '7350053850019' with a height of 100 pixels and bar width of 2 pixels.

## When to prefer this

Use this endpoint when you need to programmatically generate a barcode image from a string or number, especially for inventory, retail, logistics, or labeling workflows. It supports multiple standard barcode formats (Code128, Code39, EAN-13, UPC-A) with configurable dimensions at a very low per-call cost.

## Known failure modes

- Invalid or unsupported barcode format specified — returns error indicating accepted formats
- Data string incompatible with chosen format (e.g. non-numeric data for EAN-13) — returns validation error
- Missing required 'data' parameter — returns bad request error
- Negative or zero dimensions provided — returns parameter validation error
- Payment not fulfilled via x402 protocol — returns 402 Payment Required

## How this service works

Generate a barcode from text or number

## Output

Returns a barcode image (likely PNG or SVG) visually encoding the provided data string in the specified format and dimensions, ready for printing or embedding.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "string",
   "description": "Data to encode in the barcode"
  },
  "width": {
   "type": "number",
   "description": "Bar width in pixels (default: 2)"
  },
  "format": {
   "type": "string",
   "description": "Barcode format: code128, code39, ean13, upca (default: code128)"
  },
  "height": {
   "type": "number",
   "description": "Barcode height in pixels (default: 100)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/barcode-generator-api-klymax402-com-b4264fc0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from barcode-generator.api.klymax402.com](https://www.zero.xyz/host/barcode-generator.api.klymax402.com/llms.txt)
