# RelayStation Barcode Generator

> RelayStation Barcode Generator is a paid API for AI agents from api.relaystation.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-16).

Generates a print-ready 1D barcode image (PNG) from a value using a specified symbology such as Code128, EAN, or UPC, with configurable height and scale.

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/barcode
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-barcode-generator-34aa5eb7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NZuundcrIlnQ6ygGnjqkR

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 relaystation-barcode-generator-34aa5eb7 -d '<json body>'
```

Example prompt: Generate a print-ready Code128 barcode PNG for the value '1234567890' with a height of 80 pixels and scale of 2.

## When to prefer this

Choose this endpoint when you need a lightweight, on-demand 1D barcode PNG generated via a simple API call, especially in agentic or automated workflows where paying per-call is acceptable and no self-hosted barcode library is available. Ideal for retail, logistics, publishing, and inventory use cases requiring Code128, EAN, or UPC symbologies with configurable dimensions.

## Known failure modes

- Invalid or unsupported symbology returns an error
- Value incompatible with chosen symbology (e.g. non-numeric string for EAN/UPC) causes validation failure
- Payment failure or insufficient USDC balance blocks the call
- Malformed request body returns 400 Bad Request
- Very long or empty input value may be rejected

## How this service works

$0.0002/call. Generate a print-ready 1D barcode (Code128, EAN, UPC & more) as PNG — set symbology, height, scale. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

A PNG image file of the generated 1D barcode, rendered at the specified height and scale, ready to embed in print materials, labels, or digital documents. The barcode encodes the provided value using the chosen symbology (e.g. Code128, EAN-13, UPC-A).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {
      "data": {
       "type": "string",
       "minLength": 1,
       "description": "The data to encode (per-symbology charset/length/checksum rules apply)."
      },
      "scale": {
       "type": "integer",
       "maximum": 10,
       "minimum": 1
      },
      "format": {
       "enum": [
        "png",
        "svg"
       ],
       "type": "string"
      },
      "height": {
       "type": "integer",
       "maximum": 200,
       "minimum": 1
      },
      "symbology": {
       "enum": [
        "ean5",
        "ean2",
        "ean13",
        "ean8",
        "upca",
        "upce",
        "isbn",
        "ismn",
        "issn",
        "mands",
        "code128",
        "gs1-128",
        "ean14",
        "sscc18",
        "code39",
        "code39ext",
        "code32",
        "pzn",
        "code93",
        "code93ext",
        "interleaved2of5",
        "itf14",
        "identcode",
        "leitcode",
        "databaromni",
        "databarstacked",
        "databarstackedomni",
        "databartruncated",
        "databarlimited",
        "databarexpanded",
        "databarexpandedstacked",
        "gs1northamericancoupon",
        "pharmacode",
        "pharmacode2",
        "code2of5",
        "industrial2of5",
        "iata2of5",
        "matrix2of5",
        "coop2of5",
        "datalogic2of5",
        "code11",
        "bc412",
        "rationalizedCodabar",
        "onecode",
        "postnet",
        "planet",
        "royalmail",
        "auspost",
        "kix",
        "japanpost",
        "msi",
        "plessey",
        "telepen",
        "telepennumeric",
        "posicode",
        "codablockf",
        "code16k",
        "code49",
        "channelcode",
        "flattermarken",
        "raw",
        "daft",
        "symbol",
        "pdf417",
        "pdf417compact",
        "micropdf417",
        "datamatrix",
        "datamatrixrectangular",
        "datamatrixrectangularextension",
        "qrcode",
        "swissqrcode",
        "microqrcode",
        "maxicode",
        "azteccode",
        "azteccodecompact",
        "aztecrune",
        "codeone",
        "hanxin",
        "dotcode",
        "ultracode"
… (truncated)
```

## More

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