# QR Code Generator API

> QR Code Generator API is a paid API for AI agents from qr-code.api.klymax402.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Generates a QR code image from any text or URL input

## Facts

- Endpoint: GET https://qr-code.api.klymax402.com/api/qr
- 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-api-klymax402-com-3c9eb0e8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vWW4wUGXN_wiI76iSybyU

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-api-klymax402-com-3c9eb0e8
```

Example prompt: Can you generate a QR code for https://myshop.example.com, sized at 33 modules so it's a bit larger and easier to scan?

## When to prefer this

Use this endpoint when you need to quickly generate a QR code image from a URL or arbitrary text string without setting up a local library. Ideal for agents that need to produce a scannable QR image on demand as part of an automated workflow, e.g. embedding QR codes in emails, PDFs, or webpages. The per-call micropayment model makes it cost-effective for low-volume or on-demand use.

## Known failure modes

- Missing 'data' parameter — returns error indicating required field not provided
- Invalid or excessively long data string that exceeds QR code capacity — encoding failure
- Size value outside valid QR module range — may return default or error
- Payment not processed (x402 payment required) — 402 status returned before image is generated
- Network timeout or server unavailability — connection error

## How this service works

Generate a QR code image from text or URL

## Output

Returns a QR code image (binary image data) encoding the provided text or URL, rendered at the specified module size. The image can be displayed, saved, or embedded directly.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "string",
   "description": "The text or URL to encode in the QR code"
  },
  "size": {
   "type": "number",
   "description": "QR code size in modules (default: 21 for version 1)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/qr-code-api-klymax402-com-3c9eb0e8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from qr-code.api.klymax402.com](https://www.zero.xyz/host/qr-code.api.klymax402.com/llms.txt)
