# Relic Forge QR Code SVG Generator

> Relic Forge QR Code SVG Generator is a paid API for AI agents from relic-forge-api.bakongi.chatgpt.site, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Generates a standards-compliant QR code as an SVG from a text string, with configurable error correction level.

## Facts

- Endpoint: POST https://relic-forge-api.bakongi.chatgpt.site/api/qr?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relic-forge-qr-code-svg-generator-6a342e03
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_k-4q5i-2zGPSdas7vqZZQ

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 relic-forge-qr-code-svg-generator-6a342e03 -d '<json body>'
```

Example prompt: Can you generate a QR code SVG for the URL https://example.com/promo with high error correction so it'll still scan even if part of it gets damaged?

## When to prefer this

Choose this endpoint when you need a lightweight, low-cost SVG QR code generated from any text or URL, especially when you want a deterministic result (same input always yields the same QR), need standards-compliant output, or want to embed QR codes in web pages or documents without additional rendering libraries. Ideal for agents operating in game asset pipelines, print workflows, or any context where an SVG format is preferred over raster images.

## Known failure modes

- Missing required 'text' field returns a validation error
- Invalid 'ecl' enum value (not L, M, Q, or H) causes a 400 bad request
- Empty string for text may produce an invalid or empty QR code
- Extremely long input text may exceed QR code data capacity and fail encoding
- Payment not provided or insufficient USDC may result in a 402 Payment Required response

## How this service works

Create deterministic game relic icons and standards-compliant QR SVGs, or fetch public BTC perpetual funding snapshots for AI agents.

## Output

Returns a JSON object containing a unique ID for the QR code, the SVG markup string (ready to embed in HTML or save as a file), the format (always 'svg'), the error correction level used, and the name of the generator that produced it.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text"
 ],
 "properties": {
  "ecl": {
   "enum": [
    "L",
    "M",
    "Q",
    "H"
   ],
   "type": "string"
  },
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "id",
  "format",
  "errorCorrection",
  "svg",
  "generator"
 ],
 "properties": {
  "id": {
   "type": "string"
  },
  "svg": {
   "type": "string"
  },
  "format": {
   "type": "string",
   "const": "svg"
  },
  "generator": {
   "type": "string"
  },
  "errorCorrection": {
   "enum": [
    "L",
    "M",
    "Q",
    "H"
   ],
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relic-forge-qr-code-svg-generator-6a342e03/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from relic-forge-api.bakongi.chatgpt.site](https://www.zero.xyz/host/relic-forge-api.bakongi.chatgpt.site/llms.txt)
