generate_qr_code
Generate a styled QR code image URL. Free, no token needed. Encodes a URL, text, Wi-Fi credentials, vCard, email, phone, SMS, or WhatsApp payload. Returns a stable image URL (PNG or SVG) that can be embedded or downloaded directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Image size in px (default 512) | |
| type | No | Payload type (default url) | |
| fields | Yes | Payload fields for the type: url→{url}; text→{text}; email→{to,subject?,body?}; phone→{phone}; sms→{phone,body?}; whatsapp→{phone,text?}; wifi→{ssid,password?,encryption?}; vcard→{name,org?,title?,phone?,email?,url?} | |
| format | No | Image format (default png) | |
| dot_style | No | Data-dot style | |
| foreground | No | Foreground hex color | |
| transparent | No | Transparent background | |
| marker_color | No | Marker hex color (defaults to foreground) | |
| marker_shape | No | Corner-marker shape | |
| marker_center | No | Corner-marker center |