# QR Code Generator (SVG/PNG)

> QR Code Generator (SVG/PNG) is a paid API for AI agents from clawtious.creatormagic.ai, paid per call via x402, $0.001000/call, status down (last checked 2026-09-15, last successful call 2026-05-06).

Generates QR codes as SVG or PNG images from any input data including URLs, text, WiFi credentials, or email addresses

## Facts

- Endpoint: GET https://clawtious.creatormagic.ai/api/qr/generate
- Price: $0.001000/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Last successful call: 2026-05-06
- Success rate: 50% of calls made through Zero
- Activations on Zero: 4
- Tags: x402
- Canonical page: https://www.zero.xyz/c/clawtious-creatormagic-ai-01a03495
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3PlHo-wzxNvW7PGeRLJ1Q

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 clawtious-creatormagic-ai-01a03495
```

Example prompt: Generate a QR code for https://myshop.com/sale — make it 400 pixels wide and give it to me as a PNG.

## When to prefer this

Use this endpoint when you need to programmatically generate QR codes from arbitrary data (URLs, text, WiFi configs, emails) and require either scalable SVG output for print/design use or PNG for web/app display, at a very low per-call cost ($0.001 USDC).

## Known failure modes

- Missing required 'data' parameter returns an error response
- Size outside the 100–1000 pixel range may be rejected or clamped
- Invalid format value (not 'svg' or 'png') may return an error
- Extremely long data strings may exceed QR code encoding capacity
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Generate QR codes as SVG or PNG — URLs, text, WiFi, email, any data

## Output

Returns a QR code image file — either an SVG vector or PNG raster — encoding the provided data string at the specified pixel size

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "data": "https://example.com",
   "size": 300,
   "format": "png"
  }
 }
}
```

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "data"
     ],
     "properties": {
      "data": {
       "type": "string",
       "description": "Content to encode in QR code"
      },
      "size": {
       "type": "number",
       "description": "Width in pixels (100-1000)"
      },
      "format": {
       "type": "string",
       "description": "svg or png"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/clawtious-creatormagic-ai-01a03495/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from clawtious.creatormagic.ai](https://www.zero.xyz/host/clawtious.creatormagic.ai/llms.txt)
