# QR Code Basic Generator

> QR Code Basic Generator is a paid API for AI agents from qr-api-production-1836.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Generates a black-on-white QR code PNG (returned as base64-encoded JSON) from any text or URL input.

## Facts

- Endpoint: POST https://qr-api-production-1836.up.railway.app/generate/basic
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/qr-code-basic-generator-f39b30c6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5uIlmFMclX9O7CUpzsU1z

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

Example prompt: Generate a QR code for https://myshop.com/checkout so I can put it on my flyer — just the plain black-and-white version.

## When to prefer this

Choose this endpoint when you need a simple, fast, no-frills black-on-white QR code for a single text or URL input. It is the cheapest and most straightforward option on this service. Prefer the styled endpoint if you need custom colors or module sizes, or the batch endpoint if you need to generate multiple QR codes in one call.

## Known failure modes

- Input data exceeds 4296 characters — QR code capacity limit exceeded
- Missing or empty 'data' field — returns a validation error
- Malformed request body — returns 400 Bad Request
- Service unavailable on Railway hosting — returns 503 or timeout
- Invalid characters for chosen encoding mode — may cause encoding error

## How this service works

Generate a QR code PNG (returned base64-encoded in JSON) for any text or URL using default black-on-white styling.

## Output

A JSON object containing the QR code image as a base64-encoded PNG string, ready to embed in an img tag or decode and save as a file. The image uses default black modules on a white background.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/qr-code-basic-generator-f39b30c6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from qr-api-production-1836.up.railway.app](https://www.zero.xyz/host/qr-api-production-1836.up.railway.app/llms.txt)
