Guides / Create

QR code

POST /v1/qr  · 

Text or URL → QR code as PNG or SVG, with size, colours and error-correction level.

Parameters

NameTypeDescription
textstring · requiredContent (URL, text, vCard, …), max 4000 chars.
formatstring · optionalpng (default) or svg.
sizeinteger · optional64–2000 px, default 512.
ecLevelstring · optionalL | M (default) | Q | H.
darkstring · optional
lightstring · optional

Example request

curl -X POST https://api.bigapi.dev/v1/qr -H 'Authorization: Bearer $KEY' -H 'Content-Type: application/json' -d '{"text":"https://example.com"}' -o qr.png

Example response

HTTP/1.1 200 OK
Content-Type: image/png

(PNG body, 512x512)

Related guides