# QR Code Generator API (x402)

> QR Code Generator API (x402) is a paid API for AI agents from x402-qr-api.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Generates a QR code image from a given input (such as a URL or text string) via a paid GET endpoint using the x402 payment protocol.

## Facts

- Endpoint: GET https://x402-qr-api.vercel.app/api/qrcode?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/qr-code-generator-api-x402-c9cd0de7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DVI_WGZh_Gvuqg_Q9bECH

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-generator-api-x402-c9cd0de7
```

Example prompt: Can you generate a QR code for https://myshop.com/checkout so I can print it on my product packaging?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use QR code generation via the x402 micropayment protocol at $0.01 USDC per call — ideal for agents operating in Web3 or x402-enabled environments where standard free-tier generators are unavailable or unsuitable.

## Known failure modes

- Missing or empty input parameter returns an error or blank image
- Malformed URL passed as input may produce an unscanneable QR code
- Payment not fulfilled via x402 protocol results in a 402 Payment Required response
- Service downtime on Vercel deployment returns 500 or 503
- Overly long input string may exceed QR code data capacity and fail encoding

## How this service works

Generated by create next app

## Output

Returns a QR code image (likely PNG or SVG) encoding the provided URL or text string, ready to be embedded, displayed, or printed.

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/qr-code-generator-api-x402-c9cd0de7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-qr-api.vercel.app](https://www.zero.xyz/host/x402-qr-api.vercel.app/llms.txt)
