# 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-13).

Generates a QR code image from any text or URL, returned as a base64-encoded PNG at a configurable pixel size

## Facts

- Endpoint: POST https://x402.forgemesh.io/make-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/forgemesh-qr-code-generator-55ad7ec2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gW9iDh6vSu0CAoSYNd0lr

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-55ad7ec2 -d '<json body>'
```

Example prompt: Can you generate a QR code for the URL https://pay.example.com/invoice/1234, at 512 pixels wide, so I can put it on a printed invoice?

## When to prefer this

Use this endpoint when you need a quick, on-demand QR code generated from a URL or text string and returned as a base64 PNG without any server-side storage. Ideal for automated workflows that embed QR codes in invoices, digital documents, or printed materials without requiring a design tool or manual steps.

## Known failure modes

- Input text exceeds 2000 characters — request rejected
- Size parameter outside 128–1024 range — may return error or use default
- Malformed JSON body — 400 Bad Request
- Payment not provided or insufficient — 402 Payment Required
- Service unavailable — 5xx response

## How this service works

On-demand QR code creation from plain text or a URL, configurable size from 128 to 1024 pixels with medium error correction baked in, returned as a base64 PNG with nothing retained afterward. Useful for payment links, business cards, table tents, and any workflow that needs a fresh scannable code generated in milliseconds rather than through a design tool.

## Output

A base64-encoded PNG image of a QR code encoding the submitted text or URL, sized between 128 and 1024 pixels with medium error correction. No data is retained server-side after the response.

## 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-55ad7ec2/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)
