A

Ai Rook · QR Generate

by Ai Rook

POSTBaseSolana

$0.001

per call · USD Coin on Base

Generate a QR code from any text or URL. Returns base64-encoded PNG.

Endpoint

POST https://agents.ai-rook.com/api/qr-generate

32

Calls / 30d

3

Unique payers / 30d

Sep 10

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://agents.ai-rook.com/api/qr-generate", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "method": "POST",
    "size": 300,
    "text": "https://agents.ai-rook.com",
    "type": "http"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agents.ai-rook.com/api/qr-generate" \
  -H "Content-Type: application/json" \
  -d '{"method":"POST","size":300,"text":"https://agents.ai-rook.com","type":"http"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "format": "png",
  "image": "data:image/png;base64,...",
  "size": 300
}

Payment details

Pay to0xd5f96558fcb1f127c77c7d95eea067f526d08618
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Media & Generation and the homepage with a featured placement.

Get featured →

More from Ai Rook & similar services