Text or URL → QR code as PNG or SVG, with size, colours and error-correction level.
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.
| Name | Meaning |
|---|---|
text required | Content (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. |
format | png for screens and documents, svg for print and any size without blur. Allowed: png, svgDefault: "png" |
size | Width and height in px, 64 to 2000. Default: 512 |
ecLevel | Error 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, HDefault: "M" |
dark | Colour 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" |
light | Background colour as #rrggbb. Invalid values fall back to white, with a warning. Default: "#ffffff" |
Returns image/png | image/svg+xml. Response headers carry the cost (X-BigAPI-Cost) and notes about your input (X-BigAPI-Warnings).
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.