{"uid":"cap_VqVovraCrKEoI45QLx7mx","slug":"x402-web-tools-qr-code-generator-db4e27da","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://q7w9tnp09rjt5ccj.68r.lambda-web.us-east-1.on.aws/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_l3g84uO99ccfLTmNc0hEG","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 any text or URL as a QR code image, returning PNG (base64 + data URL) or SVG at a chosen size and error correction level.","exampleAgentPrompt":"Can you generate a QR code for https://example.com/signup as a 400-pixel PNG with high error correction so it still scans if printed small?","exampleUseCases":[{"title":"QR code for a landing page","prompt":"Make me a QR code for https://mystore.com/sale as a 300-pixel PNG — I want to print it on flyers so use high error correction level H."},{"title":"Embed QR code in an email template","prompt":"Generate an SVG QR code for the text 'Join our webinar at zoom.us/j/123456789' at 256 pixels with medium error correction so I can drop it straight into an HTML email."},{"title":"Wi-Fi credentials as QR code","prompt":"Create a QR code that encodes 'WIFI:T:WPA;S:GuestNetwork;P:welcome2024;;' — give it to me as a PNG data URL at 512 pixels with Q-level error correction so guests can scan it off a laminated card."}],"resultDescription":"A JSON object containing the image format (png or svg), the output size in pixels, the file size in bytes, the raw base64-encoded PNG string (png_base64), and a ready-to-use data URL (data_url) for inline embedding. SVG responses return the SVG markup instead of base64.","failureModes":["text parameter missing or empty — required field not provided","text exceeds 2000 characters — payload too large for QR encoding","size outside 64–1024 range — validation error returned","invalid format or level enum value — rejected with bad request","network timeout on the Lambda backend — transient 5xx error","payment not received (402) — x402 micropayment required before response is served"],"whenToPreferThis":"Choose this endpoint when you need a programmatic, on-demand QR code as an embeddable image (data URL or SVG) without setting up a dedicated QR library — especially inside an agent workflow that already uses x402 micropayments. It is ideal for single-call generation where you need both base64 and a data URL in one response, and when format (PNG vs SVG) and error correction level matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:36:12.988Z","isFirstParty":false,"canonicalSlug":"x402-web-tools-qr-code-generator-db4e27da"}