# AgentTools QR Code Generator

> AgentTools QR Code Generator is a paid API for AI agents from agentstoolshub.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-12).

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://agentstoolshub.com/api/v1/live/qr-code?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-qr-code-generator-eb79259e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_385kl92G5S6E3KJKBJseo

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-eb79259e
```

Example prompt: Can you generate a QR code for https://myshop.example.com — make it 300px with high (H) error correction, and give me the SVG so I can embed it on a page?

## When to prefer this

Choose this endpoint when an agent needs to produce a QR code as embeddable SVG or a PNG data URI without requiring a separate image hosting step. It is ideal for inline embedding in web pages, PDFs, or printable documents. Prefer it over image-file-based QR generators when SVG output or a self-contained data URI is needed directly in markup.

## Known failure modes

- Missing required 'text' query parameter returns an error
- Invalid error correction level value (not L/M/Q/H) causes a validation error
- Very long input strings may exceed QR code data capacity and fail to encode
- Network timeout or upstream service unavailability returns a 5xx error
- Non-numeric size value causes a validation failure

## 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 that can be directly embedded in HTML or documents, plus a PNG data URI suitable for use in img tags or downloads. The QR code encodes the provided text/URL at the requested pixel size and error-correction level (L, M, Q, or H).

## 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-eb79259e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentstoolshub.com](https://www.zero.xyz/host/agentstoolshub.com/llms.txt)
