{"uid":"cap_HpEp8puTcIBW4dIBoC7Vi","slug":"x402-qr-code-generator-327b48bb","name":"x402 QR Code Generator","description":"Generate a QR code as PNG or SVG. Params: data, format (png|svg), size (64-2048), ecc (L|M|Q|H), margin.","url":"https://x402-tools-production-2755.up.railway.app/tools/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":["data"],"properties":{"ecc":{"enum":["L","M","Q","H"],"type":"string"},"data":{"type":"string","description":"Text to encode (max 2000 chars)"},"size":{"type":"string","description":"Width in px, 64-2048"},"format":{"enum":["png","svg"],"type":"string"},"margin":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_hGAcKDxPZ3FOc_9Uq_ubw","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":"Generates a QR code image (PNG or SVG) from any text or URL, with configurable size, error correction, and margin.","exampleAgentPrompt":"Generate a PNG QR code for https://mystore.com/checkout, 512 pixels wide, with high error correction (H) and a small margin.","exampleUseCases":[{"title":"QR code for a product landing page","prompt":"Make a 512px PNG QR code for https://myproduct.com with H error correction so it still scans even if a corner gets damaged."},{"title":"Printable SVG QR code for a business card","prompt":"Can you generate an SVG QR code for my email address hello@acmecorp.com at 300px size with M error correction so I can print it on my business cards?"},{"title":"Wi-Fi password QR code for a coffee shop","prompt":"Create a QR code that encodes the string WIFI:T:WPA;S:CoffeeBeanGuest;P:latte2024;; as a 256px PNG with Q error correction and a margin of 4."}],"resultDescription":"Returns a binary PNG image or SVG text representing the QR code encoding the requested data. The response content-type matches the requested format (image/png or image/svg+xml). The image is ready to embed, download, or display directly.","failureModes":["data parameter exceeds 2000 characters — request rejected","size outside 64–2048 px range — invalid parameter error","unsupported format value (not png or svg) — enum validation error","invalid ecc value (not L/M/Q/H) — validation error","data too complex for chosen size — QR encoding error","network or server timeout on Railway deployment"],"whenToPreferThis":"Use this endpoint when you need a simple, fast, pay-per-call QR code generation without API keys or OAuth setup. It is ideal for agents that need to embed QR codes in documents, emails, or web pages on the fly. Prefer it over self-hosted or heavy libraries when the agent has no local image rendering capability and needs a ready-to-use PNG or SVG in one HTTP call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T18:41:54.707Z","isFirstParty":false,"canonicalSlug":"x402-qr-code-generator-327b48bb"}