# toolvend.dev QR Code Generator

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

Generates a crisp SVG QR code from a text or URL payload, with configurable size and error-correction level

## Facts

- Endpoint: GET https://toolvend.dev/qr
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toolvend-dev-qr-code-generator-39175e18
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0QXOJJ95--ORpPSLYVu0-

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 toolvend-dev-qr-code-generator-39175e18
```

Example prompt: Generate a QR code SVG for the URL https://myshop.example.com — make it 512px and use high error correction (H) so it's still readable if part of it gets damaged.

## When to prefer this

Choose this endpoint when you need a lightweight, vector-format (SVG) QR code generated on demand without installing a library or rendering pipeline. It is ideal for agents embedding QR codes in HTML, PDFs, or print layouts. Prefer it over raster-image QR generators when scalability and crispness matter, and over client-side libraries when the generation must happen server-side or in a headless/API context. The configurable error-correction level makes it suitable for use cases where the QR code may be partially obscured (e.g. printed on merchandise).

## Known failure modes

- Payload exceeds 2,048 UTF-8 bytes — request rejected with an error
- Payload is too large for the selected error-correction level (Q or H reduce capacity) — may return an error or truncation warning
- Size parameter outside 64–1024px range — validation error
- Empty or missing `data` query parameter — returns 400-level error
- Non-UTF-8 byte sequences in payload — encoding error

## How this service works

QR code generator. Returns a crisp SVG for text/URL payloads up to 2,048 UTF-8 bytes that fit the selected error-correction level.

## Output

An SVG image (vector format) containing the rendered QR code, sized to the requested pixel dimensions, encoding the provided payload at the specified error-correction level. The SVG can be embedded directly in HTML, saved as a file, or passed to a PDF/print pipeline.

## 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": [
      "data"
     ],
     "properties": {
      "ecl": {
       "enum": [
        "L",
        "M",
        "Q",
        "H"
       ],
       "type": "string",
       "description": "Error correction, default M"
      },
      "data": {
       "type": "string",
       "maxLength": 2048,
       "minLength": 1,
       "description": "Payload to encode (max 2,048 UTF-8 bytes; QR capacity is lower at Q/H error correction)"
      },
      "size": {
       "type": "number",
       "maximum": 1024,
       "minimum": 64,
       "description": "SVG width/height in px, default 256"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

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