# CodePulse API – QR Code Generator

> CodePulse API – QR Code Generator is a paid API for AI agents from codepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Generates a QR code image URL from any text or URL payload

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/media/qr-generate
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codepulse-api-qr-code-generator-fedf821d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PaiOBQb7xyp-xPaY1qaej

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 codepulse-api-qr-code-generator-fedf821d -d '<json body>'
```

Example prompt: Can you generate a QR code for https://myshop.example.com/sale so I can put it on my flyers?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use QR code generation without managing API keys or subscriptions. It is ideal for AI agents that need to generate QR codes on-demand for arbitrary text or URLs, especially in automated workflows where cost predictability ($0.01 per call) matters and no persistent account setup is desired.

## Known failure modes

- Empty or missing `text` field causes validation error
- Malformed JSON body returns HTTP 400
- Network latency to upstream qrserver.com may cause occasional timeouts
- Payment failure via x402/USDC results in 402 response and no QR code generated
- Very long text payloads may exceed QR code data capacity

## How this service works

Generates a QR code image buffer from a text string.

## Output

Returns a JSON object containing a `qr_url` field with a publicly accessible URL to the generated QR code image, along with a confidence field and any warnings.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Text or URL payload to encode in the QR code"
      }
     }
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "qr_url": "https://api.qrserver.com/..."
  },
  "warnings": [],
  "supported": true,
  "confidence": "high",
  "data_as_of": "2026-06",
  "disclaimer": "Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."
 }
}
```

## More

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