services / qr-code
utilityoperational · 13 ms
QR Code Generator
Generate a QR code for any text or URL. Returns image_base64 (base64 PNG — decode to get raw bytes). Params: text (required), size in px (64-1024, default 256), error_correction (L/M/Q/H, default M). H = highest redundancy, survives up to 30% damage.
Run free trial ↗3 free calls per day with the example input. Paid: $0.002 USDC, no limit.
Call it
Input
| Field | Type | Description |
|---|---|---|
| text * | string | The text or URL to encode in the QR code |
| size | integer = 256 | Output image size in pixels (width and height). Min: 64, Max: 1024. |
| error_correction | L | M | Q | H = "M" | Error correction level: L=7%, M=15%, Q=25%, H=30% data recovery. Higher = bigger QR code. |
Output
| Field | Type | Description |
|---|---|---|
| image_base64 | string | Base64-encoded PNG image of the QR code (decode to get raw bytes) |
| width | integer | Image width in pixels |
| height | integer | Image height in pixels |
| text | string | The text that was encoded |
| generated_at | string | ISO 8601 timestamp of generation |
Example response (data)
{
"image_base64": "iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAA...",
"width": 256,
"height": 256,
"text": "https://agentsvc.io",
"generated_at": "2026-04-07T12:00:00.000Z"
}