# QR Code Generator (x402-qr-api)

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

Converts a URL or text string into a QR code image via a GET request, charged at $0.002 USDC per call using x402 micropayment protocol

## Facts

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

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-x402-qr-api-d495947b
```

Example prompt: Can you generate a QR code for https://mystore.com/promo so I can put it on a flyer?

## When to prefer this

Choose this endpoint when you need a quick, cheap ($0.002 USDC) programmatic QR code generation via a simple GET request with no authentication beyond x402 micropayment. Ideal for agents operating in x402-enabled environments that need to generate one-off QR codes without managing API keys or OAuth flows.

## Known failure modes

- Missing or empty input parameter returns an error or blank response
- Malformed URL input may produce an unreadable QR code
- Payment failure via x402 (402 status) if USDC balance is insufficient
- Network timeout if Vercel cold-start latency is high
- Input string too long to encode in a QR code returns an error

## 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, ready for display or download. The response is the binary or base64-encoded image data representing the QR code.

## 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-x402-qr-api-d495947b/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)
