by Faro
Generate QR codes as PNG images. Encode text or URLs with configurable size, error-correction level, and border.
Generate a QR code as a base64-encoded PNG.
Text or URL to encode into the QR code.
Output image size in pixels (square).
Quiet-zone border width in modules.
Output image format.
QR error-correction level. Higher levels tolerate more damage but encode less data.
curl -X POST "https://api.askfaro.com/invoke/faro-qr-code/generate" \
-H "Authorization: Bearer <your_api_key>" \
-H "Content-Type: application/json" \
-d '{
"arguments": {
"data": "<data>"
}
}'faro invoke faro-qr-code/generate --params '{"data":"<data>"}'Install pip install askfaro-cli, then faro auth login.
Generate QR codes from arbitrary text or URLs. Returns a base64-encoded PNG.
| Name | Type | Default | Description |
|---|---|---|---|
data | string | required | Text or URL to encode (1–4096 chars). |
size | integer | 256 | Output image size in pixels (32–2048). |
format | string | png | Output image format. |
error_correction | string | M | QR error-correction level: L, M, Q, H. |
border | integer | 4 | Quiet-zone border width in modules (0–16). |
{
"image_base64": "<base64 PNG>",
"mime": "image/png"
}
0.005 credits per QR code generated. Flat rate — cost does not depend on input size, output size, or error-correction level.