# ForgeMesh URL-to-QR Code Generator

> ForgeMesh URL-to-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).

Converts any URL or short text (up to 2000 characters) into a scannable QR code PNG delivered as a base64-encoded image with configurable pixel size

## Facts

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

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-url-to-qr-code-generator-a9f33bd1 -d '<json body>'
```

Example prompt: Can you turn https://morningbloom.coffee/menu into a QR code PNG at 800 pixels wide so I can print it on our event badges?

## When to prefer this

Use this endpoint when you need a server-side, pay-per-use QR code generator that returns a base64 PNG directly — ideal for dynamic generation in onboarding flows, event badge pipelines, or print automation where you want a simple POST with text/URL in and image out, without managing a QR library dependency.

## Known failure modes

- Input text exceeds 2000 characters — request rejected
- Invalid size value (non-numeric or negative) — may return error or fall back to default 512px
- Empty data field — QR code cannot be generated
- Network timeout on the x402 payment or API call — no image returned

## How this service works

Turn any link or short block of text, up to 2000 characters, into a scannable QR code PNG, delivered as base64 with adjustable pixel size and built-in error correction. Built for onboarding flows, Wi-Fi credential sharing, event check-in badges, and print materials where a URL needs to become something a phone camera can read instantly.

## Output

A base64-encoded PNG image of the QR code representing the input URL or text, rendered at the specified pixel width (default 512px) with built-in error correction, ready for embedding in HTML, saving to disk, or printing.

## 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-url-to-qr-code-generator-a9f33bd1/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)
