# Delx QR Code

> Delx QR Code is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-10).

Generates a self-contained PNG or SVG QR code from any text or URL, returned as a data URI with a SHA-256 receipt, for $0.001 USDC via x402.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/qr-code?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-qr-code-8725430f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__ocVb2vWwvItvXXwYY3mr

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 delx-qr-code-8725430f -d '<json body>'
```

Example prompt: Generate a QR code for https://myshop.example.com — PNG format, error correction level H, and a border of 2 so it's compact enough for a business card.

## When to prefer this

Choose this endpoint when you need a deterministic, first-party QR code with a cryptographic SHA-256 receipt and no third-party tracking or URL fetching. Ideal for privacy-sensitive use cases, automated pipelines requiring proof of generation, or when you need a self-contained data URI (no hosted image URL). Prefer SVG format for print/scalable use and PNG for web embedding.

## Known failure modes

- Empty or missing 'data'/'text' field returns a validation error
- Input exceeding 2048 characters is rejected
- Invalid enum values for format or error_correction return a 422 error
- box_size or border outside allowed range returns a validation error
- Payment failure or insufficient USDC balance results in a 402 response

## How this service works

QR code generation API for agents at $0.001 USDC. Call when you need a PNG or SVG QR from text or a URL for tickets, onboarding links, or receipts—without installing a QR library. Returns a self-contained data URI plus SHA-256 receipt via x402 on Base; the encoded destination is never fetched or validated. No API key, no subscription.

## Output

A self-contained data URI (base64-encoded PNG or raw SVG) representing the QR code, along with a SHA-256 receipt confirming the generation. No external fetch is performed on the encoded content. The image can be embedded directly in HTML, documents, or printed materials.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "string",
   "maxLength": 2048,
   "minLength": 1,
   "description": "Text or URL to encode. Delx never fetches or validates the destination."
  },
  "text": {
   "type": "string",
   "maxLength": 2048,
   "minLength": 1,
   "description": "Alias for data."
  },
  "border": {
   "type": "integer",
   "default": 4,
   "maximum": 16,
   "minimum": 0
  },
  "format": {
   "enum": [
    "png",
    "svg"
   ],
   "type": "string",
   "default": "png"
  },
  "box_size": {
   "type": "integer",
   "default": 4,
   "maximum": 8,
   "minimum": 1
  },
  "error_correction": {
   "enum": [
    "L",
    "M",
    "Q",
    "H"
   ],
   "type": "string",
   "default": "M"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bytes": 438,
  "model": "qrcode-python",
  "qr_id": "qr_8b4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f",
  "scope": "qr_code",
  "format": "png",
  "schema": "delx/qr-code/v1",
  "sha256": "8b4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f901234567890abcdef1234567890ab",
  "modules": 33,
  "version": 2,
  "data_uri": "data:image/png;base64,<bounded-png>",
  "provider": "first-party",
  "media_type": "image/png",
  "attribution": "QR rendered locally by Delx; the encoded destination is supplied by the caller and is not fetched or validated.",
  "input_sha256": "a6e8f7c3d9b2a1e0f6c5d4b3a29180706050403020100ffeeddccbbaa99887766",
  "sale_price_usdc": 0.001,
  "error_correction": "M",
  "gross_margin_usd": 0.001,
  "upstream_cost_usd": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-qr-code-8725430f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
