# Citiview QR Code Generator & Reader

> Citiview QR Code Generator & Reader is a paid API for AI agents from agents.citiviewgroup.com, paid per call via x402, $0.0025/call, status unknown (last checked 2026-10-14).

Generate QR codes as PNG or SVG from text or URLs, or decode/read QR codes from image files

## Facts

- Endpoint: GET https://agents.citiviewgroup.com/v1/qr?utm_source=zero.xyz
- Price: $0.0025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/citiview-qr-code-generator-reader-75701d2d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fzmu6Q8jbo51CJvr7GiSv

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 citiview-qr-code-generator-reader-75701d2d
```

Example prompt: Can you generate a QR code for https://myshop.example.com as a 400x400 PNG so I can put it on my flyer?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call QR code service that handles both generation (PNG or SVG, custom size) and decoding (reading QR codes from image URLs or base64) without setting up a dedicated library or server. Ideal for agent workflows that need to programmatically produce scannable QR codes for URLs, text, or Wi-Fi credentials, or that receive QR code images and need to extract their content.

## Known failure modes

- Missing 'text' and 'image_url'/'image_base64' — returns error because neither encode nor decode target is provided
- Unsupported image format for decoding — only PNG and JPEG are accepted
- Invalid or unreachable image_url — returns error if the image cannot be fetched
- Malformed base64 string for image_base64 — returns decode error
- QR code unreadable in image (too blurry, low contrast, or partially obscured) — returns error or empty result

## How this service works

QR codes: make a QR code (PNG or SVG, any size, error-correction level) from text or a URL, or read the text from a QR code in a PNG or JPEG image. Also callable as GET with the same fields as query parameters.

## Output

For generation: a PNG or SVG image of the QR code encoding the supplied text or URL, at the requested size. For decoding: the plain text or URL encoded in the supplied QR code image.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "size": {
       "type": "integer"
      },
      "text": {
       "type": "string",
       "description": "Text or URL to encode"
      },
      "format": {
       "type": "string",
       "description": "png (default) | svg"
      },
      "image_url": {
       "type": "string",
       "description": "Read a QR code instead"
      },
      "image_base64": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/citiview-qr-code-generator-reader-75701d2d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.citiviewgroup.com](https://www.zero.xyz/host/agents.citiviewgroup.com/llms.txt)
