# 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-09-14).

Generates PNG or SVG QR codes from URLs, text, vCards, WiFi strings, and plain text with configurable size, margin, colors, and error correction level

## Facts

- Endpoint: POST https://x402.agentutility.ai/qr-generator
- Price: $0.001/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-6471942a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4i2qhtDV-d-ONeMokn2mb

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

Example prompt: Generate a QR code for https://morningbloom.coffee as a PNG, 300px, with a dark green foreground on white background and high error correction — I need it for our new loyalty card flyers.

## When to prefer this

Choose this endpoint when an AI agent needs to programmatically generate QR codes as part of an automated workflow — especially when USDC micropayment billing via x402 is already in use, when SVG vector output is needed for print, or when fine-grained control over colors, margins, and error correction is required. Prefer over browser-based free tools when operating headlessly in an agent pipeline.

## Known failure modes

- Invalid or malformed input data results in encoding error
- Unsupported output format string returns validation error
- Size or margin values out of acceptable range return parameter error
- Invalid hex color codes cause rendering failure
- Payment failure (insufficient USDC balance) blocks the request under x402 protocol

## How this service works

Generates PNG or SVG QR codes from text, URLs, vCards, WiFi strings, and plain text with configurable size, margin, colors, and error correction. Use it as a QR generator API, create-QR-code endpoint, text-to-QR, or link QR generator.

## Output

Returns a QR code image file (PNG binary or SVG markup) encoding the provided input data, rendered at the specified size and colors with the requested error correction level

## 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-6471942a/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)
