QR Code Examples
Explore various types of QR codes that can be generated with our API. Each example includes a sample image and the corresponding API call to create it.
Standard QR Codes
These are standard QR codes generated without any background images.
Basic QR Code

curl -X POST \
-F "text=https://example.com" \
http://localhost:3000/api/generate-qr
Colorized QR Code

curl -X POST \
-F "text=https://example.com" \
-F "colorized=true" \
http://localhost:3000/api/generate-qr
WiFi QR Code

curl -X POST \
-F "text=WIFI:S:YourWiFiNetwork;T:WPA;P:YourSecurePassword;;" \
http://localhost:3000/api/generate-qr
vCard QR Code

curl -X POST \
-F "text=BEGIN:VCARD
VERSION:3.0
N:Knapp;Colin;;;
FN:Colin Knapp
ORG:Colin Knapp
TITLE:Developer
TEL;TYPE=CELL:+1234567890
EMAIL:contact@colinknapp.com
URL:https://colinknapp.com
END:VCARD" \
http://localhost:3000/api/generate-qr
Custom WiFi Background QR Codes
These QR codes use a WiFi-themed background image to create visually appealing QR codes.
Basic QR with WiFi Background

curl -X POST \
-F "image=@wifi.webp" \
-F "text=https://example.com" \
http://localhost:3000/api/generate-qr
Colorized QR with WiFi Background

curl -X POST \
-F "image=@wifi.webp" \
-F "text=https://example.com" \
-F "colorized=true" \
http://localhost:3000/api/generate-qr
WiFi QR with WiFi Background

curl -X POST \
-F "image=@wifi.webp" \
-F "text=WIFI:S:YourWiFiNetwork;T:WPA;P:YourSecurePassword;;" \
http://localhost:3000/api/generate-qr
vCard QR with WiFi Background

curl -X POST \
-F "image=@wifi.webp" \
-F "text=BEGIN:VCARD
VERSION:3.0
N:Knapp;Colin;;;
FN:Colin Knapp
ORG:Colin Knapp
TITLE:Developer
TEL;TYPE=CELL:+1234567890
EMAIL:contact@colinknapp.com
URL:https://colinknapp.com
END:VCARD" \
http://localhost:3000/api/generate-qr
Animated QR Codes with Transparent Cat
These QR codes use a transparent cat GIF as the background, creating animated QR codes that loop.
Basic Animated QR

curl -X POST \
-F "image=@cat.gif" \
-F "text=https://example.com" \
-F "qr_type=animated" \
http://localhost:3000/api/generate-qr
Colorized Animated QR

curl -X POST \
-F "image=@cat.gif" \
-F "text=https://example.com" \
-F "colorized=true" \
-F "qr_type=animated" \
http://localhost:3000/api/generate-qr
WiFi Animated QR

curl -X POST \
-F "image=@cat.gif" \
-F "text=WIFI:S:YourWiFiNetwork;T:WPA;P:YourSecurePassword;;" \
-F "qr_type=animated" \
http://localhost:3000/api/generate-qr
API Documentation
The QR Code Generator provides a simple API for generating QR codes with various customization options.
Endpoint
POST /api/generate-qr
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
text | string | Yes | The text to encode in the QR code |
image | file | No | Background image for the QR code (jpg, png, gif) |
colorized | boolean | No | Whether to create a colorized QR code (default: false) |
version | integer | No | QR code version (1-40, default: 1) |
error_correction | string | No | Error correction level (L, M, Q, H, default: H) |
contrast | float | No | Contrast adjustment (0.1-5.0, default: 1.0) |
brightness | float | No | Brightness adjustment (0.1-5.0, default: 1.0) |
border | integer | No | Border size in modules (0-20, default: 4) |
qr_type | string | No | QR code type (normal, animated, default: normal) |