# QR Code SVG Generator

> QR Code SVG Generator is a paid API for AI agents from qr-generator.pdfextractapi.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Generates a QR code as an SVG image from any text or URL string, with configurable error correction level.

## Facts

- Endpoint: POST https://qr-generator.pdfextractapi.workers.dev/generate
- Price: $0.01/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-svg-generator-5feb3430
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NygQyvJYZbMW8_gH_lyd5

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-svg-generator-5feb3430 -d '<json body>'
```

Example prompt: Can you generate a QR code SVG for https://myshop.com/menu? Use high error correction so it still scans even if part of it gets damaged.

## When to prefer this

Choose this endpoint when you need a QR code as a scalable SVG vector format, particularly for print materials, web embedding, or documents where resolution independence matters. Prefer this over raster-format QR generators when you need clean scaling at any size. The configurable error correction level (L through H) makes it suitable for use cases ranging from clean digital displays (L) to physical labels that may be partially obscured (H).

## Known failure modes

- Input data exceeds 2000 characters — request rejected
- Invalid error_correction value outside L/M/Q/H enum — validation error
- Empty or missing 'data' field — required field error
- Malformed request body — HTTP 400 bad request
- Payment not provided or insufficient — HTTP 402 payment required

## How this service works

Generate a QR code as SVG from any text or URL.

## Output

Returns a QR code encoded as an SVG vector graphic representing the input text or URL, suitable for embedding in web pages, documents, or print materials. The SVG is scalable without quality loss and encodes the provided data with the specified error correction level (L, M, Q, or H).

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "data"
     ],
     "properties": {
      "data": {
       "type": "string",
       "description": "Text or URL to encode, max 2000 characters."
      },
      "error_correction": {
       "enum": [
        "L",
        "M",
        "Q",
        "H"
       ],
       "type": "string",
       "description": "Error correction level, default M."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

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