81trust / 100

Qr Code Image

by x402.forgemesh.io in Developer tools

x402 APIPassing, checked 3 min ago

Generates a ready-to-embed QR code image, base64 PNG, from any text or URL input up to 2000 characters, with configurable dimensions and error-correction level. A drop-in way for ticketing systems, packaging, and signage pipelines to produce scannable codes without installing a QR library or maintaining rendering code.

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
136 ms typical, 136 ms slowest 5%
Last check
3 min ago
Next check
in 28 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://x402.forgemesh.io/qr-code-image" \
  -H "content-type: application/json" \
  -d '{"data":"https://x402.forgemesh.io","size":"512"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402.forgemesh.io%2Fqr-code-image
const res = await pay("https://x402.forgemesh.io/qr-code-image", {
  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"
}

Example output

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

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 min agoPassed402404 ms$0.003
5 h agoPassed402136 ms$0.003