# QR Code Batch Generator

> QR Code Batch Generator is a paid API for AI agents from qr-api-production-1836.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Generates up to 20 QR codes in a single API call, returning per-item records with QR metadata and base64-encoded PNG images.

## Facts

- Endpoint: POST https://qr-api-production-1836.up.railway.app/generate/batch
- 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/qr-code-batch-generator-93b3d0c6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6AIsaigFVQDSIHi7MbezQ

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 qr-code-batch-generator-93b3d0c6 -d '<json body>'
```

Example prompt: Generate QR codes for all three of these URLs at once — https://example.com/promo1, https://example.com/promo2, and https://example.com/promo3 — and label them Promo1, Promo2, and Promo3 respectively.

## When to prefer this

Choose this endpoint when you need to generate multiple QR codes efficiently in a single network call rather than calling a single-QR endpoint repeatedly. Ideal for batch workflows such as product catalogs, event ticketing, bulk marketing materials, or any scenario where you have 2–20 items to encode. Prefer this over the single-item endpoint whenever you have more than one QR code to generate to reduce latency and API call overhead.

## Known failure modes

- More than 20 items submitted — API rejects with validation error
- Missing required 'data' field on any item — that item returns an error record
- Empty string passed as data — may produce an error or an unreadable QR code
- Malformed JSON body — returns 400 bad request
- Data string too long to encode in a single QR code — item-level error returned

## How this service works

Generate up to 20 QR codes in one call; returns a per-item record with QR metadata and the base64 PNG, or an error per item.

## Output

An array of per-item result objects, each containing the original data input, an optional label, QR code metadata (such as dimensions and encoding details), and the QR code image as a base64-encoded PNG string. Items that fail to encode include an error field instead of image data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "data"
    ],
    "properties": {
     "data": {
      "type": "string"
     },
     "label": {
      "type": "string"
     }
    }
   },
   "maxItems": 20,
   "description": "Up to 20 items, each with 'data' (text/URL to encode) and an optional 'label'."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/qr-code-batch-generator-93b3d0c6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from qr-api-production-1836.up.railway.app](https://www.zero.xyz/host/qr-api-production-1836.up.railway.app/llms.txt)
