# Anokha Web Tools – QR Code Generator

> Anokha Web Tools – QR Code Generator is a paid API for AI agents from tools.anokha.space, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Generates a QR code image from arbitrary string data and returns a hosted PNG URL, base64, and metadata

## Facts

- Endpoint: POST https://tools.anokha.space/v1/qr?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/anokha-web-tools-qr-code-generator-b2d94f72
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UCOUr3_v2uYvdhXuo8sxd

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 anokha-web-tools-qr-code-generator-b2d94f72 -d '<json body>'
```

Example prompt: Can you generate a QR code for https://myshop.example.com, 300 pixels wide, and give me the image URL I can drop into my flyer?

## When to prefer this

Choose this endpoint when you need a fast, pay-per-call QR code image with no API key setup, especially in agent workflows that use USDC micropayments via x402. It returns both a hosted URL and base64, so it's suitable for embedding in web pages, email, or documents immediately. Prefer this over subscription QR APIs when you need zero-configuration, on-demand generation at $0.002 per call.

## Known failure modes

- Empty or missing 'data' field returns a validation error
- Extremely long data strings may exceed QR code capacity limits
- Hosted URL expires after a set date (e.g. 2026-10-25) and becomes inaccessible
- Invalid 'size' value (negative or zero) may cause a bad request error
- Payment failure over x402 results in a 402 response and no QR code is generated

## How this service works

Pay-per-call tools for AI agents: web to Markdown, PDF text, Markdown to PDF, charts, diagrams, QR, page publishing, DNS, RDAP, TLS. x402, USDC on Base, no API key.

## Output

Returns a JSON object containing a hosted URL to the generated PNG image (with an expiry date), the file size in bytes, a base64-encoded representation of the image, and the content type (image/png). The URL can be embedded directly in web pages, documents, or print assets.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "string"
  },
  "size": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://tools.anokha.space/f/abc123def456.png",
  "bytes": 20480,
  "base64": "iVBOR...",
  "expires": "2026-10-25T00:00:00Z",
  "content_type": "image/png"
 }
}
```

## More

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