# ForgeMesh QR Code Image Generator

> ForgeMesh QR Code Image 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 base64-encoded PNG QR code image from any text or URL input, with configurable size and error-correction level.

## Facts

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

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-image-generator-d4f0b4b3 -d '<json body>'
```

Example prompt: Generate a QR code image for the URL https://myshop.com/product/42 at 800 pixels wide so I can embed it on our product packaging.

## When to prefer this

Choose this endpoint when you need a serverless, dependency-free way to produce QR code PNG images on demand — ideal for ticketing, packaging, signage, or any pipeline where installing a QR rendering library is impractical. Best suited for single, synchronous QR code generation from text or URLs up to 2000 characters.

## Known failure modes

- Input text exceeds 2000 characters — encoding fails or is rejected
- Invalid or unsupported size value — may default or return an error
- Malformed request body — returns 400-level error
- Network timeout or service unavailability — returns 5xx error
- Payment not processed — x402 payment required before response is returned

## How this service works

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.

## Output

A base64-encoded PNG image of the generated QR code, ready to embed in HTML, print pipelines, or ticketing systems without any additional rendering libraries.

## 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-image-generator-d4f0b4b3/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)
