{"uid":"cap_Ms5o47lUfunzhNk7cj1eN","slug":"nojunk-qr-fd128b26","name":"NoJunk QR","description":"QR Code Generator qr: Encode one text as a QR Code (ISO/IEC 18004, versions 1-40, ECC L/M/Q/H) and return it as SVG, PNG or a JSON matrix.","url":"https://nojunk-qr.mick8511.workers.dev/qr?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ecc":{"type":"string","description":"Optional: error correction level L (7%), M (15%, default), Q (25%) or H (30%); higher levels survive more damage but hold less text"},"dark":{"type":"string","description":"Optional: hex color of the dark modules (default #000000)"},"size":{"type":"integer","description":"Optional: output width/height in pixels, 128-2048 (default 512); SVG scales freely, PNG uses whole pixels per module centred in the image"},"text":{"type":"string","description":"The content to encode (1-1500 characters, UTF-8): URL, plain text, WIFI:..., mailto:, tel:, vCard, payment URI..."},"light":{"type":"string","description":"Optional: hex color of the background (default #FFFFFF)"},"format":{"type":"string","description":"Optional: \"svg\" (default; body is the SVG document), \"png\" (body is PNG bytes) or \"json\" ({version, ecc, modules, matrix, svg})"},"margin":{"type":"integer","description":"Optional: quiet zone in modules, 0-8 (default 4; the standard recommends 4)"}}},"responseSchema":{"type":"json","example":{"ecc":"M","svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"256\" height=\"256\" viewBox=\"0 0 37 37\" shape-rendering=\"crispEdges\" role=\"img\"><rect width=\"37\" height=\"37\" fill=\"#FFFFFF\"/><path d=\"M4 4h7v1h-7zM13 4h1v1h-1zM15 4h1v1h-1zM18 4h1v1h-1zM21 4h3v1h-3zM26 4h7v1h-7zM4 5h1v1h-1zM10 5h1v1h-1zM16 5h1v1h-1zM20 5h1v1h-1zM22 5h1v1h-1zM24 5h1v1h-1zM26 5h1v1h-1zM32 5h1v1h-1zM4 6h1v1h-1zM6 6h3v1h-3zM10 6h1v1h-1zM13 6h3v1h-3zM18 6h2v1h-2zM21 6h1v1h-1zM23 6h1v1h-1zM26 6h1v1h-1zM28 6h3v1h-3zM32 6h1v1h-1zM4 7h1v1h-1zM6 7h3v1h-3zM10 7h1v1h-1zM14 7h4v1h-4zM22 7h2v1h-2zM26 7h1v1h-1zM28 7h3v1h-3zM32 7h1v1h-1zM4 8h1v1h-1zM6 8h3v1h-3zM10 8h1v1h-1zM13 8h1v1h-1zM16 8h1v1h-1zM21 8h2v1h-2zM26 8h1v1h-1zM28 8h3v1h-3zM32 8h1v1h-1zM4 9h1v1h-1zM10 9h1v1h-1zM12 9h1v1h-1zM16 9h1v1h-1zM19 9h1v1h-1zM22 9h3v1h-3zM26 9h1v1h-1zM32 9h1v1h-1zM4 10h7v1h-7zM12 10h1v1h-1zM14 10h1v1h-1zM16 10h1v1h-1zM18 10h1v1h-1zM20 10h1v1h-1zM22 10h1v1h-1zM24 10h1v1h-1zM26 10h7v1h-7zM14 11h4v1h-4zM19 11h1v1h-1zM21 11h4v1h-4zM4 12h1v1h-1zM7 12h1v1h-1zM9 12h2v1h-2zM12 12h1v1h-1zM14 12h1v1h-1zM16 12h1v1h-1zM18 12h1v1h-1zM22 12h2v1h-2zM25 12h1v1h-1zM27 12h1v1h-1zM4 13h1v1h-1zM6 13h3v1h-3zM11 13h1v1h-1zM15 13h1v1h-1zM17 13h1v1h-1zM20 13h1v1h-1zM25 13h2v1h-2zM29 13h1v1h-1zM32 13h1v1h-1zM6 14h1v1h-1zM9 14h3v1h-3zM17 14h2v1h-2zM21 14h1v1h-1zM23 14h1v1h-1zM25 14h7v1h-7zM4 15h3v1h-3zM9 15h1v1h-1zM11 15h2v1h-2zM14 15h2v1h-2zM17 15h1v1h-1zM20 15h1v1h-1zM22 15h1v1h-1zM25 15h3v1h-3zM30 15h2v1h-2zM4 16h3v1h-3zM10 16h1v1h-1zM13 16h3v1h-3zM18 16h10v1h-10zM29 16h1v1h-1zM31 16h2v1h-2zM4 17h1v1h-1zM7 17h2v1h-2zM11 17h1v1h-1zM14 17h1v1h-1zM16 17h3v1h-3zM22 17h4v1h-4zM5 18h2v1h-2zM9 18h2v1h-2zM15 18h1v1h-1zM17 18h2v1h-2zM27 18h1v1h-1zM29 18h4v1h-4zM7 19h1v1h-1zM11 19h3v1h-3zM16 19h1v1h-1zM19 19h6v1h-6zM26 19h4v1h-4zM31 19h1v1h-1zM8 20h1v1h-1zM10 20h1v1h-1zM14 20h4v1h-4zM21 20h1v1h-1zM23 20h1v1h-1zM25 20h1v1h-1zM31 20h1v1h-1zM7 21h2v1h-2zM11 21h3v1h-3zM16 21h3v1h-3zM20 21h1v1h-1zM22 21h1v1h-1zM25 21h3v1h-3zM29 21h1v1h-1zM32 21h1v1h-1zM4 22h1v1h-1zM6 22h2v1h-2zM9 22h2v1h-2zM16 22h1v1h-1zM18 22h1v1h-1zM21 22h2v1h-2zM24 22h1v1h-1zM26 22h2v1h-2zM31 22h2v1h-2zM6 23h2v1h-2zM11 23h2v1h-2zM15 23h1v1h-1zM18 23h1v1h-1zM21 23h1v1h-1zM28 23h1v1h-1zM31 23h2v1h-2zM4 24h1v1h-1zM7 24h1v1h-1zM10 24h2v1h-2zM13 24h2v1h-2zM20 24h1v1h-1zM24 24h5v1h-5zM30 24h1v1h-1zM12 25h1v1h-1zM14 25h2v1h-2zM18 25h1v1h-1zM20 25h2v1h-2zM24 25h1v1h-1zM28 25h1v1h-1zM30 25h3v1h-3zM4 26h7v1h-7zM15 26h2v1h-2zM20 26h1v1h-1zM24 26h1v1h-1zM26 26h1v1h-1zM28 26h1v1h-1zM31 26h1v1h-1zM4 27h1v1h-1zM10 27h1v1h-1zM12 27h1v1h-1zM15 27h1v1h-1zM18 27h2v1h-2zM22 27h1v1h-1zM24 27h1v1h-1zM28 27h3v1h-3zM32 27h1v1h-1zM4 28h1v1h-1zM6 28h3v1h-3zM10 28h1v1h-1zM13 28h3v1h-3zM20 28h2v1h-2zM24 28h5v1h-5zM32 28h1v1h-1zM4 29h1v1h-1zM6 29h3v1h-3zM10 29h1v1h-1zM12 29h1v1h-1zM14 29h2v1h-2zM21 29h1v1h-1zM23 29h1v1h-1zM26 29h6v1h-6zM4 30h1v1h-1zM6 30h3v1h-3zM10 30h1v1h-1zM13 30h3v1h-3zM24 30h2v1h-2zM28 30h3v1h-3zM32 30h1v1h-1zM4 31h1v1h-1zM10 31h1v1h-1zM15 31h1v1h-1zM18 31h4v1h-4zM24 31h2v1h-2zM27 31h2v1h-2zM31 31h1v1h-1zM4 32h7v1h-7zM12 32h1v1h-1zM14 32h1v1h-1zM16 32h1v1h-1zM19 32h4v1h-4zM24 32h1v1h-1zM26 32h2v1h-2zM29 32h1v1h-1zM31 32h1v1h-1z\" fill=\"#000000\"/></svg>","mask":7,"mode":"byte","matrix":["11111110010100100111001111111","10000010000010001010101000001","10111010011100110101001011101","10111010001111000011001011101","10111010010010000110001011101","10000010100010010011101000001","11111110101010101010101111111","00000000001111010111100000000","10010110101010100011010100000","10111001000101001000011001001","00100111000001100101011111110","11100101101101001010011100110","11100010011100111111111101011","10011001001011100011110000000","01100110000101100000000101111","00010001110010011111101111010","00001010001111000101010000010","00011001110011101010011101001","10110110000010100110101100011","00110001100100100100000010011","10010011011000001000111110100","00000000101100101100100010111","11111110000110001000101010010","10000010100100110010100011101","10111010011100001100111110001","10111010101100000101001111110","10111010011100000000110011101","10000010000100111100110110010","11111110101010011110101101010"],"modules":29,"version":3}},"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_Mf9siC9UPRpygDX7oZC1y","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 standards-compliant QR codes from text, URLs, Wi-Fi strings, or payment URIs, returning SVG, PNG, or JSON module matrix output.","exampleAgentPrompt":"Generate a QR code for https://myshop.example.com as a crisp SVG with H error correction and a dark color of #1A237E — I want to print it on packaging.","exampleUseCases":[{"title":"Wi-Fi guest network QR code","prompt":"Create a QR code for my guest Wi-Fi — the network is 'CafeGuest', password is 'sunshine2024', it's WPA2 — output it as an SVG so I can print it and stick it on the counter."},{"title":"Crypto payment QR for checkout","prompt":"Generate a QR code from this payment URI: 'ethereum:0xABC123...?amount=0.05' — use Q error correction and give it back as a PNG at 1024 pixels so I can display it on a payment terminal screen."},{"title":"Batch event ticket QR codes","prompt":"I need QR codes for 20 event ticket IDs — can you batch generate them all in one go as SVGs with M error correction so I can print them on the tickets?"}],"resultDescription":"Returns either a raw SVG document, PNG image bytes, or a JSON object containing the QR version, ECC level, module count, module matrix array, and an embedded SVG — depending on the requested format. Only charged when a valid QR code is successfully produced.","failureModes":["Text exceeds 1500 characters — request rejected","Invalid hex color format for dark/light parameters","Size parameter outside 128-2048 range — validation error","Margin outside 0-8 range — validation error","Invalid ECC value (must be L, M, Q, or H)","Batch exceeds 25 codes — request rejected","Empty or missing text field — encoding fails","Unsupported format value — defaults or errors depending on implementation"],"whenToPreferThis":"Choose this endpoint when you need a fully self-contained, pay-per-call QR code generator with no upstream dependencies, supporting the full ISO/IEC 18004 standard (versions 1-40, all ECC levels), flexible output formats (SVG, PNG, JSON), custom colors, and batch generation up to 25 codes — especially when you want crisp SVG output for print or need a JSON matrix for custom rendering.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-03T18:34:25.064Z","isFirstParty":false,"canonicalSlug":"nojunk-qr-fd128b26"}