QR Code API

Generate custom QR codes via URL. Colors, sizes, logos. No signup.

How It Works

Step 1
Set Parameters
Choose data, size, colors, and style via URL params
Step 2
Call the API
Simple GET request — no SDK needed
Step 3
Get Your QR
Receive PNG, SVG, or base64 instantly

Playground

Click Generate to preview

API Documentation

Base URL
https://qr-api-smoky.vercel.app
Authentication
X-API-Key: your_key (header) or ?key=your_key (query) Get your free key below
GET /api/generate

Generate a custom QR code image from the provided data and options.

Query Parameters

ParameterTypeRequiredDescription
data string yes Content to encode (URL or text)
size number no Image size in pixels. Default: 300, max 1000
fg string no Foreground hex color. Default: 000000
bg string no Background hex color. Default: ffffff
format string no Output format: png or svg. Default: png
margin number no Quiet zone margin (0–10). Default: 2
style string no QR style: square, dots, or rounded (SVG only). Default: square
logo string no Logo URL to embed in center (PNG only)

Response

Content-Type
image/png or image/svg+xml
Body
Binary image data

Error Responses

// 400 — Bad Request
{ "error": "Missing required parameter: data" }

// 401 — Unauthorized
{ "error": "Invalid API key" }

// 429 — Rate Limited
{ "error": "Daily limit reached. Upgrade your plan." }

Get API Key

Get a free API key for 6 requests/day. No credit card required.

Usage

  • Add header: X-API-Key: your_key
  • Or query param: ?key=your_key

Limits

  • Playground (no key): 3 req/day
  • Free tier (with key): 6 req/day
  • Paid plans: coming soon

Pricing

Start free. Pay only when you need more.

Free
$0
  • 6 requests/day
  • Max 500px
  • Square style only
  • PNG format
Starter
🚀 Launch Price
$19$9/mo
  • 200 requests/day
  • All styles + SVG
  • Logo overlay
  • Max 1,000px
Business
🚀 Launch Price
$149$79/mo
  • 5,000 requests/day
  • All formats + PDF
  • Batch (50/req)
  • Priority support
Pay as You Go

No monthly commitment. Pay only for what you use. All features included.