# 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.001/call, status unknown (last checked 2026-12-01).

Generates a QR code image (PNG or SVG) from any text or URL, with configurable size, colors, margin, and error correction level

## Facts

- Endpoint: POST https://x402.agentutility.ai/qr-maker?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentutility-qr-code-generator-f1a67b48
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yj0e0FRkmQ3qzyaKveFjY

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-f1a67b48 -d '<json body>'
```

Example prompt: Generate a QR code for 'https://myshop.com/checkout' as a 512-pixel PNG with high error correction (H), black modules on a white background, and a margin of 4.

## When to prefer this

Choose this endpoint when you need programmatic, on-demand QR code generation with fine-grained control over colors, size, format (PNG or SVG), margin, and error correction level, all without API keys or signup — ideal for AI agents automating QR code creation as part of a larger workflow and paying per call in USDC.

## Known failure modes

- Text exceeds ~4296 character QR capacity — encoding fails or quality degrades
- Size outside [64, 1024] range returns a validation error
- Invalid hex color string causes a bad request error
- Unsupported format value returns a validation error
- Network or payment failure (x402 USDC payment not fulfilled) results in 402 response

## How this service works

817 pay-per-call APIs for AI agents. Every endpoint is POST /<name> and is payable in USDC over x402 on Base and Solana — no signup, no API key, just pay-per-call. GET https://x402.agentutility.ai/ returns the same catalog as machine-readable JSON.

## Output

Returns a JSON object indicating the size (integer pixels), format (png or svg), and content_type (e.g. image/png) of the generated QR code image, along with the actual image data encoded in the response.

## 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": [
      "text"
     ],
     "properties": {
      "size": {
       "type": "number",
       "description": "Image side length in pixels. Range [64, 1024]. Default 256."
      },
      "text": {
       "type": "string",
       "description": "Text to encode. Any string up to ~4296 chars."
      },
      "format": {
       "enum": [
        "png",
        "svg"
       ],
       "type": "string",
       "description": "Output image format. Default 'png'."
      },
      "margin": {
       "type": "number",
       "description": "Quiet-zone margin in modules. Range [0, 20]. Default 4."
      },
      "background": {
       "type": "string",
       "description": "Background color as 6 or 8-digit hex."
      },
      "foreground": {
       "type": "string",
       "description": "QR module color as 6 or 8-digit hex."
      },
      "error_correction": {
       "enum": [
        "L",
        "M",
        "Q",
        "H"
       ],
       "type": "string",
       "description": "Reed-Solomon error-correction level."
      }
     }
    },
    "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": {
      "size": {
       "type": "integer"
      },
      "format": {
       "type": "string"
      },
      "content_type": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "size": 256,
  "format": "png",
  "content_type": "image/png"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentutility-qr-code-generator-f1a67b48/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)
