Generate QR Codes with an API

Published March 25, 2026 · 3 min read

QR codes are everywhere: payments, menus, tickets, business cards, WiFi sharing. If you need to generate them programmatically, a QR code API is the simplest approach.

Quick Start

curl -X POST https://api.16761.tech/qr \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "https://example.com", "size": 400}' \
  -o qrcode.png

SVG Output

{"text": "https://example.com", "format": "svg"}

SVG is perfect for print materials — scales to any size without pixelation.

Custom Colors

{
  "text": "https://example.com",
  "darkColor": "#1a1a2e",
  "lightColor": "#e8ecf4"
}

Use Cases

WiFi QR Code Example

{"text": "WIFI:T:WPA;S:MyNetwork;P:MyPassword;;"}

Free tier: 100 QR codes/day. No credit card needed.

Get Free API Key →

Or try the free online QR generator →