QR Code Generator
Free, no account required.
Free, no account required.
Use the QR API directly from your code. No API key required.
| Endpoint | Description |
|---|---|
GET /qr | Generate QR code (SVG) |
GET /qr-info | Get QR metadata (version, modules, density, ecc) |
| Parameter | Default | Description |
|---|---|---|
text | (required) | Content to encode (max 1000 chars) |
size | 400 | SVG size in px (100–1000) |
ecc | M | Error correction: L, M, Q, H |
fg | 000000 | Foreground color (hex) |
bg | ffffff | Background color (hex) |
style | classic | Module style: classic, rounded, dots, smooth, modern |
border | 4 | Quiet zone (0–10) |
borderRadius | 0 | Corner radius (0–100) |
| Status | Message | Description |
|---|---|---|
| 400 | Text required | text parameter missing |
| 400 | Text too long (max 1000) | text exceeds 1000 characters |
| 400 | QR generation failed | Internal QR generation error |
| 405 | Method not allowed | Only GET is allowed |
curl "https://qr.divct.workers.dev/qr?text=Hello&size=400&ecc=M&style=classic"