QR Code Generator
Encodes text or a URL as a QR code and returns it as a base64 PNG, ready to embed or save. Size and error-correction level are adjustable.
receipt_long
Why 1 credit?
Pure CPU image generation, a few milliseconds, with no outbound call.
Any HTTP client works. Replace the key with one from your dashboard.
bash
curl -X POST https://toolkitbackend-j69m.onrender.com/api/v1/tools/qr-generate \
-H "Authorization: Bearer tb_live_<your_api_key>" \
-H "Content-Type: application/json" \
-d '{
"text": "https://example.com",
"size": 300,
"errorCorrection": "M"
}'Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
text | string | required | - | Text or URL to encode. |
size | integer | optional | 300 | Image edge length in pixels. Defaults to 300. |
errorCorrection | string | optional | M | Error-correction level. Higher survives more damage but encodes less data. Defaults to M. One of: L, M, Q, H |
Output
| Field | Type | Description |
|---|---|---|
imageBase64 | string | PNG image encoded as base64, without a data URI prefix. |
mimeType | string | Always image/png. |
size | integer | Edge length of the produced image. |
Try it
Sends a real POST /api/v1/tools/qr-generate from your browser and charges 1 credit to your account.
Sign in to run this endpoint. New accounts start with free credits.