generate_qr
Generate a QR code from any text or URL. Receive a base64 PNG and HTML data URI for immediate use.
Instructions
Generate a QR code from any text or URL.
Returns a base64-encoded PNG and a ready-to-use HTML data URI. Works for URLs, plain text, vCards, WiFi credentials, payment links, etc.
Args: content: The text or URL to encode box_size: Pixel size of each QR module, 1–20 (default 10) border: Quiet-zone border width in modules, 1–10 (default 4)
Returns: dict with keys: image (base64 PNG), data_uri, qr_version, modules, cost_usd
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| border | No | ||
| content | Yes | ||
| box_size | No |