Generate Styled QR Code
qr.generate_styledGenerate custom-shaped, colored QR codes with gradients and multiple output formats, paying $0.05 USDC on Base via x402.
Instructions
Generate an artistic/styled QR code with custom shapes, colors, and gradients. Costs $0.05 USDC on Base.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Image width/height in pixels | |
| text | Yes | Content to encode in QR code | |
| format | No | Output format | base64 |
| dotType | No | Shape of QR modules | rounded |
| _payment | No | Base64-encoded signed v2 PaymentPayload (the value you'd put in the PAYMENT-SIGNATURE HTTP header). Use @x402/evm or @x402/fetch to sign locally with your own wallet — your private key never leaves your machine. Get the requirements from a first call without _payment, then retry. | |
| dotColor | No | Hex color for dots (e.g. #6366f1) | |
| gradientTo | No | Gradient end color (hex) | |
| cornerColor | No | Hex color for finder pattern corners | |
| gradientFrom | No | Gradient start color (hex) | |
| backgroundColor | No | Hex background color | #ffffff |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error message when the call failed. | |
| result | No | Raw JSON payload returned by the x402 service on a successful, paid call. | |
| network | No | Settlement network for the x402 payment (base). | |
| service | No | Underlying x402tools service that handled the call. | |
| encoding | No | Encoding of the binary payload (base64). | |
| mimeType | No | MIME type of the returned binary payload (e.g. image/png, application/pdf). | |
| price_usdc | No | Price charged for this call, in USDC on Base. | |
| requirements | No | x402 payment requirements (scheme, network, amount, payTo, asset) when payment_required is true. | |
| payment_required | No | True when the call needs an x402 payment before it will run. |