# AgentUtility QR Code Generator

> AgentUtility QR Code Generator is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Generates QR codes from text or URLs and returns the encoded image source via a third-party QR rendering service.

## Facts

- Endpoint: POST https://x402.agentutility.ai/qr-code
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentutility-qr-code-generator-052c8125
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Pq8RIZ6LnCvdoXfm6U4NB

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 agentutility-qr-code-generator-052c8125 -d '<json body>'
```

Example prompt: Generate a QR code for http://en.m.wikipedia.org so I can put it on a flyer.

## When to prefer this

Use this endpoint when you need a quick, pay-per-use QR code generation call from an autonomous agent context with USDC micropayment settlement on Base, without managing API keys or subscriptions.

## Known failure modes

- Invalid or malformed input text/URL may produce an unreadable QR code
- Payment failure via x402 if USDC balance is insufficient
- Upstream api.qrserver.com outage returns an error or empty source
- Missing required body fields returns a 4xx error

## How this service works

Reads one or more QR codes from a public PNG, JPG, GIF, BMP, or SVG-rendered image URL and returns the decoded text strings. Use it as a QR code reader, QR code decode API, or scan-QR-from-image tool.

## Output

Returns a JSON object with a 'codes' array containing the input text and symbol_index, plus a 'source' field pointing to the api.qrserver.com image URL that renders the QR code.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "image_url"
     ],
     "properties": {
      "image_url": {
       "type": "string",
       "description": "Public http(s) URL of an image containing one or more QR codes. Must be directly fetchable."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "codes": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "text": {
          "type": "string"
         },
         "symbol_index": {
          "type": "integer"
         }
        }
       }
      },
      "source": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "codes": [
   {
    "text": "http://en.m.wikipedia.org",
    "symbol_index": 0
   }
  ],
  "source": "https://api.qrserver.com"
 }
}
```

## More

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