POST /v1/qrGenerate a QR code PNG for any text or URL. Returns a public image URL and base64 PNG.
Price: $0.002 per call, paid in USDC on Base via x402. No API key or signup.
npx x402-fetch -X POST -H 'Content-Type: application/json' -d '{"data": "https://example.com"}' https://tools.anokha.space/v1/qr{
"url": "https://tools.anokha.space/f/abc123def456.png",
"bytes": 20480,
"expires": "2026-10-25T00:00:00Z",
"content_type": "image/png",
"base64": "iVBOR..."
}
The first request returns HTTP 402 with a PAYMENT-REQUIRED header. An x402 client signs a USDC authorization and retries with a PAYMENT-SIGNATURE header. You are charged only when the call succeeds.