# QR Code Batch Generator

> QR Code Batch Generator is a paid API for AI agents from qr.payapi.market, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-30).

Generate up to 20 QR code images in a single batch call, returning base64-encoded PNG images with metadata for each item.

## Facts

- Endpoint: POST https://qr.payapi.market/generate/batch?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/qr-code-batch-generator-67c1e5aa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_c2yAbL8pxk-qRFbNdXiEF

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-67c1e5aa -d '<json body>'
```

Example prompt: Can you generate QR codes for these three URLs at once — https://myshop.com/product-a (label it 'Product A'), https://myshop.com/product-b (label it 'Product B'), and https://myshop.com/product-c (label it 'Product C')? I need the PNG images back as base64.

## When to prefer this

Use this endpoint when you need to generate multiple QR codes in a single API call (up to 20 at a time), reducing latency and cost compared to making individual requests. Ideal for bulk workflows like printing campaigns, event ticketing, product catalogs, or any scenario requiring a batch of QR images delivered as base64 PNGs with structured metadata.

## Known failure modes

- Exceeding the 20-item batch limit returns a validation error
- Missing required 'data' field on any item causes rejection
- Payment failure (insufficient USDC balance) blocks the request
- Invalid or empty data strings may produce malformed QR codes
- Very long data strings may increase QR version and image size unexpectedly

## How this service works

Generate and decode QR codes with x402 payments and an MCP server.

## Output

Returns a JSON object with a count of generated QR codes and a results array. Each result includes the original data string, its index in the batch, the optional label, PNG image dimensions (width/height in pixels), border size, QR version, number of modules, box size, background and fill colors, file size in bytes, the full base64-encoded PNG image, and the error correction level used.

## 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'."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 2,
  "results": [
   {
    "data": "https://payapi.market",
    "index": 0,
    "label": "home",
    "width": 330,
    "border": 4,
    "format": "png",
    "height": 330,
    "modules": 25,
    "version": 2,
    "box_size": 10,
    "back_color": "#ffffff",
    "fill_color": "#000000",
    "size_bytes": 512,
    "image_base64": "iVBORw0KGgoAAAANSUhEUgAAASIAAAEiCAYAAABdvt+2AAAABmJLR0QA/wD/AP+gvaeTAAAF...",
    "error_correction": "M"
   },
   {
    "data": "https://payapi.market/docs",
    "index": 1,
    "label": "docs",
    "width": 330,
    "border": 4,
    "format": "png",
    "height": 330,
    "modules": 25,
    "version": 2,
    "box_size": 10,
    "back_color": "#ffffff",
    "fill_color": "#000000",
    "size_bytes": 548,
    "image_base64": "iVBORw0KGgoAAAANSUhEUgAAASIAAAEiCAYAAABdvt+2AAAABmJLR0QA/wD/AP+gvaeTAAAF...",
    "error_correction": "M"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/qr-code-batch-generator-67c1e5aa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from qr.payapi.market](https://www.zero.xyz/host/qr.payapi.market/llms.txt)
