# MolCloud QR Code Generator

> MolCloud QR Code Generator is a paid API for AI agents from api.molcloud.net, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-17).

Generates a QR code (SVG or data URL) from a URL, wallet address, or arbitrary text via a pay-per-request API settling in USDC on Base.

## Facts

- Endpoint: GET https://api.molcloud.net/api/tools/qr?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/molcloud-qr-code-generator-ee6b6090
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_G4rEtE4YiGqK0vXQHLoam

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 molcloud-qr-code-generator-ee6b6090
```

Example prompt: Can you generate an SVG QR code for the URL https://example.com/checkout so I can embed it on a webpage?

## When to prefer this

Choose this endpoint when an AI agent needs to programmatically generate a QR code as part of an autonomous workflow — especially when paying per-request via USDC on Base (x402) is acceptable. Ideal for agents embedding QR codes in generated content, encoding crypto wallet addresses, or producing shareable links without setting up a dedicated QR library. Prefer over self-hosted libraries when operating in a stateless edge context.

## Known failure modes

- Missing required 'text' query parameter — returns error indicating required field absent
- Invalid format enum value (not 'svg' or 'data_url') — returns validation error
- Payment failure or insufficient USDC balance — returns 402 Payment Required before processing
- Empty string passed as text — may return malformed or minimal QR
- Network timeout at edge — returns 5xx error

## How this service works

40 pay-per-request AI, search, headless browser, crypto alpha & memory APIs for autonomous agents settling in USDC on Base via x402 v2.

## Output

Returns a JSON object containing the QR code in the requested format (SVG markup string or base64 data URL), the format name, a success status, and the endpoint path. The QR code is ready for direct embedding in web pages, documents, or emails.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "URL, wallet address, or text to encode"
      },
      "format": {
       "enum": [
        "svg",
        "data_url"
       ],
       "type": "string",
       "default": "svg"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "status",
      "endpoint"
     ],
     "properties": {
      "data": {
       "type": "object"
      },
      "payer": {
       "type": "string"
      },
      "status": {
       "enum": [
        "success"
       ],
       "type": "string"
      },
      "endpoint": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "qr": "<svg>...</svg>",
   "format": "svg"
  },
  "status": "success",
  "endpoint": "/api/tools/qr"
 }
}
```

## More

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