# QR Code Generator (qr.openverbs.com)

> QR Code Generator (qr.openverbs.com) is a paid API for AI agents from qr.openverbs.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-14).

Encodes text, URLs, vCards, Wi-Fi configs, or any string as a QR code, returning an SVG string or PNG data URL.

## Facts

- Endpoint: POST https://qr.openverbs.com/v1/qr
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/qr-code-generator-qr-openverbs-com-c34c55ce
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PwKL3Zrsn9seex-dl_f4j

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-qr-openverbs-com-c34c55ce -d '<json body>'
```

Example prompt: Can you generate a QR code for https://myshop.example.com in PNG format at 512px with high error correction?

## When to prefer this

Choose this endpoint when you need to programmatically generate a QR code from arbitrary text or structured strings (URLs, vCards, Wi-Fi configs) and want either SVG or PNG output with control over size, margin, and error-correction level. Prefer it over client-side libraries when generating QR codes server-side or inside an agentic workflow that needs a hosted, pay-per-call API.

## Known failure modes

- Text exceeds 2000 characters — validation error returned
- Size outside 64–2000px range — request rejected
- Invalid error correction level value — schema validation failure
- Empty or missing text field — required field error
- Unsupported format value — enum validation error
- Payment not included or insufficient — HTTP 402 response

## How this service works

Render text (URL, vCard, Wi-Fi config, …) as a QR code — SVG string or PNG data URL.

## Output

Returns a QR code as either a complete SVG markup string or a base64 PNG data URL, encoding the provided text content. The image dimensions, error-correction level, and quiet-zone margin reflect the requested parameters.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "ecc": {
       "enum": [
        "L",
        "M",
        "Q",
        "H"
       ],
       "type": "string",
       "description": "Error-correction level. Defaults to M."
      },
      "size": {
       "type": "integer",
       "maximum": 2000,
       "minimum": 64,
       "description": "Image width in px. Defaults to 256."
      },
      "text": {
       "type": "string",
       "maxLength": 2000,
       "minLength": 1,
       "description": "Content to encode."
      },
      "format": {
       "enum": [
        "svg",
        "png"
       ],
       "type": "string",
       "description": "Output format. Defaults to svg."
      },
      "margin": {
       "type": "integer",
       "maximum": 20,
       "minimum": 0,
       "description": "Quiet-zone modules. Defaults to 4."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

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