# ForgeMesh QR Code Generator

> ForgeMesh QR Code Generator 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-15).

Converts any text or URL (up to 2000 characters) into a scannable PNG QR code, returned as a base64-encoded image at a configurable size between 128 and 1024 pixels.

## Facts

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

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 forgemesh-qr-code-generator-cba1a5db -d '<json body>'
```

Example prompt: Generate a QR code for 'https://checkout.myshop.com/pay/order-9182' at 512px so I can drop it into my print invoice template.

## When to prefer this

Choose this endpoint when you need a fast, server-side QR code generated from arbitrary text or a URL and returned as a base64 PNG ready for embedding in print pipelines, PDFs, ticketing systems, payment flows, or onboarding screens — especially when client-side QR libraries are unavailable or undesirable.

## Known failure modes

- Input data exceeds 2000 characters — request rejected
- Size value outside 128–1024 range — may return error or clamp to default
- Invalid or missing 'data' field — API returns error
- Network timeout if hardware is temporarily busy
- Payment failure (insufficient USDC) blocks the request

## How this service works

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.

## Output

A base64-encoded PNG image of the QR code encoding the provided text or URL, rendered at the specified pixel size (128–1024px). The agent can decode or embed this string directly into HTML, PDF pipelines, or print workflows.

## 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/forgemesh-qr-code-generator-cba1a5db/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)
