# Quant Agent Shop QR Code Generator

> Quant Agent Shop QR Code Generator is a paid API for AI agents from quantagentshop.com, paid per call via x402, $0.0015/call, status unknown (last checked 2026-10-23).

Encodes text or a URL (up to 1,000 characters) into a QR code returned as PNG or SVG (base64 in JSON) with configurable scale, quiet zone, and error-correction level.

## Facts

- Endpoint: POST https://quantagentshop.com/v1/qr?utm_source=zero.xyz
- Price: $0.0015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quant-agent-shop-qr-code-generator-f58d4bba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0IJnp1KOCsbOtOYPW6xqM

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 quant-agent-shop-qr-code-generator-f58d4bba -d '<json body>'
```

Example prompt: Generate a QR code for https://myshop.com/checkout — PNG format, scale 10, quiet zone of 4, with H error correction.

## When to prefer this

Choose this endpoint when you need a plain, fast, machine-readable QR code from text or a URL with precise control over scale, quiet zone, format (PNG/SVG), and error-correction level, and when you do not need custom logos, colors, or branding overlaid on the code. Ideal for embedding QR codes programmatically into labels, PDFs, invoices, and web pages at sub-200 ms latency.

## Known failure modes

- Input text exceeds 1,000 characters — request rejected
- Invalid format value (not 'png' or 'svg') — validation error
- Scale or border out of allowed range — validation error
- Invalid error_correction value — validation error
- Network timeout — no charge applied
- Malformed JSON body — 400 error

## How this service works

QR code. Send text or a URL (up to 1,000 characters); returns a QR code as PNG or SVG, base64 in JSON, with its size, version and error-correction level, at the scale and quiet zone you choose. Use to put a link or payment request on a page, label or PDF. Plain codes only, no logos or colours. Typical response under 200 ms. Failed calls are not charged.

## Output

A JSON object containing the QR code image as a base64-encoded string (PNG or SVG), along with metadata including the QR version, image dimensions, and the error-correction level used. Typical response time is under 200 ms.

## 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",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "title": "Text",
       "maxLength": 1000,
       "minLength": 1,
       "description": "Text or URL to encode."
      },
      "scale": {
       "type": "integer",
       "title": "Scale",
       "default": 8,
       "maximum": 20,
       "minimum": 1,
       "description": "Pixels per module, 1 to 20."
      },
      "border": {
       "type": "integer",
       "title": "Border",
       "default": 4,
       "maximum": 10,
       "minimum": 0,
       "description": "Quiet zone in modules, 0 to 10 (4 is the standard)."
      },
      "format": {
       "enum": [
        "png",
        "svg"
       ],
       "type": "string",
       "title": "Format",
       "default": "png",
       "description": "png or svg."
      },
      "error_correction": {
       "enum": [
        "L",
        "M",
        "Q",
        "H"
       ],
       "type": "string",
       "title": "Error Correction",
       "default": "M",
       "description": "L, M, Q or H; the highest level that fits without a bigger code is used."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/quant-agent-shop-qr-code-generator-f58d4bba/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quantagentshop.com](https://www.zero.xyz/host/quantagentshop.com/llms.txt)
