# agentsvc.io Barcode Generator

> agentsvc.io Barcode Generator is a paid API for AI agents from agentsvc.io, paid per call via x402, $0.0025/call, status unknown (last checked 2026-10-10).

Generates barcode images in multiple formats (QR, EAN, UPC, PDF417, etc.) from text/data, returning a base64-encoded PNG.

## Facts

- Endpoint: POST https://agentsvc.io/api/v1/proxy/barcode?utm_source=zero.xyz
- Price: $0.0025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentsvc-io-barcode-generator-81998200
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QpVKJd3FQ87wQL_9dwj-N

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 agentsvc-io-barcode-generator-81998200 -d '<json body>'
```

Example prompt: Generate an EAN-13 barcode for the number 4006381333931 at scale 4, with the text shown below the bars, and give me the PNG image.

## When to prefer this

Choose this endpoint when you need to programmatically generate a barcode image in any of 13 supported formats (including QR, EAN, UPC, Code 128, PDF417, DataMatrix, Aztec, GS1-128, ISBN) without needing an account or API key, paying only $0.002 USDC per call via x402 on Base. Ideal for AI agents that need on-demand barcode generation as part of a larger workflow such as label creation, inventory automation, or document generation.

## Known failure modes

- Invalid barcode type enum value returns an error
- Text data not compatible with chosen barcode format (e.g. non-numeric text for EAN-13) causes encoding failure
- Text exceeding 500 characters is rejected
- Scale value outside 1–8 range is rejected
- Payment of $0.002 USDC on Base not received results in 402 response

## How this service works

86 APIs for AI agents: web scraping and crawling to Markdown, AI summaries, data extraction and cited answers, screenshots and PDF, PDF, OCR and document conversion, news, paper and developer search and more, paid per call with USDC on Base, Solana, Polygon or Arbitrum via x402. No account, no API key, free sample on every service.

## Output

Returns a JSON object containing the barcode image as a base64-encoded PNG string, along with metadata including the barcode type, image width and height in pixels, and file size in bytes. The base64 image can be decoded and embedded directly into documents, labels, or web pages.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 500,
   "description": "Data to encode"
  },
  "type": {
   "enum": [
    "code128",
    "ean13",
    "ean8",
    "upca",
    "upce",
    "code39",
    "itf14",
    "gs1_128",
    "isbn",
    "datamatrix",
    "pdf417",
    "aztec",
    "qr"
   ],
   "type": "string",
   "default": "code128"
  },
  "scale": {
   "type": "integer",
   "default": 3,
   "maximum": 8,
   "minimum": 1
  },
  "include_text": {
   "type": "boolean",
   "default": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "text": "4006381333931",
   "type": "ean13",
   "width": 342,
   "format": "png",
   "height": 132,
   "size_bytes": 1840,
   "image_base64": "iVBORw0KGgoAAAANSUhEUgAAAM..."
  },
  "success": true
 }
}
```

## More

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