# Arch Tools Barcode Generator

> Arch Tools Barcode Generator is a paid API for AI agents from archtools.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Generates a barcode image from text or numeric input in configurable formats such as CODE128

## Facts

- Endpoint: POST https://archtools.dev/v1/tools/barcode-generate
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/arch-tools-barcode-generator-bc6c9153
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ryqROBQ1sF-EkGWKRKHq9

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 arch-tools-barcode-generator-bc6c9153 -d '<json body>'
```

Example prompt: Generate a CODE128 barcode for the text 'SKU-98432-XZ' with a bar height of 120 pixels and bar width of 2.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call barcode image generated server-side without managing a barcode library yourself. Ideal for AI agents automating label creation, inventory workflows, or shipping integrations where generating a one-off barcode on demand is preferable to embedding a client-side library.

## Known failure modes

- Empty or missing 'text' field returns a validation error
- Unsupported barcode format string causes a format error
- Extremely long input strings may exceed barcode capacity for certain formats
- Invalid integer values for width or height may return a parameter error
- Payment failure or insufficient USDC balance returns a 402 error

## How this service works

Generate Code128, EAN-13, UPC-A and Code39 barcodes as crisp SVGs in one POST. Ready for inventory, shipping and retail agents. Pay per call with USDC (x402) or credits - archtools.dev

## Output

A JSON response containing the generated barcode, likely as a base64-encoded image or image URL, representing the encoded text in the specified barcode format with the requested dimensions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "string",
   "description": "Text or number to encode"
  },
  "type": {
   "enum": [
    "code128",
    "qr"
   ],
   "type": "string",
   "default": "code128",
   "description": "Barcode type"
  },
  "value": {
   "type": "string",
   "description": "Alias for data"
  },
  "width": {
   "type": "integer",
   "default": 250,
   "description": "Output width in pixels"
  },
  "height": {
   "type": "integer",
   "default": 100,
   "description": "Bar height in pixels"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/arch-tools-barcode-generator-bc6c9153/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from archtools.dev](https://www.zero.xyz/host/archtools.dev/llms.txt)
