# QR Code Generator (qr.bip-rep.com)

> QR Code Generator (qr.bip-rep.com) is a paid API for AI agents from qr.bip-rep.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Generates a QR code from any text or URL as a PNG (base64) or SVG image, with configurable error-correction level, margin, and scale.

## Facts

- Endpoint: POST https://qr.bip-rep.com/generate
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/qr-code-generator-qr-bip-rep-com-d1d7f062
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xiqsKLWBS5M5ANnc06q1E

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 qr-code-generator-qr-bip-rep-com-d1d7f062 -d '<json body>'
```

Example prompt: Generate a QR code for https://mybusiness.com/menu as a PNG with error-correction level H, a scale of 8, and a margin of 4.

## When to prefer this

Choose this endpoint when you need a fast, programmatic QR code generation API that supports both PNG and SVG output, configurable error-correction levels, and is designed for agentic/automation workflows with per-call x402 micropayment pricing. Prefer it over client-side libraries when you need server-side generation without managing dependencies, or when operating within an agent pipeline that already handles x402 payments.

## Known failure modes

- Invalid or missing 'text' input returns a 400 error
- Unsupported format value returns a validation error
- Scale or margin values out of acceptable range return a 400
- Network timeout or internal error returns a 500
- Malformed JSON body returns a 422 unprocessable entity

## How this service works

Generate and read QR codes in one API for agents and automation. Generate a QR code from any text or URL as a PNG (base64) or scalable SVG, with configurable error-correction level, quiet-zone margin, and scale. Decode reads the embedded payload from an uploaded image (multipart, base64, or public HTTPS URL), returning the decoded data, QR version, and corner coordinates. Image downloads are SSRF-protected (no private IPs, no redirects); no shell access.

## Output

Returns a JSON object containing the requested format ('png' or 'svg'), the error-correction level used, latency in milliseconds, and either a base64-encoded PNG string (png_base64) or an SVG string depending on the chosen format.

## Example request

```json
{
 "input": {
  "body": {
   "text": "https://example.com",
   "scale": 6,
   "format": "png",
   "margin": 4,
   "ec_level": "M"
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## 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 to encode in the QR code"
      },
      "format": {
       "type": "string",
       "description": "Output format",
       "enum": [
        "png",
        "svg"
       ]
      },
      "ec_level": {
       "type": "string",
       "description": "Error correction level",
       "enum": [
        "L",
        "M",
        "Q",
        "H"
       ]
      },
      "margin": {
       "type": "integer",
       "description": "Quiet-zone margin in modules (0-20, default 4)"
      },
      "scale": {
       "type": "integer",
       "description": "Pixels per module for PNG output (1-20, default 6)"
      }
     },
     "additionalProperties": false
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "format": {
       "type": "string"
      },
      "ec_level": {
       "type": "string"
      },
      "png_base64": {
       "type": "string"
      },
      "svg": {
       "type": "string"
      },
      "size_bytes": {
       "type": "integer"
      },
      "latency_ms": {
       "type": "integer"
      }
     }
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

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