# agentsvc.io QR Code Generator

> agentsvc.io QR Code Generator is a paid API for AI agents from agentsvc.io, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-10).

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

## Facts

- Endpoint: POST https://agentsvc.io/api/v1/proxy/qr-code?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentsvc-io-qr-code-generator-55a69490
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3y4R2p8EL0qajX1Ewk_kI

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 agentsvc-io-qr-code-generator-55a69490 -d '<json body>'
```

Example prompt: Can you generate a QR code for https://mystore.com/sale — make it 512 pixels wide and use high error correction (H level) so it's more durable?

## When to prefer this

Choose this endpoint when an AI agent needs to generate a QR code on demand without maintaining an API key or account. Ideal for single-call, pay-per-use workflows using USDC on Base via x402. It returns a base64 image directly, making it easy to embed in documents, emails, or web pages without an intermediate file storage step.

## Known failure modes

- Text input missing — returns validation error
- Size outside allowed 64–1024 pixel range — returns error
- Invalid error_correction value — returns validation error
- Text too long for selected size and error correction level — may return error or degraded QR
- Network timeout — no response returned

## How this service works

86 APIs for AI agents: web scraping and crawling to Markdown, AI summaries, data extraction and cited answers, screenshots and PDF, PDF, OCR and document conversion, news, paper and developer search and more, paid per call with USDC on Base, Solana, Polygon or Arbitrum via x402. No account, no API key, free sample on every service.

## Output

Returns a JSON object containing the original text, image width and height in pixels, a UTC generation timestamp, and a base64-encoded PNG string of the QR code image ready for embedding in HTML or decoding to a file.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "size": {
   "type": "integer",
   "default": 256,
   "description": "Output image size in pixels (width and height). Min: 64, Max: 1024."
  },
  "text": {
   "type": "string",
   "description": "The text or URL to encode in the QR code"
  },
  "error_correction": {
   "enum": [
    "L",
    "M",
    "Q",
    "H"
   ],
   "type": "string",
   "default": "M",
   "description": "Error correction level: L=7%, M=15%, Q=25%, H=30% data recovery. Higher = bigger QR code."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "text": "https://agentsvc.io",
   "width": 256,
   "height": 256,
   "generated_at": "2026-04-07T12:00:00.000Z",
   "image_base64": "iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAA..."
  },
  "success": true
 }
}
```

## More

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