# WiFi QR Code Payload Generator

> WiFi QR Code Payload Generator is a paid API for AI agents from barcode-qr.x402tookit.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-11-02).

Builds a standard WIFI: join string with proper ZXing/Android escaping and returns it as a QR code SVG image.

## Facts

- Endpoint: GET https://barcode-qr.x402tookit.com/wifi-qr-payload?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wifi-qr-code-payload-generator-6e62820a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_K_EoYwY7fLO00qpyDKxDD

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 wifi-qr-code-payload-generator-6e62820a
```

Example prompt: Generate a WiFi QR code SVG for my network called 'CoffeeShopGuest' with password 'latte2024' using WPA authentication and high error correction — I want to print it so guests can scan to join.

## When to prefer this

Choose this endpoint when you need a complete, standards-compliant WiFi onboarding QR code that both builds the correctly escaped WIFI: payload string and renders it as a scalable SVG in one call. Prefer it over generic QR text encoders when the use case specifically involves WiFi network joining (ZXing/Android compatibility), as it handles the escaping of semicolons, commas, colons, backslashes, and quotes automatically and supports WPA, WEP, WPA3/SAE, and open network auth types.

## Known failure modes

- Missing required 'ssid' query parameter returns an error
- SSID exceeding 32 characters may be rejected or truncated
- Invalid 'ec' value (not L/M/Q/H) causes a bad request
- Invalid 'auth' value (not WPA/WEP/SAE/nopass) causes an error
- Scale value outside 1-20 range or border outside 0-10 range returns validation error
- Special characters in SSID or password that cannot be escaped may cause encoding failure

## How this service works

Build the standard WIFI: join string (ZXing/Android escaping of ; , : \ and quotes) and its QR code SVG.

## Output

Returns a JSON object containing the rendered QR code as an SVG string, the WIFI: payload string with proper escaping, QR metadata (version, module count, mask pattern, data codewords, penalty score, encoded units, SVG byte size, error correction level, auth type, encoding mode), a summary/verdict field, and any warnings or reasons if degraded.

## 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": [
      "ssid"
     ],
     "properties": {
      "ec": {
       "type": "string",
       "description": "QR error correction L, M, Q or H (default M)"
      },
      "auth": {
       "type": "string",
       "description": "WPA (default with a password), WEP, SAE (WPA3) or nopass"
      },
      "ssid": {
       "type": "string",
       "description": "Network name (SSID), up to 32 characters"
      },
      "scale": {
       "type": "integer",
       "description": "Pixels per module, 1 to 20 (default 0: scalable)"
      },
      "border": {
       "type": "integer",
       "description": "QR quiet zone in modules, 0 to 10 (default 4)"
      },
      "hidden": {
       "type": "string",
       "description": "true if the network does not broadcast its name"
      },
      "password": {
       "type": "string",
       "description": "Network password (omit for an open network)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "svg": {
       "type": [
        "null",
        "string"
       ]
      },
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "mode": {
       "type": [
        "null",
        "string"
       ]
      },
      "hidden": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "ecLevel": {
       "type": [
        "null",
        "string"
       ]
      },
      "modules": {
       "type": [
        "null",
        "number"
       ]
      },
      "payload": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wifi-qr-code-payload-generator-6e62820a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from barcode-qr.x402tookit.com](https://www.zero.xyz/host/barcode-qr.x402tookit.com/llms.txt)
