$ man qr-code-generate
/qr-code-generate
PRICE / CALL
$0.005
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
webprobeCATEGORY
uncategorized
STATUS
● live
NAME
qr-code-generate — generates a qr code from arbitrary text (url, vcard, wifi join string, plain text) and returns it as a base64-encoded png (default) or svg
SYNOPSIS
POST https://x402.agentutility.ai/qr-code-generate
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Generates a QR code from arbitrary text (URL, vCard, WiFi join string, plain text) and returns it as a base64-encoded PNG (default) or SVG. Configurable size (64-1024 px), error correction level (L/M/Q/H), quiet-zone margin, and foreground/background hex colors. Use it as a QR code generator, QR maker, vCard QR, WiFi QR, or URL-to-QR tool with customizable error correction.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| text | string | Text to encode. Any string up to ~4296 chars (alphanumeric). | required |
| format | string | Output image format. Default 'png'. enum: png · svg | optional |
| size | number | Image side length in pixels. Range [64, 1024]. Default 256. | optional |
| error_correction | string | Reed-Solomon error-correction level. L=7%, M=15% (default), Q=25%, H=30% redundancy. enum: L · M · Q · H | optional |
| margin | number | Quiet-zone margin in modules. Range [0, 20]. Default 4. | optional |
| foreground | string | QR module color as 6 or 8-digit hex (e.g. '#000000'). Default '#000000'. | optional |
| background | string | Background color as 6 or 8-digit hex (e.g. '#FFFFFF'). Default '#FFFFFF'. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| format | string | Output image format returned, either "png" (default, base64-encoded) or "svg" (XML markup). |
| size | string | Pixel dimensions of the square QR image (e.g. "256x256"), reflecting the requested size parameter. |
| data_base64 | string | Base64-encoded QR image bytes (PNG) or the raw SVG markup string, depending on the requested format. |
| content_type | string | MIME type of the encoded payload, either image/png or image/svg+xml, for direct embedding or decoding. |
| source | string | Generator identifier, always "qrcode-npm". |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/qr-code-generate \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster npx -y @agentutility/mcp-<cluster> # Required: EVM private key with USDC on Base export X402_PRIVATE_KEY=0x... # Then call the qr-code-generate tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- qr-codeqr-generatorbarcodevcardwifi-qrsvgpngqr-encoder
- methods
- POST
- cluster
- webprobe
- price
- $0.005 USDC per call
ADJACENT — other endpoints in webprobe
| endpoint | description | price |
|---|---|---|
| arxiv-bibtex | Turns an arXiv paper into a BibTeX entry: pulls title, authors, year, abstract, and DOI from the arXiv API and generates a properly-forma… | $0.005 |
| brand-name-score | Scores a candidate brand or startup name on quality and risk. | $0.005 |
| company-name-score | Scores the quality of a company name before you commit to domain, handle, trademark, and launch work. | $0.005 |
| crypto-headlines | Searches recent bitcoin, ethereum, and DeFi headlines via GDELT with a GNews fallback when configured, returning headline URLs, domains,… | $0.005 |
| crypto-news | Fetches recent cryptocurrency news headlines from GDELT with a GNews fallback when configured, filtered by crypto topic or caller query,… | $0.005 |
| disposable-email-check | Detects disposable and throwaway email addresses before they get through your signup form. | $0.005 |
| domain-availability | Checks whether a domain is registered and returns registrar, registration date, expiry date, days_until_expiry, and current EPP status flags. | $0.005 |
| Validates an email address end to end: syntax, MX reachability, disposable/temp-mail domains, role accounts, and SPF/DMARC/DKIM posture. | $0.005 |
SEE ALSO