QR Code Generator
qr_codeGenerate a QR code for any text or URL. Returns image_base64 (base64 PNG; decode to get raw bytes). Params: text (required), size in px (64-1024, default 256), error_correction (L/M/Q/H, default M). H = highest redundancy, survives up to 30% damage. Price: $0.004 USDC per call, paid inside this MCP call via x402 (USDC on Base, Solana, Polygon or Arbitrum). x402 MCP clients such as @x402/mcp pay automatically. Free sample: call with the example input {"text":"https://agentsvc.io","size":256}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Output image size in pixels (width and height). Min: 64, Max: 1024. | |
| text | Yes | The text or URL to encode in the QR code | |
| error_correction | No | Error correction level: L=7%, M=15%, Q=25%, H=30% data recovery. Higher = bigger QR code. | M |