GET /v1/qr-generateGenerate QR code
Image Utils lf-image-utils
Turns text or a link into a square code you can scan with a phone. Generates a QR code from input text. Returns SVG or raw matrix array. Supports configurable size and output format.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | Yes | Text to encode (max 200 chars) |
size | integer | No | Module size (2-10) |
format | string | No | svg or matrix |
Response Schema
success (boolean): Operation success
format (string): Output format
text (string): Encoded text
svg (string): SVG markup (if format=svg)
matrix (array): QR matrix (if format=matrix)
cURL Example
curl 'https://lf-image-utils.laminarforge.dev/v1/qr-generate?input=https://example.com&format=svg' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-image-utils.laminarforge.dev/v1/qr-generate'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'input': 'https://example.com', 'format': 'svg'}
response = requests.get(url, headers=headers, params=params)
print(response.json())