# Vextorium QR Code Generator

> Vextorium QR Code Generator is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-10).

Generates a QR code image (SVG or PNG) from any text or URL content, with configurable error correction, scale, and colors

## Facts

- Endpoint: POST https://api.vextorium.com/v1/qr-generate?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vextorium-qr-code-generator-0a240074
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yLYk0Zmp-PdItYH7sc4dX

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 vextorium-qr-code-generator-0a240074 -d '<json body>'
```

Example prompt: Generate a QR code for https://mystore.com in SVG format with high error correction and return it as a data URI so I can embed it on my site.

## When to prefer this

Choose this endpoint when you need a programmatic, pay-per-call QR code generator that returns base64/data-URI output suitable for embedding in web pages or documents, especially within an agent workflow that already uses Vextorium's x402 USDC payment rail for other data APIs.

## Known failure modes

- Missing required 'content' field returns a validation error
- Invalid format enum value (not 'svg' or 'png') causes rejection
- Invalid correction level enum (not 'l','m','q','h') causes rejection
- Content too long for QR encoding capacity may fail or require a higher QR version
- Network timeout on the pay-per-call gateway

## How this service works

Generate a QR code as SVG or PNG (base64 and data URI) for any text, URL, payment link, Wi-Fi or vCard, with error-correction level, scale and colors.

## Output

A JSON object containing: base64-encoded image data, a ready-to-use data URI, the image format (svg or png), file size in bytes, number of QR modules, error correction level used, and the QR version number.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "content"
     ],
     "properties": {
      "dark": {
       "type": "string"
      },
      "light": {
       "type": "string"
      },
      "scale": {
       "type": "integer"
      },
      "format": {
       "enum": [
        "svg",
        "png"
       ],
       "type": "string"
      },
      "content": {
       "type": "string"
      },
      "correction": {
       "enum": [
        "l",
        "m",
        "q",
        "h"
       ],
       "type": "string"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": [
      "object",
      "null"
     ],
     "properties": {
      "bytes": {
       "type": [
        "number",
        "null"
       ]
      },
      "base64": {
       "type": [
        "string",
        "null"
       ]
      },
      "format": {
       "type": [
        "string",
        "null"
       ]
      },
      "modules": {
       "type": [
        "number",
        "null"
       ]
      },
      "data_uri": {
       "type": [
        "string",
        "null"
       ]
      },
      "correction": {
       "type": [
        "string",
        "null"
       ]
      },
      "qr_version": {
       "type": [
        "number",
        "null"
       ]
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bytes": 1303,
  "base64": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNjQiIGhlaWdodD0iMjY0IiBjbGFzcz0ic2Vnbm8iPjxnIHRyYW5zZm9ybT0ic2NhbGUoOCkiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0wIDBoMzN2MzNoLTMzeiIvPjxwYXRoIGNsYXNzPSJxcmxpbmUiIHN0cm9rZT0iIzAwMCIgZD0iTTQgNC41…",
  "format": "svg",
  "modules": 25,
  "data_uri": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNjQiIGhlaWdodD0iMjY0IiBjbGFzcz0ic2Vnbm8iPjxnIHRyYW5zZm9ybT0ic2NhbGUoOCkiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0wIDBoMzN2MzNoLTMzeiIvPjxwYXRoIGNsYXNzPSJxcmxpbmUiIHN0cm…",
  "correction": "M",
  "qr_version": 2
 }
}
```

## More

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