Make a QR code image for text, a URL, UPI payment link, Wi-Fi login…

Generates a QR code image for any text or link, with custom size, colours, margin and error correction.

Request

GEThttps://qr-code-generator.p.apihiver.com/v1/generate?data=https%3A%2F%2Fapihiver.com
*
String. What the QR code should contain.
Number. Width/height in pixels (PNG) (64–2000, default 300).
String. png or svg (default png).
String. Foreground colour as hex, e.g. 000000 (default 000000).
String. Background colour as hex, e.g. ffffff (default ffffff).
String. L (7%), M (15%), Q (25%) or H (30%) damage tolerance (default M).
Number. Quiet-zone border in modules (0–20, default 4).
Language
Client
1curl --request GET \
2  --url 'https://qr-code-generator.p.apihiver.com/v1/generate?data=https%3A%2F%2Fapihiver.com&size=%7Bsize%7D&format=%7Bformat%7D&color=%7Bcolor%7D&background=%7Bbackground%7D&error_correction=%7Berror_correction%7D&margin=%7Bmargin%7D' \
3  --header 'Accept: application/json' \
4  --header 'X-API-Key: YOUR_API_KEY'

Make a QR code image for text, a URL, UPI payment link, Wi-Fi login…: QR Code Generator & Reader API reference

Generates a QR code image for any text or link, with custom size, colours, margin and error correction. This endpoint is part of the QR Code Generator & Reader API: Create QR codes for links, text, UPI payments, Wi-Fi logins and contact cards (PNG/SVG, custom colours) and read QR codes from images.

Example response (200, image/png)

The QR code image (`image/svg+xml` when `format=svg`).

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "data: Field required"
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.