# VendSDK QR Code Generator

> VendSDK QR Code Generator is a paid API for AI agents from vendsdk.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Generates a PNG QR code image URL by encoding an arbitrary payload string (e.g. payment or onboarding data) at a configurable pixel size

## Facts

- Endpoint: GET https://vendsdk.com/api/v/qr-code
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vendsdk-qr-code-generator-60b25d99
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__DjQQD3cYa77UzatIrZat

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 vendsdk-qr-code-generator-60b25d99
```

Example prompt: Can you generate a QR code PNG for this payment payload — 'https://pay.example.com/invoice/abc123' — at 256 pixels?

## When to prefer this

Choose this endpoint when you need a fast, hosted PNG QR code URL from an arbitrary string payload — especially for payment links, wallet addresses, or onboarding URLs — without setting up your own QR rendering infrastructure. It is particularly well-suited for agent workflows that already operate in the x402 payment ecosystem and need per-call, pay-as-you-go QR generation at low cost.

## Known failure modes

- Missing or empty 'data' query param returns an error response with ok:false
- Pixel size outside the 128–512 range may be rejected or clamped
- Malformed or excessively long payload strings may cause encoding failure
- Network or upstream rendering errors may result in a non-200 response

## How this service works

Generate a PNG QR code URL for payment and onboarding payloads (upstream probed live)

## Output

Returns a JSON object with an 'ok' boolean, a 'png_url' string pointing to the generated PNG QR code image, and a 'service' identifier string. The agent can use the png_url directly to display, embed, or share the QR code.

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "data"
     ],
     "properties": {
      "data": {
       "type": "string",
       "description": "Payload to encode"
      },
      "size": {
       "type": "string",
       "description": "Pixel size 128-512"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "png_url": {
       "type": "string"
      },
      "service": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vendsdk-qr-code-generator-60b25d99/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vendsdk.com](https://www.zero.xyz/host/vendsdk.com/llms.txt)
