# QR Code Generator (Basic)

> QR Code Generator (Basic) is a paid API for AI agents from qr.payapi.market, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-30).

Generates a basic QR code image (PNG, base64-encoded) from any text or URL input, paid per-call via x402 micropayment.

## Facts

- Endpoint: POST https://qr.payapi.market/generate/basic?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/qr-code-generator-basic-e0d30844
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QMdakCPRabXIdgRf3feEN

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-basic-e0d30844 -d '<json body>'
```

Example prompt: Can you generate a QR code for https://payapi.market so I can put it on my flyer? Give me the PNG image back.

## When to prefer this

Choose this endpoint when you need a quick, low-cost QR code image (PNG) generated from any text or URL without needing customization beyond defaults. At $0.001 USDC per call it is ideal for high-volume or automated pipelines (agent workflows, bulk flyer generation) that need pay-per-use pricing with no subscription. It is preferable when you need a simple standard QR code and don't require advanced styling, color customization beyond black-on-white, or logo embedding.

## Known failure modes

- Input data exceeds 4296 characters — QR code capacity limit exceeded
- Missing or empty 'data' field — returns validation error
- Payment not authorized or x402 payment header missing — returns 402 Payment Required
- Malformed request body — returns 400 Bad Request
- Service unavailable — returns 5xx error

## How this service works

Generate and decode QR codes with x402 payments and an MCP server.

## Output

Returns a JSON object containing the base64-encoded PNG image of the QR code, along with metadata: image width and height (pixels), number of modules, QR version, box size, border, background color (#ffffff), fill color (#000000), file size in bytes, and error correction level (M).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "string",
   "description": "Text or URL to encode, up to 4296 characters."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": "https://payapi.market",
  "width": 330,
  "border": 4,
  "format": "png",
  "height": 330,
  "modules": 25,
  "version": 2,
  "box_size": 10,
  "back_color": "#ffffff",
  "fill_color": "#000000",
  "size_bytes": 512,
  "image_base64": "iVBORw0KGgoAAAANSUhEUgAAASIAAAEiCAYAAABdvt+2AAAABmJLR0QA/wD/AP+gvaeTAAAF...",
  "error_correction": "M"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/qr-code-generator-basic-e0d30844/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from qr.payapi.market](https://www.zero.xyz/host/qr.payapi.market/llms.txt)
