{"uid":"cap_zXBEgKlw7S18hhbMCYpg0","slug":"qr-code-svg-generator-f5e33e1b","name":"QR Code SVG Generator","description":"Encode text as a QR code SVG (ISO 18004, versions 1-40, error correction L/M/Q/H, auto mask). No dependencies.","url":"https://barcode-qr.x402tookit.com/qr-svg?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":{"bg":{"type":"string","description":"Light module colour, 6-digit hex (default ffffff)"},"ec":{"type":"string","description":"Error correction level L, M, Q or H (default M)"},"fg":{"type":"string","description":"Dark module colour, 6-digit hex (default 000000)"},"mask":{"type":"integer","description":"Force mask pattern 0 to 7 (default: lowest penalty)"},"mode":{"type":"string","description":"auto (default), numeric, alphanumeric or byte"},"text":{"type":"string","description":"Text or URL to encode (up to 1000 characters)"},"scale":{"type":"integer","description":"Pixels per module for width/height, 1 to 20 (default 0: scalable)"},"border":{"type":"integer","description":"Quiet zone in modules, 0 to 10 (default 4)"},"version":{"type":"integer","description":"Smallest QR version to use, 1 to 40 (default: the smallest that fits)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"svg":{"type":["null","string"]},"asOf":{"type":["null","string"]},"mode":{"type":["null","string"]},"source":{"type":["null","string"]},"ecLevel":{"type":["null","string"]},"modules":{"type":["null","number"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"version":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"svgBytes":{"type":["null","number"]},"characters":{"type":["null","number"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"maskPattern":{"type":["null","number"]},"encodedUnits":{"type":["null","number"]},"penaltyScore":{"type":["null","number"]},"dataCodewords":{"type":["null","number"]},"quietZoneModules":{"type":["null","number"]},"errorCorrectionCodewords":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RuBBajx8orWJIq1JP0SZY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","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 standards-compliant QR code SVG, with full control over error correction, colors, scale, and mask pattern","exampleAgentPrompt":"Generate a QR code SVG for https://myshop.example.com/sale with high error correction (H), dark green modules (#006400) on a white background, and a quiet zone border of 4 modules.","exampleUseCases":[{"title":"Product label QR code for e-commerce","prompt":"Create a QR code SVG for https://store.example.com/product/12345 using H error correction so it still scans even if the label gets a bit scuffed — use black modules on white and keep the border at 4."},{"title":"Event check-in link for printed tickets","prompt":"I need a QR code for our event check-in page https://events.acme.com/checkin/2024 — make it with M error correction, scale each module at 4 pixels, and a border of 2 modules so it fits neatly on the ticket."},{"title":"Branded QR with custom colors for marketing flyer","prompt":"Generate a QR code SVG for https://brand.com/campaign with our brand dark blue modules (#003087) on a light grey background (#F5F5F5), use Q error correction, and make it fully scalable (no fixed pixel size)."}],"resultDescription":"Returns an SVG string encoding the input text as a QR code, along with metadata: the QR version used (1-40), module grid size, mask pattern applied, encoding mode (numeric/alphanumeric/byte/auto), error correction level, number of encoded characters, and SVG byte size. May also include a verdict/summary and any degraded-quality warnings.","failureModes":["Text exceeds maximum capacity for the requested QR version — returns an error or no SVG","Invalid error correction level value (not L/M/Q/H) — likely 400 or default fallback","Scale value outside 1-20 range — rejected or clamped","Border value outside 0-10 range — rejected or clamped","Version outside 1-40 range — rejected","Text empty or missing — required field error","Text too long for any QR version (>~7000 chars at version 40) — capacity exceeded error"],"whenToPreferThis":"Choose this endpoint when you need a standards-compliant ISO 18004 QR code rendered as a clean, dependency-free SVG — especially when you need precise control over error correction level, colors, module scale, quiet zone, or encoding mode. Ideal for server-side generation of embeddable SVGs for web pages, print materials, and product labels. Prefer over raster-image QR generators when scalability and small file size matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-04T13:17:21.095Z","isFirstParty":false,"canonicalSlug":"qr-code-svg-generator-f5e33e1b"}