{"uid":"cap_TTskwDysio46sRNTO1u_v","slug":"x402-tools-qr-code-generator-5b1e8327","name":"x402-tools QR Code Generator","description":"Pay-per-call utility APIs for AI agents, settled in USDC via the x402 protocol.","url":"https://x402.nichospt.net/qr-code?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":2000,"description":"Text/URL to encode"},"format":{"enum":["svg","dataurl"],"type":"string","default":"svg"},"margin":{"type":"integer","default":4,"maximum":10,"minimum":0},"error_correction":{"enum":["L","M","Q","H"],"type":"string","default":"M"}}},"responseSchema":{"type":"json","example":{"qr":"<svg xmlns=\"http://www.w3.org/2000/svg\" ...>","format":"svg"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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":{"p10Cents":"1.0000","medianCents":"1.0000","p90Cents":"1.0000","minCents":"1.0000","maxCents":"1.0000","p95Cents":"1.0000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6FwUhd66cjy8yUiapvMrA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a QR code (SVG or data URL) from any text or URL, paid per-call in USDC via x402.","exampleAgentPrompt":"Can you generate a QR code for https://myshop.com/checkout as an SVG with high error correction and a margin of 2?","exampleUseCases":null,"resultDescription":"A JSON object containing the generated QR code in the requested format — either raw SVG markup (e.g. <svg xmlns=...>) or a base64 data URL — plus a 'format' field confirming which was returned.","failureModes":["Text exceeds 2000 character limit — input too large error","Invalid format enum value — must be 'svg' or 'dataurl'","Margin out of range — must be 0–10","Invalid error_correction value — must be L, M, Q, or H","Payment not settled — 402 response if x402 USDC payment is not completed","Network timeout or server error — 5xx response"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to programmatically produce a QR code from any text or URL with control over format, margin, and error correction level, and is operating in an x402-enabled payment environment that can settle $0.01 USDC per call. Prefer this over self-hosted QR generation when you need a simple pay-per-use model without infrastructure overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:34:02.296Z","isFirstParty":false,"canonicalSlug":"x402-tools-qr-code-generator-5b1e8327"}