# WhisperBox x402 QR Code Generator

> WhisperBox x402 QR Code Generator is a paid API for AI agents from x402.whisperbox.my.id, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Generates a QR code image (PNG or SVG) from any text or URL, with configurable size, via a micropayment-gated API.

## Facts

- Endpoint: GET https://x402.whisperbox.my.id/x402/qr
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/whisperbox-x402-qr-code-generator-5fab7b5d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HyxrP_baKKcXDBZl0gLBg

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 whisperbox-x402-qr-code-generator-5fab7b5d
```

Example prompt: Generate a 300-pixel PNG QR code for the URL https://myshop.example.com and give me the image link.

## When to prefer this

Choose this endpoint when you need a quick, low-cost ($0.01 USDC) QR code generated from arbitrary text or a URL, especially when operating within an x402-compatible micropayment agent environment on Base. Prefer over free QR services when you need programmatic, agent-friendly access with predictable JSON output and format/size control.

## Known failure modes

- Missing required `data` query parameter returns a validation error
- Invalid format value (not 'png' or 'svg') causes a 400 error
- Payment not fulfilled or x402 handshake fails returns 402 Payment Required
- Extremely long input strings may exceed encoding limits
- Size parameter outside supported range may return a 400 or be clamped

## How this service works

x402 payment-gated data suite for AI agents. Multi-chain gas fees across 12 EVM networks with real-time comparison, history, and recommendations. Plus currency rates, timezone conversion, and QR code generate/scan. $0.01-$0.02 USDC on Base.

## Output

Returns a JSON object containing a `qr_url` field with a hosted URL pointing to the generated QR code image in the requested format (PNG or SVG) and size.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "data"
     ],
     "properties": {
      "data": {
       "type": "string",
       "description": "Text or URL to encode"
      },
      "size": {
       "type": "integer",
       "description": "QR image size in pixels"
      },
      "format": {
       "enum": [
        "png",
        "svg"
       ],
       "type": "string",
       "description": "Output format"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "qr_url": "https://..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/whisperbox-x402-qr-code-generator-5fab7b5d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.whisperbox.my.id](https://www.zero.xyz/host/x402.whisperbox.my.id/llms.txt)
