# CoCo QR Code Generator

> CoCo QR Code Generator is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Generates a QR code as an SVG image from query parameters via a GET request

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/qr?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-qr-code-generator-2dc8a7b8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5pId6AzSuY-Zz8ywYULJZ

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 coco-qr-code-generator-2dc8a7b8
```

Example prompt: Can you generate a QR code as an SVG for my website https://example.com so I can embed it on a page?

## When to prefer this

Choose this endpoint when you need a lightweight, server-side QR code generation that returns a scalable SVG (vector) rather than a raster PNG/JPEG, and when a low per-call cost ($0.001 USDC) via x402 micropayment is acceptable. Good for embedding in web pages or documents where vector quality matters.

## Known failure modes

- Missing required query parameters may return an empty or malformed QR code
- Invalid or overly long input data may cause generation errors
- Network or server unavailability returns a non-200 HTTP status
- Payment failure (HTTP 402) if the x402 micropayment of $0.001 USDC is not completed

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

Returns a JSON object containing an 'svg' field with a complete SVG XML string representing the generated QR code, ready to embed directly in HTML or save as an .svg file.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "svg"
     ],
     "properties": {
      "svg": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "svg": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"68\" height=\"68\" class=\"segno\"><path transform=\"scale(4)\" class=\"qrline\" stroke=\"#000\" d=\"M2 2.5h7m1 0h1m1 0h1m1 0h1m-13 1h1m5 0h1m5 0h1m-13 1h1m1 0h3m1 0h1m3 0h1m1 0h1m-13 1h1m1 0h3m1 0h1m1 0h5m-13 1h1m1 0h3m1 0h1m2 0h1m1 0h1m-12 1h1m5 0h1m2 0h1m2 0h1m-13 1h7m1 0h4m-1 1h1m-12 1h3m3 0h1m1 0h1m1 0h1m-9 1h1m2 0h3m2 0h1m1 0h1m-13 1h2m1 0h10m-12 1h2m1 0h2m1 0h1m1 0h1m1 0h1m-12 1h1m2 0h2m1 0h1m1 0h1m1 0h1m1 0h1\"/></svg>\n"
 },
 "exampleNote": "Computed offline with demonstration inputs; time/random values are illustrative."
}
```

## More

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