BiGapiguides
POST /v1/qr · 1 cent per operation

QR code

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

Try it

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

New keys come with 100 free operations, no signup: curl -X POST https://api.bigapi.dev/v1/keys. Failed calls cost nothing.

Parameters

NameMeaning
text requiredContent (URL, text, vCard, …), max 4000 chars. What fits depends on ecLevel: at most 2953 bytes at L, 2331 at M, 1663 at Q, 1273 at H for normal text (UTF-8 bytes); more returns 400 text_too_long_for_qr.
formatpng for screens and documents, svg for print and any size without blur.
Allowed: png, svg
Default: "png"
sizeWidth and height in px, 64 to 2000.
Default: 512
ecLevelError correction: how much of the code may be damaged or covered and still scan. L 7 %, M 15 %, Q 25 %, H 30 %; use H when a logo covers the middle.
Allowed: L, M, Q, H
Default: "M"
darkColour of the dark squares as #rrggbb. Keep strong contrast to light, or phones cannot scan it: below 3:1, or with dark lighter than light, the code is still made but X-BigAPI-Warnings warns. Invalid values fall back to black, with a warning.
Default: "#000000"
lightBackground colour as #rrggbb. Invalid values fall back to white, with a warning.
Default: "#ffffff"

Result and price

1¢ · 1 cent per operation

Returns image/png | image/svg+xml. Response headers carry the cost (X-BigAPI-Cost) and notes about your input (X-BigAPI-Warnings).

From an agent (MCP)

Connect BiGapi as an MCP server: https://api.bigapi.dev/mcp (hosted) or npx -y @bigapi/mcp (local). Then ask in plain words; the agent finds qr_code on its own.