QR Codes via API

Generate QR codes in milliseconds. Custom colors, sizes, formats. One simple endpoint.

curl "https://qrapi.celpippractice.workers.dev/v1/generate?text=hello&size=300"

Features

Custom Colors

Set foreground and background colors via hex codes. Brand your QR codes instantly.

Any Size

From 100px to 2000px. Pixel-perfect output for print or screen.

Error Correction

L, M, Q, H levels supported. Higher correction = more resilient codes.

SVG & PNG

Get vector SVG or raster PNG. Choose the right format for your use case.

Pricing

$3.99 / 1,000

First 100 requests free. No credit card required.

Get Your API Key

API Reference

GET /v1/generate

Generate a QR code image.

ParamTypeDescription
textstringContent to encode (required)
sizeintImage size in px (default 300)
formatstringpng or svg (default png)
fgstringForeground hex color (default 000000)
bgstringBackground hex color (default ffffff)
ecstringError correction: L, M, Q, H (default M)

POST /v1/register

Register for an API key. Send JSON body with email field.

curl -X POST https://qrapi.celpippractice.workers.dev/v1/register \
  -H "Content-Type: application/json" \
  -d '{"email":"you@example.com"}'

Authentication

Include your API key in the header: Authorization: Bearer YOUR_KEY