Marketplace/faro-qr-code
QR Code Generator

QR Code Generator

Active

by Faro

1 tool
upstream:

Generate QR codes as PNG images. Encode text or URLs with configurable size, error-correction level, and border.

Developer Toolsqrcodeimagegenerator

Tools (1)

Generate a QR code as a base64-encoded PNG.

Usage-based · 0.005 credits per QR code generated.

Example prompts

  • Generate a QR code for https://askfaro.com
  • Make a 512px QR code linking to my LinkedIn
  • Create a QR code with high error correction for the text "Hello, world"

Parameters

datastringrequired

Text or URL to encode into the QR code.

sizeintegeroptionaldefault: 256

Output image size in pixels (square).

borderintegeroptionaldefault: 4

Quiet-zone border width in modules.

formatstringoptionaldefault: "png"

Output image format.

error_correctionstringoptionaldefault: "M"

QR error-correction level. Higher levels tolerate more damage but encode less data.

API Usage

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>"
  }
}'

CLI Usage

faro invoke faro-qr-code/generate --params '{"data":"<data>"}'

Install pip install askfaro-cli, then faro auth login.

README

QR Code Generator

Generate QR codes from arbitrary text or URLs. Returns a base64-encoded PNG.

Inputs

NameTypeDefaultDescription
datastringrequiredText or URL to encode (1–4096 chars).
sizeinteger256Output image size in pixels (32–2048).
formatstringpngOutput image format.
error_correctionstringMQR error-correction level: L, M, Q, H.
borderinteger4Quiet-zone border width in modules (0–16).

Output

{
  "image_base64": "<base64 PNG>",
  "mime": "image/png"
}

Pricing

0.005 credits per QR code generated. Flat rate — cost does not depend on input size, output size, or error-correction level.