# QR Code Generator

> QR Code Generator is a paid API for AI agents from skinwinking.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-31).

Generates a QR code (SVG and base64 GIF) from a text string with configurable error correction and cell size

## Facts

- Endpoint: GET https://skinwinking.com/api/v1/util/qr-code?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/qr-code-generator-1a2e503a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-o4eO05GaB7dJKWKo-QZ6

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-1a2e503a
```

Example prompt: Generate a QR code for the text 'https://myshop.com/checkout' using high error correction (H) and a cell size of 8.

## When to prefer this

Choose this endpoint when you need a quick, server-side QR code generation with dual output formats (SVG + GIF) in a single call, especially within an x402 micropayment workflow. It is ideal when you want a pay-per-use model at $0.001 per call without maintaining API keys or a subscription. Prefer it when you need both a scalable vector format (SVG) and a raster format (GIF) simultaneously.

## Known failure modes

- Text exceeds 2000 characters — request rejected
- Invalid error correction level (not L, M, Q, or H) — bad request error
- Cell size outside 1–20 range — validation error
- Missing required 'text' query parameter — error response
- Payment not fulfilled via x402 — 402 Payment Required response

## How this service works

50 pay-per-call tools for agents over x402 (USDC on Base, Polygon, Solana): crypto market data, token audits, indicators, swap routing, web extraction, DNS/WHOIS/email checks, FX, weather and AI text/image tools.

## Output

Returns a JSON object containing two representations of the QR code: an 'svg' field with an inline SVG string ready for web embedding, and an 'image' field with a base64-encoded GIF data URI suitable for use in HTML img tags or download.

## 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": [
      "text"
     ],
     "properties": {
      "ecc": {
       "type": "string",
       "default": "M",
       "description": "Error correction L, M, Q or H"
      },
      "text": {
       "type": "string",
       "description": "Content to encode (max 2000 characters)"
      },
      "cellSize": {
       "type": "integer",
       "default": 6,
       "maximum": 20,
       "minimum": 1
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "svg": "<svg ...>",
  "image": "data:image/gif;base64,..."
 }
}
```

## More

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