utilpeek: make a QR code image (SVG or PNG)
make_qr_codeRead-onlyIdempotent
utilpeek: make a QR code image. Input: data, optional format, scale, error and border. Returns svg (text) or data_base64 (PNG) plus version, modules, width_px, height_px and bytes. Data too long for a QR code at the chosen level is a 422 (not charged). Encoded locally, nothing is fetched; typically under 0.1 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Text or URL to encode (1-2000 characters, at most 2953 UTF-8 bytes). | |
| error | No | Error correction level (default M). | M |
| scale | No | Pixels per module (1-20, default 8). | |
| border | No | Quiet zone in modules (0-10, default 4). | |
| format | No | svg (text) or png (base64). | svg |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | No | ||
| bytes | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| scale | No | ||
| border | No | ||
| format | No | ||
| modules | No | ||
| version | No | ||
| width_px | No | ||
| height_px | No | ||
| data_base64 | No | ||
| content_type | No |