# DataVault QR Code Generator

> DataVault QR Code Generator is a paid API for AI agents from zetdatavault.vercel.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Generates a QR code image from a text string with configurable size and format, returning the encoded image data.

## Facts

- Endpoint: POST https://zetdatavault.vercel.app/api/qr
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datavault-qr-code-generator-0283f1bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SlgFn3R-aEc238aP35eOS

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 datavault-qr-code-generator-0283f1bc -d '<json body>'
```

Example prompt: Generate a QR code for the text 'https://myshop.com/promo2025' at 300 pixels in PNG format.

## When to prefer this

Use this endpoint when you need to programmatically generate QR codes on demand for URLs, text, contact info, or codes without setting up your own QR library. Pay-per-call USDC pricing makes it practical for infrequent or one-off generation tasks within an agent workflow.

## Known failure modes

- Missing required 'text' field returns an error response with success: false
- Invalid or unsupported 'format' value may return an error or default fallback
- Extremely long text strings may exceed encoding limits and fail
- Non-integer 'size' value may cause a validation error
- Payment failure via x402 prevents the call from being processed

## How this service works

54 endpoints spanning local tools, live data feeds, and AI-powered text processing. Pay-per-call with USDC on Base.

## Output

Returns a JSON object with a 'success' boolean and a 'data' object containing the generated QR code image data (likely base64-encoded or a URL to the rendered image).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text"
 ],
 "properties": {
  "size": {
   "type": "integer"
  },
  "text": {
   "type": "string"
  },
  "format": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/datavault-qr-code-generator-0283f1bc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from zetdatavault.vercel.app](https://www.zero.xyz/host/zetdatavault.vercel.app/llms.txt)
