get_qr
QR code generator: GET ?data=<text|url> and receive a scannable QR as SVG plus PNG (base64) and a data: URI. Options: size (px, default 512), margin (quiet-zone modules, default 2), ecc (L|M|Q|H, default M), dark/light hex colors. Deterministic, no network, no tracking — encode URLs, wifi, vCards, or payment URIs up to 2,000 chars. ($0.01 per call, paid via x402)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ecc | No | Error correction: L, M (default), Q, or H — higher survives more damage but holds less data | |
| dark | No | Hex color of the modules (default #000000) | |
| data | Yes | Text or URL to encode (required, up to 2,000 chars) | |
| size | No | PNG width in px (64–2048, default 512) | |
| light | No | Hex background color (default #ffffff) | |
| margin | No | Quiet-zone width in modules (0–20, default 2) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ecc | No | ||
| svg | No | ||
| data | No | ||
| width | No | ||
| version | No | ||
| data_uri | No | ||
| png_base64 | No |