API Documentation

Generate QR codes as PNG or SVG via a simple REST API. Custom colors, sizes, and formats.

Authentication

Include your API key in the X-Api-Key header.

X-Api-Key: sk_live_your_api_key

Endpoint

POST https://qr.kolni.dev/api/generate

Request Body

FieldTypeRequiredDescription
textstringYesText/URL to encode

Examples

curl
JavaScript
Python
curl -X POST https://qr.kolni.dev/api/generate \
  -H "X-Api-Key: sk_live_your_key" \
  -d '{"text":"https://example.com"}'

Response

Returns QR code image (PNG or SVG).

HeaderValue
Cache-Controlpublic, max-age=86400
X-RateLimit-RemainingRequests remaining this minute

Pricing

Free
500 req/mo
$9/mo
5,000 req/mo
$29/mo
50,000 req/mo