# x402-gateway QR Code & Barcode Generator

> x402-gateway QR Code & Barcode Generator is a paid API for AI agents from x402.freeq.one, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Generates a QR code or barcode image (SVG or PNG) for a given data string and symbology, returning a base64-encoded image via a pay-per-call API.

## Facts

- Endpoint: POST https://x402.freeq.one/tools/qr_generator
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-qr-code-barcode-generator-99c08c51
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Tp7IsrWUnvJXVqTmmKH1q

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 x402-gateway-qr-code-barcode-generator-99c08c51 -d '<json body>'
```

Example prompt: Generate a QR code for 'https://myshop.com/promo' as a PNG image using the qrcode symbology.

## When to prefer this

Choose this endpoint when you need a programmatic, pay-per-call barcode or QR code generator that returns base64-encoded images directly usable in MCP agent workflows, supports a wide range of symbologies (QR, Code128, EAN, UPC, ISBN, GS1-128, ITF, ISSN, DataBar), and requires no setup or subscription — just micro-payments at $0.001 USDC per call.

## Known failure modes

- Invalid or unsupported symbology returns an error
- Data string incompatible with chosen symbology (e.g. non-numeric data for EAN-13) causes generation failure
- Invalid image format specification
- Payment failure or insufficient USDC balance prevents call
- Malformed request body returns HTTP 4xx error

## How this service works

x402-gateway tool: qr_generator — Generate a QR code or barcode as an image (SVG or PNG). Returns a base64-encoded image (MCP content type image). Symbologies: qrcode/qr, code128, code39, ean13, ean8, upca, upce, isbn10, isbn13, issn, itf, gs1-128, databar.

## Output

A base64-encoded image (PNG or SVG) of the requested QR code or barcode, returned as an MCP content type image that can be embedded directly in documents or rendered in a browser.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "string",
   "description": "Data to encode (URL or text for QR; numeric for EAN/UPC)"
  },
  "type": {
   "enum": [
    "svg",
    "png"
   ],
   "type": "string",
   "description": "Output image format (default svg)"
  },
  "format": {
   "enum": [
    "qrcode",
    "code128",
    "code39",
    "ean13",
    "ean8",
    "upca",
    "upce",
    "isbn10",
    "isbn13",
    "issn",
    "itf",
    "gs1-128",
    "databar"
   ],
   "type": "string",
   "description": "Barcode symbology; use qrcode (or qr) for QR codes"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-gateway-qr-code-barcode-generator-99c08c51/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.freeq.one](https://www.zero.xyz/host/x402.freeq.one/llms.txt)
