Text, URLs, payment URIs or Wi-Fi logins to a QR code as SVG or GIF data URI.
QR code generator: text, URL, payment URI (e.g. ethereum:/USDC request) or Wi-Fi credentials (ssid + password) to a QR code as SVG (inline + data URI) and/or GIF data URI. Error correction L/M/Q/H, scale, quiet-zone margin, colours, optional 0/1 module matrix. UTF-8 byte mode, computed locally, nothing stored.
$0.0015 per call in USDC on Base via x402, or pay by card with prepaid credits (1 credit) · 1 free call per caller · no signup · Listed on PayAPI Market (this route is not PayAPI-verified yet; 14 other routes are, each by one settled test payment)
GET https://freetier-agent-api.pages.dev/api/qr-code
Use qr-code to turn a URL, payment request, Wi-Fi login or any text into a scannable QR image (SVG or GIF data URI).
| Name | Type | Description |
|---|---|---|
text | string | content to encode, up to 2,000 characters |
ssid | string | Wi-Fi network name (instead of text) -> WIFI: QR |
password | string | Wi-Fi password (with ssid) |
auth | string (WPA | WEP | nopass) | Wi-Fi security, default WPA when a password is given |
ecc | string (L | M | Q | H) | error correction, default M |
format | string (svg | gif | both) | default svg |
scale | string | pixels per module, 1-40, default 8 |
margin | string | quiet zone in modules, 0-20, default 4 |
dark | string | hex colour, default 000000 (svg only) |
light | string | hex colour, default ffffff (svg only) |
matrix | string (true | false) | true adds rows of 0/1 |
{
"kind": "text",
"text": "https://freetier-agent-api.pages.dev",
"bytes": 36,
"ecc": "M",
"version": 3,
"modules": 29,
"scale": 2,
"margin": 4,
"size_px": 74,
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 74 74\" width=\"74\" height=\"74\" shape-rendering=\"crispEdges\"><rect width=\"100%\" height=\"100%\" fill=\"#fffff...",
"svg_data_uri": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3NCA3NCIgd2lkdGg9Ijc0IiBoZWlnaHQ9Ijc0IiBzaGFwZS1yZW5kZXJpbmc...",
"gif_data_uri": "data:image/gif;base64,R0lGODdhSgBKAIAAAAAAAP///ywAAAAASgBKAAAC/4yPqcvtD6OctNqLs968+w+G4kiWZgKk6roaKfIeLODSQTzntqTPNby7sX7CWk9FiTFwNt+jVWwoI1MF04h8ZquoIIQJBee...",
"matrix": [
"11111110100100111010101111111",
"10000010101110000001101000001"
],
"note": "Byte mode, UTF-8. Keep the margin (quiet zone) at 4 for reliable scanning. QR Code is a registered trademark of DENSO WAVE INCORPORATED.",
"library": "qrcode-generator 2.0.4 (MIT, Kazuhiko Arase)",
"more": {
"full_datasets": "https://freetier-kits-shop.fourthwall.com",
"note": "Full dataset downloads available by card"
}
}
curl -s "https://freetier-agent-api.pages.dev/api/qr-code?text=https%3A%2F%2Ffreetier-agent-api.pages.dev"
Buy a credit pack on Gumroad (1,000 credits $3), then send your license key. The X-Credits-Remaining response header shows your balance; failed calls are not charged.
curl -s "https://freetier-agent-api.pages.dev/api/qr-code?text=https%3A%2F%2Ffreetier-agent-api.pages.dev" \ -H 'X-License-Key: YOUR-LICENSE-KEY'
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.EVM_PRIVATE_KEY); // wallet with USDC on Base
const fetchWithPayment = wrapFetchWithPaymentFromConfig(fetch, {
schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
});
const res = await fetchWithPayment("https://freetier-agent-api.pages.dev/api/qr-code?text=https%3A%2F%2Ffreetier-agent-api.pages.dev");
console.log(await res.json());
# pip install "x402[httpx,evm]" eth-account
import asyncio, os
from eth_account import Account
from x402 import x402Client
from x402.http.clients import x402HttpxClient
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
async def main():
client = x402Client()
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
async with x402HttpxClient(client) as http:
r = await http.get("https://freetier-agent-api.pages.dev/api/qr-code?text=https%3A%2F%2Ffreetier-agent-api.pages.dev")
print(r.json())
asyncio.run(main())
A bare request without parameters returns the HTTP 402 payment challenge (x402 v2 in the PAYMENT-REQUIRED header, v1 in the body). Invalid input gets a 400 before any payment.
Failed calls are never charged. Failed calls are never charged: the payment is verified first, the request runs, and the payment is settled only if it succeeded. Errors (4xx/5xx) are not settled, and invalid input is rejected before any payment or free call.
Independent monitoring of this endpoint: 402index service page (health, 30-day uptime, p50 latency).
qr_code at https://freetier-agent-api.pages.dev/mcp (Streamable HTTP; in-band x402 payment via _meta["x402/payment"], or card credits via the X-License-Key header)Agent Extraction API by FreeTier Kits · Terms · llms.txt · /.well-known/x402 · MCP: https://freetier-agent-api.pages.dev/mcp · Contact: tec@mail.grokbot.com
This site and its texts were written with AI assistance and reviewed for accuracy; example outputs are real responses from the API.