# QR Code Generator (x402.forgemesh.io)

> QR Code Generator (x402.forgemesh.io) is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Converts any text or URL (up to 2000 characters) into a scannable PNG QR code returned as a base64-encoded image, with configurable size from 128–1024px.

## Facts

- Endpoint: POST https://x402.forgemesh.io/generate-qr-code
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/qr-code-generator-x402-forgemesh-io-75686c0c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DlaCrQEmXHDzjilYkLPir

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability qr-code-generator-x402-forgemesh-io-75686c0c -d '<json body>'
```

Example prompt: Can you generate a QR code for https://pay.example.com/invoice/12345 at 512px so I can drop it into a PDF invoice?

## When to prefer this

Choose this endpoint when you need a fast, privacy-preserving QR code generated server-side without storing the input — ideal for payment links, tickets, or onboarding flows where latency must be minimal and data sensitivity is a concern. Prefer it over client-side libraries when you need a consistent base64 PNG output suitable for embedding in documents, emails, or print pipelines.

## Known failure modes

- Input text exceeds 2000 characters — request rejected
- Invalid or out-of-range size parameter (below 128 or above 1024px) — may return error or default
- Malformed request body — 400-level error
- Payment failure or insufficient USDC balance — 402 Payment Required
- Service temporarily unavailable — 5xx error

## How this service works

QR code generator API: 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. Generated locally in milliseconds; input never stored. Use for payment links, event tickets, Wi-Fi sharing, onboarding flows, and print materials.

## Output

A base64-encoded PNG image of the QR code, ready to embed in HTML (as a data URI), decode to a file, or pass to a print pipeline. The image encodes the submitted text or URL with medium error correction at the requested pixel size.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "string",
   "description": "Text or URL to encode, max 2000 chars"
  },
  "size": {
   "type": "string",
   "description": "PNG width in px, default 512"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "file_base64": "iVBORw0KGgo...",
  "content_type": "image/png",
  "encoded_characters": 25
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/qr-code-generator-x402-forgemesh-io-75686c0c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
