F

Forgemesh · QR Code

by Forgemesh

POSTBase

$0.003

per call · USD Coin on Base

QR code generator: turn any text or URL (up to 2000 characters) into a scannable PNG QR code, generated on our own hardware in milliseconds, returned base64. Answers "make me a QR code for this link." Set size 128-1024px. For payment links, tickets, onboarding flows, and print pipelines.

Endpoint

POST https://x402.forgemesh.io/qr-code

1

Calls / 30d

1

Unique payers / 30d

Aug 26

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://x402.forgemesh.io/qr-code", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "data": "https://x402.forgemesh.io",
    "size": "512"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://x402.forgemesh.io/qr-code" \
  -H "Content-Type: application/json" \
  -d '{"data":"https://x402.forgemesh.io","size":"512"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "content_type": "image/png",
  "encoded_characters": 25,
  "file_base64": "iVBORw0KGgo..."
}

Payment details

Pay to0x850363a27f0ac6feb9c7a3ec4c1d295262df9432
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from Forgemesh & similar services