{"uid":"cap_5wdRwhSLJ974_KAGbELhi","slug":"qr-code-generator-2a03c012","name":"QR Code Generator","description":"Generate a QR code for any text, URL, wallet address or payment link as SVG or PNG, returned inline as SVG markup and a base64 data URI ready for HTML or chat. Choose size, border and error correction. Use when a user needs a scannable code for a link, Wi-Fi, contact or crypto payment.","url":"https://bess-x402.onrender.com/v1/util/qr?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["data"],"properties":{"data":{"type":"string","description":"Text to encode, max 2000 characters"},"size":{"type":"integer","description":"Pixels per module 1-40, default 10"},"border":{"type":"integer","description":"Quiet-zone modules 0-10, default 4"},"format":{"enum":["svg","png"],"type":"string","description":"svg or png"},"error_correction":{"enum":["L","M","Q","H"],"type":"string","description":"L, M, Q or H"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GuUIex5XwXby6RvIcL6yE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a QR code for any text, URL, wallet address, or payment link as SVG or PNG, returned inline as SVG markup and a base64 data URI","exampleAgentPrompt":"Can you generate a QR code for https://myshop.com/pay in PNG format with high error correction (H) and a size of 12 pixels per module?","exampleUseCases":[{"title":"Crypto payment QR for checkout","prompt":"Generate a QR code for this Bitcoin wallet address bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh as an SVG with high error correction so I can put it on my invoice."},{"title":"Wi-Fi credentials sharing","prompt":"Make a QR code for my guest Wi-Fi — encode the text WIFI:T:WPA;S:GuestNetwork;P:password123;; — use PNG format, size 15, and a quiet-zone border of 4."},{"title":"Event landing page link","prompt":"I need a scannable QR code for https://events.mycompany.com/conf2025 to print on flyers — give me a large PNG at size 20 with H error correction so it still scans if part of it gets damaged."}],"resultDescription":"Returns both inline SVG markup and a base64-encoded PNG data URI of the generated QR code, ready to embed directly in HTML, chat interfaces, or documents. The response includes the encoded data and the chosen format output so the agent can display or pass the QR code downstream without additional processing.","failureModes":["Input data exceeds 2000 characters — request rejected","Invalid size value outside 1-40 range — parameter error","Invalid border value outside 0-10 range — parameter error","Unsupported format value other than svg/png — parameter error","Invalid error_correction value other than L/M/Q/H — parameter error","Missing required 'data' query parameter — 400 error","Service temporarily unavailable on Render cold start — timeout or 503"],"whenToPreferThis":"Choose this endpoint when you need a quick, inline QR code with no additional processing — it returns both SVG markup and a base64 data URI ready to drop into HTML or a chat message without any image hosting step. Ideal for encoding URLs, crypto wallet addresses, payment links, Wi-Fi credentials, or plain text into a scannable code. Prefer it over client-side libraries when the agent cannot run JavaScript, or over image-generation APIs when you specifically need a QR code rather than a decorative image.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:10:52.446Z","isFirstParty":false,"canonicalSlug":"qr-code-generator-2a03c012"}