# Coinslot QR Code Generator

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

Generates a QR code as a standalone SVG from input text, with configurable error correction level, margin, and dark/light colors.

## Facts

- Endpoint: POST https://coinslot.dev/api/qr
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coinslot-qr-code-generator-63af0e90
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FbYY_wnBf3zDsuiq4Sxac

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 coinslot-qr-code-generator-63af0e90 -d '<json body>'
```

Example prompt: Generate a QR code SVG for https://myshop.example.com — use high error correction level H, a margin of 2, dark color #1a1a2e, and light color #ffffff.

## When to prefer this

Choose this endpoint when you need a server-side, payment-gated QR code generated as a clean standalone SVG with full control over error correction level, colors, and margin — ideal when you want a vector format suitable for print or embedding without any client-side library dependencies.

## Known failure modes

- Text exceeds 2048 characters — request rejected
- Invalid hex color format for dark or light parameters — error returned
- ecLevel value not in ['L','M','Q','H'] — validation error
- margin value outside 0-8 range — validation error
- Empty or missing text field — error returned
- Payment not provided or insufficient — 402 response

## How this service works

Generate a QR code as standalone SVG. POST { text, ecLevel?: 'L'|'M'|'Q'|'H', margin?: 0-8, dark?, light? } (text max 2KB).

## Output

A standalone SVG document containing the rendered QR code. The SVG is self-contained and can be embedded in HTML, saved as a file, or printed. The QR code encodes the provided text with the specified error correction level, margin, and custom foreground/background colors.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "dark": {
   "type": "string",
   "description": "hex color"
  },
  "text": {
   "type": "string",
   "maxLength": 2048
  },
  "light": {
   "type": "string",
   "description": "hex color"
  },
  "margin": {
   "type": "integer",
   "default": 4,
   "maximum": 8,
   "minimum": 0
  },
  "ecLevel": {
   "enum": [
    "L",
    "M",
    "Q",
    "H"
   ],
   "type": "string",
   "default": "M"
  }
 }
}
```

## More

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