Docs/Image Utils/GET /v1/qr-generate

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

ParameterTypeRequiredDescription
inputstringYesText to encode (max 200 chars)
sizeintegerNoModule size (2-10)
formatstringNosvg 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())