# x402 Web Tools – QR Code Generator

> x402 Web Tools – QR Code Generator is a paid API for AI agents from q7w9tnp09rjt5ccj.68r.lambda-web.us-east-1.on.aws, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-29).

Encodes any text or URL as a QR code image, returning PNG (base64 + data URL) or SVG at a chosen size and error correction level.

## Facts

- Endpoint: GET https://q7w9tnp09rjt5ccj.68r.lambda-web.us-east-1.on.aws/v1/qr?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-web-tools-qr-code-generator-db4e27da
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VqVovraCrKEoI45QLx7mx

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 x402-web-tools-qr-code-generator-db4e27da
```

Example prompt: Can you generate a QR code for https://example.com/signup as a 400-pixel PNG with high error correction so it still scans if printed small?

## When to prefer this

Choose this endpoint when you need a programmatic, on-demand QR code as an embeddable image (data URL or SVG) without setting up a dedicated QR library — especially inside an agent workflow that already uses x402 micropayments. It is ideal for single-call generation where you need both base64 and a data URL in one response, and when format (PNG vs SVG) and error correction level matter.

## Known failure modes

- text parameter missing or empty — required field not provided
- text exceeds 2000 characters — payload too large for QR encoding
- size outside 64–1024 range — validation error returned
- invalid format or level enum value — rejected with bad request
- network timeout on the Lambda backend — transient 5xx error
- payment not received (402) — x402 micropayment required before response is served

## How this service works

Encode text or a URL as a QR code: PNG (base64 and a data URL) or SVG, with the size and error correction level you choose.

## Output

A JSON object containing the image format (png or svg), the output size in pixels, the file size in bytes, the raw base64-encoded PNG string (png_base64), and a ready-to-use data URL (data_url) for inline embedding. SVG responses return the SVG markup instead of base64.

## 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": {
      "size": {
       "type": "integer",
       "description": "width in pixels (64-1024, default 300)"
      },
      "text": {
       "type": "string",
       "description": "what to encode (up to 2000 characters)"
      },
      "level": {
       "enum": [
        "L",
        "M",
        "Q",
        "H"
       ],
       "type": "string",
       "description": "error correction level (default M)"
      },
      "format": {
       "enum": [
        "png",
        "svg"
       ],
       "type": "string",
       "description": "image format (default png)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "size": {},
      "bytes": {},
      "format": {},
      "data_url": {},
      "png_base64": {}
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "size": 300,
  "bytes": 1200,
  "format": "png",
  "data_url": "data:image/png;base64,iVBORw0KGgo...",
  "png_base64": "iVBORw0KGgo..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-web-tools-qr-code-generator-db4e27da/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from q7w9tnp09rjt5ccj.68r.lambda-web.us-east-1.on.aws](https://www.zero.xyz/host/q7w9tnp09rjt5ccj.68r.lambda-web.us-east-1.on.aws/llms.txt)
