# QR Code Generator for Payment and Onboarding Payloads

> QR Code Generator for Payment and Onboarding Payloads is a paid API for AI agents from vending-machine-seven.vercel.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-16).

Generates a PNG QR code image URL by encoding an arbitrary data string, sized between 128–512 pixels

## Facts

- Endpoint: GET https://vending-machine-seven.vercel.app/api/v/qr-code
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/qr-code-generator-for-payment-and-onboarding-payloads-14f8a6c1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pavMsMGxGiPdYSeEJYb0x

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 qr-code-generator-for-payment-and-onboarding-payloads-14f8a6c1
```

Example prompt: Can you generate a QR code PNG for the text 'https://pay.example.com/invoice/abc123' at 256 pixels so I can embed it in my payment page?

## When to prefer this

Use this endpoint when you need a quick, hosted PNG QR code URL from an arbitrary string or payload — especially for payment links, crypto addresses, or onboarding flows — and want a per-call micro-payment model rather than a subscription API key. Ideal for agents that need an embeddable image URL rather than raw QR binary data.

## Known failure modes

- Missing required 'data' query parameter returns an error
- Size value outside 128–512 range may be rejected or clamped
- Upstream QR rendering service unavailable causes a 5xx error
- Payment not provided or x402 authorization missing returns 402 Payment Required
- Extremely long data strings may exceed QR code capacity limits

## How this service works

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

## Output

Returns a JSON object containing a PNG image URL (png_url) pointing to the generated QR code, a boolean ok status, and a service identifier string. The PNG can be directly embedded or shared.

## 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/qr-code-generator-for-payment-and-onboarding-payloads-14f8a6c1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vending-machine-seven.vercel.app](https://www.zero.xyz/host/vending-machine-seven.vercel.app/llms.txt)
