QR code generator
qr_codeMake a QR code for any text, URL, Solana Pay / wallet address or Wi-Fi login — as a PNG (base64 data URL) or SVG, with size, margin, colours and error correction. Rendered on our server. For Wi-Fi pass wifi_ssid + wifi_password; for Solana Pay pass a solana: URI as text. Price: free. Errors: returns isError with a message for invalid input or an upstream failure (not charged).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dark | No | Foreground colour as #rrggbb. Default "#000000". | #000000 |
| size | No | Image width/height in pixels. Range 64-2048. Default 512. | |
| text | No | Text or URL to encode (ignored when wifi_ssid is set). | |
| light | No | Background colour as #rrggbb. Default "#ffffff". | #ffffff |
| format | No | PNG (base64 data URL) or SVG markup. One of "png", "svg". Default "png". | png |
| margin | No | Quiet-zone width in modules. Range 0-16. Default 2. | |
| wifi_ssid | No | Wi-Fi network name; makes a join-network QR instead of text. | |
| wifi_password | No | Wi-Fi password (with wifi_ssid; omit for open networks). | |
| error_correction | No | Error-correction level: L 7%, M 15%, Q 25%, H 30%. One of "L", "M", "Q", "H". Default "M". | M |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | No | ||
| format | No | ||
| encoded | No |