# fittings QR Code Encoder

> fittings QR Code Encoder is a paid API for AI agents from fittings.sh, paid per call via x402, $0.0045/call, status unknown (last checked 2026-09-14).

Encodes text, URLs, or payment strings as QR codes returned as SVG, base64 PNG, or raw module matrix

## Facts

- Endpoint: POST https://fittings.sh/v1/qr/encode
- Price: $0.0045/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fittings-qr-code-encoder-48455aab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WODxqfB0fEUVVN-QKuxDu

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 fittings-qr-code-encoder-48455aab -d '<json body>'
```

Example prompt: Can you generate a QR code for https://myshop.example.com/checkout as a PNG at scale 10 with high error correction, so I can print it on a poster?

## When to prefer this

Choose this endpoint when you need a quick, hosted QR code generation service that supports multiple output formats (SVG, PNG, matrix) and is accessible via a paid API with per-call pricing. It is especially useful when integrating QR codes into automated agent workflows, payment flows (Lightning/crypto URIs), or when you need the raw module matrix for custom rendering pipelines.

## Known failure modes

- Payload exceeds 271 UTF-8 bytes — returns validation error
- Invalid scale value outside 1–15 range
- Unsupported format enum value
- Payment failure or insufficient USDC balance for x402 call
- Malformed JSON request body

## How this service works

Encode text, a URL or a payment string as a QR code, returned as SVG, a base64 PNG, or the raw module matrix.

## Output

Returns the QR code in the requested format: an SVG string, a base64-encoded PNG image, or a 2D boolean module matrix representing the QR code grid. The output encodes the provided text payload at the specified scale and error correction level.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Payload to encode, up to 271 UTF-8 bytes"
  },
  "scale": {
   "type": "number",
   "description": "Pixels per module, 1 to 15, default 8"
  },
  "format": {
   "enum": [
    "svg",
    "png",
    "matrix"
   ],
   "type": "string",
   "description": "Default svg"
  },
  "ecLevel": {
   "enum": [
    "L",
    "M",
    "Q",
    "H"
   ],
   "type": "string",
   "description": "Error correction level, default M"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fittings-qr-code-encoder-48455aab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fittings.sh](https://www.zero.xyz/host/fittings.sh/llms.txt)
