QR Code Generator
qr_generateGenerate a QR code from any text or URL and return it as a scalable SVG image plus a data-URI. Pure key-less generation, no third-party service. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Text or URL to encode in the QR code. | |
| scale | No | Pixel size of each QR module in the SVG (1-40). Defaults to 8. | |
| border | No | Quiet-zone width in modules (0-20). Defaults to 4. | |
| wallet | No | Your EVM wallet address (0x...). Unlocks the free tier (3 free calls per wallet). | |
| api_key | No | Optional AMR enterprise API key. | |
| x_payment | No | Optional signed x402 payment payload (base64 JSON) for USDC/USDT on Base. | |
| error_correction | No | Error-correction level: L, M, Q or H. Defaults to M. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | Yes | ||
| data | Yes | ||
| token | No | Token actually used for payment (USDC, USDT or FREE). | USDC |
| format | Yes | ||
| source | Yes | ||
| routing | Yes | How the request was routed (provider, fallback, cache, latency). | |
| version | Yes | ||
| data_uri | Yes | ||
| cost_usdc | Yes | Price charged in stablecoin units (USDC/USDT 1:1); 0 on the free tier. | |
| fetched_at | No | UTC timestamp when the data was fetched. | |
| module_count | Yes | ||
| error_correction | Yes | ||
| freshness_seconds | Yes | Age of the underlying data in seconds (0 = fetched live). | |
| x_payment_response | No | Base64-encoded x402 settlement receipt (mirrors the X-PAYMENT-RESPONSE header). Only present when the call was paid with `x_payment`. |