GnistAI GnistAI
Log in

QR Code

Generate QR code image URLs via goqr.me — encode text, URLs, or data with customizable size, format, colors, and error correction.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 4 tools tools 4 4 Utilities

Data source: goqr.me (api.qrserver.com)

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/qr-code/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-qr-code": {
      "url": "https://context.gnist.ai/mcp/qr-code/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/qr-code/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "generate_qr_code", "arguments": {"data": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/qr-code/

4 endpoints available:

Shell
curl "https://context.gnist.ai/rest/qr-code/generate_qr_code?data=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/qr-code/generate_qr_code",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "data": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc qr-code

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (4)

generate_qr_code
Generate a QR code URL for the given text or URL.
ParameterTypeRequiredDescription
datastringrequiredThe text or URL to encode in the QR code.
sizeintegeroptionalImage size in pixels (10-1000). (default: 200)
formatstringoptionalImage format: png, gif, jpeg, svg, eps. (default: "png")
error_correctionstringoptionalError correction level: L, M, Q, H. (default: "M")
colorstringoptionalQR code color as hex (e.g. 000000 for black). (default: "000000")
bg_colorstringoptionalBackground color as hex (e.g. ffffff for white). (default: "ffffff")
list_qr_formats
List supported QR code image formats.
list_qr_error_correction_levels
List available QR code error correction levels.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related