# fittings QR Code Generator

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

Generates a QR code for any text or URL, returned as SVG or PNG with configurable error correction, scale, quiet zone, and dark/light colors.

## Facts

- Endpoint: POST https://fittings.sh/v1/qr/generate
- Price: $0.00321/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fittings-qr-code-generator-50e161d9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4VOuOl3Mclgwtk4ZycC4j

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 fittings-qr-code-generator-50e161d9 -d '<json body>'
```

Example prompt: Generate a QR code for https://mystore.com as a PNG, with H error correction, scale 10, a 3-module quiet zone, dark modules in #1a1a2e and a white background.

## When to prefer this

Choose this endpoint when you need a fast, highly configurable QR code rendered as SVG or PNG — especially when custom branding colors, precise module scale, or specific error-correction levels matter. It is ideal for agents that need to embed QR codes in documents, marketing assets, or event materials without relying on a client-side library.

## Known failure modes

- Content exceeds 271 UTF-8 bytes — returns an error indicating the payload is too large
- Invalid hex color format — may return a validation error
- Scale or border value out of allowed range (scale 1–16, border 0–8) — returns a validation error
- Invalid format value (not 'svg' or 'png') — returns a validation error
- Invalid errorCorrection value (not L/M/Q/H) — returns a validation error
- Empty content field — returns a validation error

## How this service works

Generates a QR code for arbitrary text or a URL as SVG or PNG, with a chosen error-correction level, module scale, quiet zone and colors.

## Output

Returns a QR code image file — either an SVG vector or a PNG raster — encoding the provided text or URL. The image reflects the chosen error-correction level (L/M/Q/H), pixels-per-module scale (1–16), quiet-zone border width (0–8 modules), and custom dark/light hex colors.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "dark": {
   "type": "string",
   "description": "Hex color for dark modules, default #000000"
  },
  "light": {
   "type": "string",
   "description": "Hex color for light modules, default #ffffff"
  },
  "scale": {
   "type": "number",
   "description": "Pixels per module, 1-16, default 8"
  },
  "border": {
   "type": "number",
   "description": "Quiet-zone modules, 0-8, default 4"
  },
  "format": {
   "type": "string",
   "description": "svg or png. Default svg."
  },
  "content": {
   "type": "string",
   "description": "Text or URL, up to 271 bytes of UTF-8"
  },
  "errorCorrection": {
   "type": "string",
   "description": "L, M, Q or H. Default M."
  }
 }
}
```

## More

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