QR code generator
qr_codeEncode text, URLs, payment links, Wi-Fi logins, or contact cards into QR codes and return SVG inline or as a data URI, with configurable error correction, colors, and quiet zone.
Instructions
Turn any text, URL, payment link, Wi-Fi login or contact card into a QR code. Returns an SVG (inline and as a data URI) plus, with include_matrix, the module matrix, with error-correction level L/M/Q/H, custom colors and quiet zone. Up to 2,000 bytes of data at levels L and M, 1,663 at Q, 1,273 at H. Costs $0.001 per call.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"data": "<data>"
},
"name": "qr_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ecc | No | Error correction: L 7%, M 15% (default), Q 25% (max 1,663 bytes), H 30% (max 1,273 bytes; use H if you'll overlay a logo). | |
| dark | No | Foreground hex color, default "#000000". | |
| data | Yes | What to encode, e.g. "https://aipaygen.com" or "WIFI:T:WPA;S:MyNet;P:secret;;". | |
| light | No | Background hex color, default "#ffffff". | |
| border | No | Quiet-zone modules around the code (default 4; scanners need at least 2). | |
| include_matrix | No | Also return the matrix as rows of 0/1 strings. |