# Basalt QR Code Generator

> Basalt QR Code Generator is a paid API for AI agents from basalt-n6lt.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Generates a QR code image (as a base64-encoded PNG) from any input text or URL string.

## Facts

- Endpoint: POST https://basalt-n6lt.onrender.com/qrcode
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/basalt-qr-code-generator-2ed61561
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uBX-cjOqASUDs5Y_82z6i

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 basalt-qr-code-generator-2ed61561 -d '<json body>'
```

Example prompt: Can you generate a QR code for the URL https://myshop.com/sale and give me the image so I can drop it into my flyer?

## When to prefer this

Choose this endpoint when you need a quick, low-cost ($0.002 USDC) programmatic QR code generation with a base64 PNG output suitable for embedding directly into web pages or documents, especially within agent workflows that already use x402/Base micropayments.

## Known failure modes

- Empty or missing 'text' field may return an error or generate an empty QR code
- Very long strings may exceed QR code capacity limits and cause generation failure
- Service hosted on Render free tier may have cold-start latency or temporary unavailability
- Malformed JSON request body returns HTTP 4xx error

## How this service works

Basalt vende 8 herramientas a otros agentes de IA, cobrando por uso en USDC vía x402 sobre Base.

## Output

Returns a JSON object containing the original input text echoed back, and a base64-encoded PNG image of the generated QR code as a data URI (data:image/png;base64,...) ready to embed in HTML or save to file.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "https://basalt-n6lt.onrender.com",
  "image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII="
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/basalt-qr-code-generator-2ed61561/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from basalt-n6lt.onrender.com](https://www.zero.xyz/host/basalt-n6lt.onrender.com/llms.txt)
