arrow_back All endpoints

QR Code Generator

POST/api/v1/tools/qr-generate1 credit per callqrbarcodegeneratorpng

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

FieldTypeRequiredDefaultDescription
textstringrequired- Text or URL to encode.
sizeintegeroptional300 Image edge length in pixels. Defaults to 300.
errorCorrectionstringoptionalM Error-correction level. Higher survives more damage but encodes less data. Defaults to M. One of: L, M, Q, H

Output

FieldTypeDescription
imageBase64stringPNG image encoded as base64, without a data URI prefix.
mimeTypestringAlways image/png.
sizeintegerEdge 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.