# Agent Dev Tools – QR Code Generator (x402)

> Agent Dev Tools – QR Code Generator (x402) is a paid API for AI agents from agent-dev-tools.frcompanycheck.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-16).

Generates a QR code SVG (or JSON with data URI) from any text or URL, paid per call in USDC via x402

## Facts

- Endpoint: GET https://agent-dev-tools.frcompanycheck.workers.dev/v1/qr?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-dev-tools-qr-code-generator-x402-26534e52
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rStq1EpGKQ2dyWvOJtlJx

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 agent-dev-tools-qr-code-generator-x402-26534e52
```

Example prompt: Generate a QR code for https://myshop.example.com — medium error correction, about 300px, and give me the result as JSON with the SVG and data URI included.

## When to prefer this

Choose this endpoint when you need a fast, no-account, no-API-key QR code generated on demand and billed micropayment-style via x402 USDC. Ideal for AI agents that need embeddable SVG or data-URI QR codes without setting up OAuth or managing API keys. Prefer it over heavier QR services when you want pure computation with deterministic output, zero stored state, and errors that are never charged.

## Known failure modes

- Missing required 'text' query parameter returns an error (not charged)
- 'size' out of range (64–1024) returns a validation error (not charged)
- Invalid 'ecc' value returns an error (not charged)
- Text too long for the requested QR version may return an encoding error
- Network timeout on the Cloudflare Worker edge (rare)

## How this service works

Fast deterministic developer utilities for AI agents, paid per call in USDC via x402 (no account, no API key): UUID v4/v7, secure random numbers, dice, MD5/SHA/HMAC hashing, base64/hex/URL/HTML encoding, JSON validation/formatting, QR code SVG, password generation, JWT decoding and text statistics. Pure computation, nothing stored. Errors are never charged.

## Output

Returns a JSON object containing the rendered QR code as an inline SVG string, a base64 data URI for direct embedding, the number of modules (grid cells), the actual rendered pixel size, and the QR version number used.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "ecc": {
       "type": "string",
       "description": "L | M (default) | Q | H"
      },
      "size": {
       "type": "integer",
       "description": "Approx. size in px, 64-1024 (default 256)"
      },
      "text": {
       "type": "string",
       "example": "https://example.com",
       "description": "Content to encode"
      },
      "format": {
       "type": "string",
       "example": "json",
       "description": "json (default) | svg"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "svg": "<svg xmlns=…>",
  "modules": 29,
  "size_px": 259,
  "version": 3,
  "data_uri": "data:image/svg+xml;base64,…"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-dev-tools-qr-code-generator-x402-26534e52/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-dev-tools.frcompanycheck.workers.dev](https://www.zero.xyz/host/agent-dev-tools.frcompanycheck.workers.dev/llms.txt)
