Skip to content
onelayer.
All tools

Tool detail

qr

Generates a QR code as SVG for a text or URL payload up to 2,048 UTF-8 bytes.

Categories: Utilities

Use when

  • create a QR code image for a URL or short text
  • generate a scannable QR code at a specific size or error-correction level

Not for

  • not for payloads near 2,048 bytes at Q/H error correction — capacity drops

Inputs

GET query params: data (string, 1-2048 chars, required); ecl (enum L/M/Q/H, default M); size (64-1024px, default 256).

Admitted input schema

{
  "type": "object",
  "properties": {
    "data": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048,
      "description": "Payload to encode (max 2,048 UTF-8 bytes; QR capacity is lower at Q/H error correction)"
    },
    "ecl": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "enum": [
        "L",
        "M",
        "Q",
        "H"
      ],
      "description": "Error correction, default M"
    },
    "size": {
      "type": "number",
      "minimum": 64,
      "maximum": 1024,
      "description": "SVG width/height in px, default 256"
    }
  },
  "required": [
    "data"
  ],
  "additionalProperties": false
}

Endpoint

Method
GET
URL
https://toolvend.dev/qr

Payment

Protocol
x402
Listed price
0.003 USDC per call on Solana
Payment method
exact
Network
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
Asset
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Record
GET https://toolvend.dev/qr
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z