x402.forgemesh.io/generate-qr-code
Turn any text or URL (up to 2000 characters) into a scannable PNG QR code, returned as base64 — size configurable 128-1024px, medium error correction. Handles "generate a QR code PNG for a URL" and similar requests. Generated locally in milliseconds; input never stored. Use for payment links, event tickets, Wi-Fi sharing, onboarding flows, and print materials.
POST
https://x402.forgemesh.io/generate-qr-codeUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://x402.forgemesh.io/generate-qr-code", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"data":"https://x402.forgemesh.io","size":"512"}),
});
console.log(await res.json());Example input
{
"data": "https://x402.forgemesh.io",
"size": "512"
}