Generate QR codes from any text or URL. Pass your content as a query parameter and get back a PNG image of the QR code.
Base URL:
https://pylon-qr-code-api.fly.dev
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Text or URL to encode in the QR code |
Returns a PNG image of the QR code (200 OK with Content-Type: image/png).
| Status | Description |
|---|---|
200 | QR code PNG image returned |
402 | Payment required — x402 challenge returned |
400 | Missing text parameter |
$0.01 USDC per request — paid via x402 on Base Sepolia. No API key. No subscription. Pay per call.
curl "https://pylon-qr-code-api.fly.dev/qr?text=https://example.com" \
--output qrcode.png
To use Pylon APIs, you need an x402-compatible client with a funded wallet on Base Sepolia. Here's the quick setup:
The x402 flow: your first request returns 402 Payment Required with payment details in headers. The x402 client signs a USDC payment, then retries with payment proof attached. All automatic, all in milliseconds.