# AI Rook QR Code Generator

> AI Rook QR Code Generator is a paid API for AI agents from agents.ai-rook.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Generates a QR code image as a base64-encoded PNG from a given input (e.g. URL or text), returned as a data URI.

## Facts

- Endpoint: GET https://agents.ai-rook.com/api/qr-generate
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ai-rook-qr-code-generator-7cb7386e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Apb9x2sJALnacinqzAg_8

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 ai-rook-qr-code-generator-7cb7386e
```

Example prompt: Can you generate a 300px QR code image for the URL https://myshop.example.com and give me the base64 PNG so I can embed it on my landing page?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-use QR code generator with no signup, returning a ready-to-embed base64 PNG. Particularly useful for AI agents operating in crypto-native or x402 payment environments where no API key management is desired and calls are billed at $0.002 USDC per generation.

## Known failure modes

- Missing or empty input text/URL returns an error
- Unsupported size values may return a validation error
- Payment failure (insufficient USDC balance) results in HTTP 402 before any QR is generated
- Malformed request parameters return a 400-level error
- Network timeouts may occur if the Base mainnet payment confirmation is slow

## How this service works

Generate a QR code from any text or URL. Returns base64-encoded PNG.

## Output

Returns a JSON object containing the QR code image as a base64-encoded PNG data URI (e.g. data:image/png;base64,...), the size in pixels, and the format ('png'). The image can be directly embedded in HTML img tags or saved to disk.

## 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
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "size": 300,
  "image": "data:image/png;base64,...",
  "format": "png"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ai-rook-qr-code-generator-7cb7386e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.ai-rook.com](https://www.zero.xyz/host/agents.ai-rook.com/llms.txt)
