QR Studio
Free · No API Key Required

QR Code REST API

Generate QR codes as PNG or SVG with a simple GET request. Custom colors, sizes, and error correction. No rate limits for reasonable usage.

Endpoint

GEThttps://qr-studio.top/api/generate

Returns a QR code image directly. Embed it in an <img> tag or download it programmatically.

Parameters

ParameterTypeRequiredDescription
datastringrequiredThe content to encode (URL, text, WiFi string, etc.). Max 4096 characters.
sizenumberoptionalImage width/height in pixels. Range: 64–2048. Default: 512.
formatstringoptionalOutput format: "png" or "svg". Default: "png".
errorCorrectionstringoptionalError correction level: "L" (7%), "M" (15%), "Q" (25%), "H" (30%). Default: "M".
darkColorstringoptionalHex color for dark modules. Default: "#000000".
lightColorstringoptionalHex color for light modules / background. Default: "#FFFFFF".
marginnumberoptionalQuiet zone margin in modules. Range: 0–20. Default: 4.

Examples

Basic URL QR Code

Simplest call — encode a URL as a 512px PNG.

GET https://qr-studio.top/api/generate?data=https://qr-studio.top
Custom Size & SVG Format

Generate a 256px SVG QR code with text content.

GET https://qr-studio.top/api/generate?data=Hello+World&size=256&format=svg
Colored QR Code

Blue QR code with light blue background.

GET https://qr-studio.top/api/generate?data=https://example.com&darkColor=%231E40AF&lightColor=%23F0F9FF&size=400
High Error Correction

Maximum error correction with minimal margin.

GET https://qr-studio.top/api/generate?data=https://example.com&errorCorrection=H&margin=2
WiFi QR Code

Encode a WiFi network as a QR code.

GET https://qr-studio.top/api/generate?data=WIFI:T:WPA;S:MyNetwork;P:MyPassword;;&size=600

Live Preview

This image is loaded directly from the API:

QR code generated by QR Studio API<img src="https://qr-studio.top/api/generate?data=https://qr-studio.top&size=200" />

Integration Examples

HTML
<img src="https://qr-studio.top/api/generate?data=https://example.com&size=300" alt="QR Code" />
cURL
curl -o qrcode.png "https://qr-studio.top/api/generate?data=https://example.com&size=512"
JavaScript / fetch
const response = await fetch(
  "https://qr-studio.top/api/generate?data=https://example.com&format=svg"
);
const svg = await response.text();
Python
import requests

response = requests.get(
    "https://qr-studio.top/api/generate",
    params={"data": "https://example.com", "size": 512}
)
with open("qrcode.png", "wb") as f:
    f.write(response.content)

Response

Success (200)

Returns the QR code image directly with Content-Type: image/png or Content-Type: image/svg+xml. Cached for 24 hours.

Error (400)

{ "error": "Missing required parameter: data" }

Rate Limits & Terms

  • No API key required.
  • Free for personal and commercial use.
  • Please keep usage reasonable — if you need high-volume generation, consider self-hosting.
  • Responses are cached for 24 hours via CDN-friendly headers.

Need Marketplace Billing?

If you want monthly plans, marketplace discovery, and subscriber billing, QR Studio also exposes a dedicated RapidAPI-ready route with its own OpenAPI spec and recommended pricing tiers.

View the RapidAPI publishing docs