{"uid":"cap_4nMGoR5ycS0d-TEq-AV8f","slug":"x402-web-tools-qr-code-generator-59175709","name":"x402 Web Tools – QR Code Generator","description":"Encode text or a URL as a QR code: PNG (base64 and a data URL) or SVG, with the size and error correction level you choose.","url":"https://web.kagurazaka.dev/v1/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"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"size":{"type":"integer","description":"width in pixels (64-1024, default 300)"},"text":{"type":"string","description":"what to encode (up to 2000 characters)"},"level":{"enum":["L","M","Q","H"],"type":"string","description":"error correction level (default M)"},"format":{"enum":["png","svg"],"type":"string","description":"image format (default png)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"size":{},"bytes":{},"format":{},"data_url":{},"png_base64":{}}}}}}},"responseSchema":{"type":"json","example":{"size":300,"bytes":1200,"format":"png","data_url":"data:image/png;base64,iVBORw0KGgo...","png_base64":"iVBORw0KGgo..."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QiK6yQ1wXxA9ULGdTVO4D","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes text or a URL as a QR code image returned as PNG (base64 + data URL) or SVG, with configurable size and error correction level.","exampleAgentPrompt":"Can you generate a QR code for https://myshop.example.com — make it 512 pixels wide, SVG format, with high error correction so it's still scannable if part of it gets covered?","exampleUseCases":[{"title":"QR code for event landing page","prompt":"Make a QR code for https://events.mycompany.com/summit2025 — 400 pixels, PNG format, medium error correction — I want to embed it in the event poster."},{"title":"Business card URL QR code","prompt":"Generate a compact 200-pixel QR code for my LinkedIn profile at https://linkedin.com/in/janedoe — SVG format so it scales cleanly when printed on my business cards."},{"title":"Offline wifi password sharing","prompt":"Encode the text WIFI:S:HomeNetwork;T:WPA;P:mysecretpassword;; as a QR code at 300 pixels with H error correction level so guests can scan it even if the printout is a bit crumpled."}],"resultDescription":"A JSON object containing: the image format used (png or svg), the rendered image as base64-encoded PNG (png_base64) and as a ready-to-use data URL (data_url), the size in pixels, and the byte size of the image. For SVG format, the response contains the SVG markup accordingly.","failureModes":["text parameter missing — returns error requiring the text query param","text exceeds 2000 characters — returns error or truncation","size out of range (below 64 or above 1024) — returns validation error","invalid level enum value — returns bad request","payment not provided or invalid — returns HTTP 402 requiring x402 payment"],"whenToPreferThis":"Choose this endpoint when you need a programmatic, pay-per-call QR code generator that returns machine-usable base64 or SVG output (not just a rendered web image), supports configurable size and ISO error correction levels (L/M/Q/H), and fits into an x402 micropayment workflow. Prefer it over browser-based QR generators when the output needs to be embedded inline in HTML, PDF, or other documents.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T06:30:41.006Z","isFirstParty":false,"canonicalSlug":"x402-web-tools-qr-code-generator-59175709"}