{"uid":"cap_lgvUTc9mpSCsMqBLJB5mz","slug":"zeroclick-x402-service-registry-qr-code-generator-8f36fce6","name":"QR Code Generator","description":"Generate QR codes from text, URLs, or any string data. Returns clean SVG output with a base64 data URL for easy embedding. Pure computation — no external API calls.","url":"https://qr.withzero.ai/run?utm_source=zero.xyz","method":"POST","headers":{"X-ZAM-Access-Key":"zeroclick"},"bodySchema":{"type":"object","required":["data"],"properties":{"data":{"type":"string","maxLength":4296,"minLength":1,"description":"The text, URL, or string to encode as a QR code"},"size":{"type":"integer","default":256,"maximum":2048,"minimum":32,"description":"Pixel size of the SVG viewBox (default: 256)"},"format":{"enum":["svg","ascii"],"type":"string","default":"svg","description":"Output format: \"svg\" (default) returns SVG + base64 data URL, \"ascii\" returns a Unicode block-character text rendering"},"errorCorrection":{"enum":["L","M","Q","H"],"type":"string","default":"M","description":"Error correction level: L (7%), M (15%), Q (25%), H (30%). Default: M"}},"additionalProperties":false},"responseSchema":{"type":"object","required":["svg","dataUrl","ascii","moduleCount"],"properties":{"svg":{"type":"string","description":"The SVG markup string (empty when format is \"ascii\")"},"ascii":{"type":"string","description":"Unicode block-character rendering of the QR code (empty when format is \"svg\")"},"dataUrl":{"type":"string","description":"Data URL (data:image/svg+xml;base64,...) for easy embedding (empty when format is \"ascii\")"},"moduleCount":{"type":"number","description":"Number of modules (squares) per side in the QR code"}},"additionalProperties":false},"example":{"request":{"data":"https://example.com","size":256,"format":"svg","errorCorrection":"M"},"response":{"_truncated":true,"_originalSize":72242}},"exampleRequest":{"data":"https://example.com","size":256,"format":"svg","errorCorrection":"M"},"tags":["utility","qr","qrcode","barcode","generate","image"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":2,"rating":{"score":"0.96","successRate":"1.00","reviews":2,"stars":"4.8","state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_r7U0ItNdBN_GjVVt0LHJr","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x20C000000000000000000000b9537d11c60E8b50","unit":"request","depositMicros":null,"planRef":"qr-code:1"}],"brandName":"ZeroClick x402 Service Registry","brandSlug":"zeroclick-x402-service-registry","brandBaseUrl":"https://withzero.ai","brandDocsUrl":null,"whatItDoes":"Generates a QR code from any text or URL, returning SVG markup and a base64 data URL for embedding, or a Unicode ASCII rendering.","exampleAgentPrompt":"Generate a QR code for 'https://myshop.example.com/sale' at 512px, SVG format with high error correction (H), so I can embed it on a webpage.","exampleUseCases":[{"title":"Embed scannable code in email campaigns","prompt":"Create a QR code for our seasonal sale landing page at https://promo.example.com/summer2024 in SVG format so I can drop it directly into our HTML email template."},{"title":"Generate Wi-Fi access credentials instantly","prompt":"Make a QR code from this Wi-Fi connection string: WIFI:T:WPA;S:GuestNetwork;P:TempPass123!; use high error correction so it scans reliably even if partially obscured."},{"title":"Produce contact sharing code for events","prompt":"Turn this vCard contact into a QR code: BEGIN:VCARD\\nFN:Sarah Chen\\nTEL:+1-555-0123\\nEMAIL:sarah@company.com\\nEND:VCARD—I need the ASCII version so I can display it in terminal logs."}],"resultDescription":"Returns an object with: 'svg' (the full SVG markup string), 'dataUrl' (a data:image/svg+xml;base64,... string ready to drop into an <img> src), 'ascii' (Unicode block-character rendering), and 'moduleCount' (number of QR modules per side). SVG and dataUrl are populated when format is 'svg'; ascii is populated when format is 'ascii'.","failureModes":["Input 'data' field is empty or missing — returns validation error","Input string exceeds 4296 characters — returns error for data too long","Size out of range (below 32 or above 2048) — validation error","Invalid enum value for format or errorCorrection — validation error"],"whenToPreferThis":"Choose this endpoint when you need a pure-computation, serverless QR code with no external API dependencies, especially when you want an embeddable SVG/base64 output or a Unicode ASCII preview. Ideal for agents generating QR codes on the fly to embed in HTML, emails, or documents without needing a third-party QR service.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":8,"lastUsedAt":"2026-07-09T09:42:15.742Z","lastSuccessfullyRanAt":"2026-07-09T09:42:15.742Z","lastHealthCheckAt":"2026-10-11T04:29:45.495Z","isFirstParty":true,"canonicalSlug":"zeroclick-x402-service-registry-qr-code-generator-8f36fce6"}