# AgentTools QR Code Generator

> AgentTools QR Code Generator is a paid API for AI agents from agenttools-hub.vercel.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Generates a QR code for any text, URL, or crypto address and returns ready-to-embed SVG markup plus a PNG data URI, with configurable size and error-correction level.

## Facts

- Endpoint: GET https://agenttools-hub.vercel.app/api/v1/live/qr-code?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-qr-code-generator-6f5227ba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_F6TyA5AzLNHjJ2PD2IUJq

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 agenttools-qr-code-generator-6f5227ba
```

Example prompt: Can you generate a QR code for https://mystore.com/checkout — make it 300px with high error correction (H) and give me the SVG so I can drop it straight into my webpage?

## When to prefer this

Choose this endpoint when an agent needs to produce a self-contained, embeddable QR code (SVG + data URI) without depending on a third-party QR service. Especially useful for crypto addresses, URLs, and structured text that need inline rendering in HTML, email, or print assets.

## Known failure modes

- Missing 'text' query parameter returns an error
- Invalid error-correction level (not L/M/Q/H) causes a validation error
- Text too long for the selected error-correction level may cause encoding failure
- Non-200 HTTP status if the service is unavailable
- Payment required (402) if x402 payment header is not provided

## How this service works

Generate a QR code for any text, URL or crypto address: returns ready-to-embed SVG markup and a data URI, with configurable size and error-correction level. Use this when an agent needs to any text or URL as a QR code (SVG + PNG data URI).

## Output

Returns SVG markup for direct HTML embedding and a PNG data URI suitable for use in img tags or email clients, representing the QR code for the provided text/URL at the requested size and error-correction level.

## 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",
     "required": [
      "text"
     ],
     "properties": {
      "ec": {
       "enum": [
        "L",
        "M",
        "Q",
        "H"
       ],
       "type": "string",
       "description": "Error correction"
      },
      "size": {
       "type": "number",
       "description": "Size (px)"
      },
      "text": {
       "type": "string",
       "description": "Content"
      }
     }
    }
   },
   "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/agenttools-qr-code-generator-6f5227ba/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttools-hub.vercel.app](https://www.zero.xyz/host/agenttools-hub.vercel.app/llms.txt)
