{
  "x402Version": 2,
  "id": 72466,
  "slug": "saylorinnovations-api-tools-qr-code",
  "resource": "https://saylorinnovations.com/api/tools/qr-code",
  "description": "Generate a QR code from text or a URL - SVG, base64 data URI, ASCII art and the raw module matrix, with error correction level, colors and quiet zone",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "text": {
        "type": "string",
        "description": "Text content"
      },
      "bytes": {
        "type": "number",
        "description": "Size in bytes"
      },
      "version": {
        "type": "number",
        "description": "Version identifier"
      },
      "modules": {
        "type": "number",
        "description": "Modules per side of the QR symbol"
      },
      "error_correction": {
        "type": "string",
        "description": "Error correction"
      },
      "mask": {
        "type": "number",
        "description": "Mask pattern chosen (0 to 7)"
      },
      "svg": {
        "type": "string",
        "description": "SVG markup of the code"
      },
      "svg_data_uri": {
        "type": "string",
        "description": "Svg data uri"
      },
      "ascii": {
        "type": "string",
        "description": "Unicode half-block rendering for terminals"
      },
      "matrix": {
        "type": "array",
        "description": "Rows of 0 and 1 for each module"
      },
      "note": {
        "type": "string",
        "description": "Caveat or context for reading the result"
      },
      "source": {
        "type": "string",
        "description": "Data source the values come from"
      }
    },
    "required": [
      "version",
      "svg",
      "matrix"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "ec": "M",
            "text": "https://example.com/hello"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "text": "https://example.com/hello",
            "bytes": 25,
            "version": 2,
            "modules": 25,
            "error_correction": "M",
            "mask": 2,
            "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 264 264\" width=\"264\" height=\"264\" shape-rendering=\"crispEdges\"><rect width=\"100%\" height=\"100%\" fill=\"#ffffff\"/><path d=\"M32 32h56v8h-56zM120 32h2…",
            "svg_data_uri": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNjQgMjY0IiB3aWR0aD0iMjY0IiBoZWlnaHQ9IjI2NCIgc2hhcGUtcmVuZGVyaW5nPSJjcmlzcEVkZ2VzIj48cmVjdCB3aWR0aD0iM…",
            "ascii": "█▀▀▀▀▀█    ▀██▄▄█ █▀▀▀▀▀█\n█ ███ █ █ ▄ ▀▄█▄  █ ███ █\n█ ▀▀▀ █ ██ ▀▄▀▄▄▀ █ ▀▀▀ █\n▀▀▀▀▀▀▀ █ █▄▀ █ █ ▀▀▀▀▀▀▀\n█ ▀▀██▀ ▄█▄▀██   ▄▀█▀▀▀▄ \n▀▄▀   ▀▄▄▄ █ ▀███ ▄█ ▀ ▀█\n▄▀ ▄█▀▀▄▀ ▀▀▀█▀▀▄▀▀▄▀▄▀█▀\n█ ▀ ▀▀▀█▀  █▀  █▄…",
            "matrix": [
              "1111111000011100101111111",
              "1000001000001111101000001",
              "1011101010001010001011101"
            ],
            "note": "Scan-tested against an independent decoder. Byte mode, versions 1-10 (up to 26 bytes at this version); keep the quiet-zone margin when printing.",
            "source": "ISO/IEC 18004 QR Code encoder (byte mode)"
          }
        }
      },
      "schema": {
        "$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": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "ec": {
                    "type": "string",
                    "description": "optional error correction L, M (default), Q or H"
                  },
                  "text": {
                    "type": "string",
                    "description": "Text or URL to encode, up to 300 characters"
                  }
                },
                "required": [
                  "text"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "description": "Text content"
                  },
                  "bytes": {
                    "type": "number",
                    "description": "Size in bytes"
                  },
                  "version": {
                    "type": "number",
                    "description": "Version identifier"
                  },
                  "modules": {
                    "type": "number",
                    "description": "Modules per side of the QR symbol"
                  },
                  "error_correction": {
                    "type": "string",
                    "description": "Error correction"
                  },
                  "mask": {
                    "type": "number",
                    "description": "Mask pattern chosen (0 to 7)"
                  },
                  "svg": {
                    "type": "string",
                    "description": "SVG markup of the code"
                  },
                  "svg_data_uri": {
                    "type": "string",
                    "description": "Svg data uri"
                  },
                  "ascii": {
                    "type": "string",
                    "description": "Unicode half-block rendering for terminals"
                  },
                  "matrix": {
                    "type": "array",
                    "description": "Rows of 0 and 1 for each module"
                  },
                  "note": {
                    "type": "string",
                    "description": "Caveat or context for reading the result"
                  },
                  "source": {
                    "type": "string",
                    "description": "Data source the values come from"
                  }
                },
                "required": [
                  "version",
                  "svg",
                  "matrix"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "generate a qr code for a url",
    "qr code svg from text",
    "create qr code image",
    "qr code with error correction",
    "wifi or payment link qr code"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.949Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "ec": {
          "type": "string",
          "description": "optional error correction L, M (default), Q or H"
        },
        "text": {
          "type": "string",
          "description": "Text or URL to encode, up to 300 characters"
        }
      },
      "required": [
        "text"
      ]
    },
    "exampleResponse": {
      "text": "https://example.com/hello",
      "bytes": 25,
      "version": 2,
      "modules": 25,
      "error_correction": "M",
      "mask": 2,
      "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 264 264\" width=\"264\" height=\"264\" shape-rendering=\"crispEdges\"><rect width=\"100%\" height=\"100%\" fill=\"#ffffff\"/><path d=\"M32 32h56v8h-56zM120 32h2…",
      "svg_data_uri": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNjQgMjY0IiB3aWR0aD0iMjY0IiBoZWlnaHQ9IjI2NCIgc2hhcGUtcmVuZGVyaW5nPSJjcmlzcEVkZ2VzIj48cmVjdCB3aWR0aD0iM…",
      "ascii": "█▀▀▀▀▀█    ▀██▄▄█ █▀▀▀▀▀█\n█ ███ █ █ ▄ ▀▄█▄  █ ███ █\n█ ▀▀▀ █ ██ ▀▄▀▄▄▀ █ ▀▀▀ █\n▀▀▀▀▀▀▀ █ █▄▀ █ █ ▀▀▀▀▀▀▀\n█ ▀▀██▀ ▄█▄▀██   ▄▀█▀▀▀▄ \n▀▄▀   ▀▄▄▄ █ ▀███ ▄█ ▀ ▀█\n▄▀ ▄█▀▀▄▀ ▀▀▀█▀▀▄▀▀▄▀▄▀█▀\n█ ▀ ▀▀▀█▀  █▀  █▄…",
      "matrix": [
        "1111111000011100101111111",
        "1000001000001111101000001",
        "1011101010001010001011101"
      ],
      "note": "Scan-tested against an independent decoder. Byte mode, versions 1-10 (up to 26 bytes at this version); keep the quiet-zone margin when printing.",
      "source": "ISO/IEC 18004 QR Code encoder (byte mode)"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "ec": "M",
              "text": "https://example.com/hello"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "text": "https://example.com/hello",
              "bytes": 25,
              "version": 2,
              "modules": 25,
              "error_correction": "M",
              "mask": 2,
              "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 264 264\" width=\"264\" height=\"264\" shape-rendering=\"crispEdges\"><rect width=\"100%\" height=\"100%\" fill=\"#ffffff\"/><path d=\"M32 32h56v8h-56zM120 32h2…",
              "svg_data_uri": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNjQgMjY0IiB3aWR0aD0iMjY0IiBoZWlnaHQ9IjI2NCIgc2hhcGUtcmVuZGVyaW5nPSJjcmlzcEVkZ2VzIj48cmVjdCB3aWR0aD0iM…",
              "ascii": "█▀▀▀▀▀█    ▀██▄▄█ █▀▀▀▀▀█\n█ ███ █ █ ▄ ▀▄█▄  █ ███ █\n█ ▀▀▀ █ ██ ▀▄▀▄▄▀ █ ▀▀▀ █\n▀▀▀▀▀▀▀ █ █▄▀ █ █ ▀▀▀▀▀▀▀\n█ ▀▀██▀ ▄█▄▀██   ▄▀█▀▀▀▄ \n▀▄▀   ▀▄▄▄ █ ▀███ ▄█ ▀ ▀█\n▄▀ ▄█▀▀▄▀ ▀▀▀█▀▀▄▀▀▄▀▄▀█▀\n█ ▀ ▀▀▀█▀  █▀  █▄…",
              "matrix": [
                "1111111000011100101111111",
                "1000001000001111101000001",
                "1011101010001010001011101"
              ],
              "note": "Scan-tested against an independent decoder. Byte mode, versions 1-10 (up to 26 bytes at this version); keep the quiet-zone margin when printing.",
              "source": "ISO/IEC 18004 QR Code encoder (byte mode)"
            }
          }
        },
        "schema": {
          "$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": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "ec": {
                      "type": "string",
                      "description": "optional error correction L, M (default), Q or H"
                    },
                    "text": {
                      "type": "string",
                      "description": "Text or URL to encode, up to 300 characters"
                    }
                  },
                  "required": [
                    "text"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "text": {
                      "type": "string",
                      "description": "Text content"
                    },
                    "bytes": {
                      "type": "number",
                      "description": "Size in bytes"
                    },
                    "version": {
                      "type": "number",
                      "description": "Version identifier"
                    },
                    "modules": {
                      "type": "number",
                      "description": "Modules per side of the QR symbol"
                    },
                    "error_correction": {
                      "type": "string",
                      "description": "Error correction"
                    },
                    "mask": {
                      "type": "number",
                      "description": "Mask pattern chosen (0 to 7)"
                    },
                    "svg": {
                      "type": "string",
                      "description": "SVG markup of the code"
                    },
                    "svg_data_uri": {
                      "type": "string",
                      "description": "Svg data uri"
                    },
                    "ascii": {
                      "type": "string",
                      "description": "Unicode half-block rendering for terminals"
                    },
                    "matrix": {
                      "type": "array",
                      "description": "Rows of 0 and 1 for each module"
                    },
                    "note": {
                      "type": "string",
                      "description": "Caveat or context for reading the result"
                    },
                    "source": {
                      "type": "string",
                      "description": "Data source the values come from"
                    }
                  },
                  "required": [
                    "version",
                    "svg",
                    "matrix"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/tools/qr-code?text=https%3A%2F%2Fexample.com%2Fhello&ec=M",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "text": "string",
    "bytes": 0,
    "version": 0,
    "modules": 0,
    "error_correction": "string",
    "mask": 0,
    "svg": "string",
    "svg_data_uri": "string",
    "ascii": "string",
    "matrix": [
      "value"
    ],
    "note": "string",
    "source": "string"
  }
}