# HTTPay QR Code Generator

> HTTPay QR Code Generator is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Generates a QR code from any text or URL, returning a base64-encoded PNG image or SVG string

## Facts

- Endpoint: POST https://httpay.xyz/api/qr-generate
- 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/httpay-qr-code-generator-4e66d49e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KunSdZKRsVyQhWCuWGsmq

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 httpay-qr-code-generator-4e66d49e -d '<json body>'
```

Example prompt: Generate a QR code for 'https://myshop.com/checkout' as a 400px PNG — I want the base64 image back so I can drop it into my website.

## When to prefer this

Choose this endpoint when you need a simple, no-signup, pay-per-call QR code generation service that supports both PNG (as base64) and SVG output formats and integrates with x402/USDC micropayment flows on Base. Ideal for agents that need to generate QR codes on-demand without managing API keys or subscriptions.

## Known failure modes

- Missing required 'text' parameter — returns 400 error
- Invalid format value (not 'png' or 'svg') — may fall back to default or return error
- Payment not provided or insufficient USDC balance — x402 payment required error
- Text too long to encode in a single QR code — may return encoding error
- Network timeout if upstream QR generation service is slow

## How this service works

307 pay-per-call APIs (287 native + Universal Gateway proxying 37 services) powered by x402 and USDC on Base. Token intelligence, DeFi yields, MEV risk, AI tools, web scraping. No API keys, no subscriptions — pay $0.001–$0.05 per call.

## Output

Returns a JSON object containing either a base64-encoded PNG image string or an SVG string representing the QR code, depending on the requested format. The response also includes a description of the operation and input parameters used.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "description": "Generate a QR code from any text or URL. Accepts: text (required), size (default 300), format (png|svg). Returns base64 image or SVG string."
 }
}
```

## More

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