{"uid":"cap_76Z7AgAfk4r2B3SwiefsE","slug":"aayat-ai-qr-code-generator-f10daa3c","name":"Aayat AI QR Code Generator","description":"Turn text or a link into a QR code. Pass ?text=https://example.com. Returns a crisp SVG image and a data: URL you can drop into HTML or Markdown. Options: ecc (error correction L, M, Q, H), size in pixels, margin, dark and light colours (#hex). Up to 2,000 characters.","url":"https://aayatai.com/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":{"ecc":{"enum":["L","M","Q","H"],"type":"string","default":"M","description":"Error correction: L (7%), M (15%), Q (25%), H (30%)."},"dark":{"type":"string","default":"#000000","maxLength":7,"description":"Colour of the squares, #hex."},"size":{"type":"integer","default":512,"maximum":2048,"minimum":64,"description":"Image width/height in pixels."},"text":{"type":"string","maxLength":2000,"minLength":1,"description":"Text or URL to encode."},"light":{"type":"string","default":"#ffffff","maxLength":7,"description":"Background colour, #hex."},"margin":{"type":"integer","default":4,"maximum":16,"minimum":0,"description":"Quiet zone around the code, in squares."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["svg","dataUrl","modules","version","ecc"],"properties":{"ecc":{"type":"string"},"svg":{"type":"string","description":"SVG image markup."},"dataUrl":{"type":"string","description":"The SVG as a base64 data: URL."},"modules":{"type":"integer","description":"Squares per side (without margin)."},"version":{"type":"integer","description":"QR version 1-40."}}}}}}},"responseSchema":{"type":"json","example":{"ecc":"M","svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 33 33\" width=\"256\" height=\"256\">…</svg>","dataUrl":"data:image/svg+xml;base64,PHN2Zy…","modules":25,"version":2}},"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_IuWJgLA_X4-7o5SNL1Epg","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 SVG (and base64 data URL) from any text or URL, with configurable size, colors, margin, and error correction level","exampleAgentPrompt":"Can you generate a QR code SVG for https://example.com at 512 pixels with high error correction and a dark blue (#003366) color on a white background?","exampleUseCases":[{"title":"QR code for business card URL","prompt":"Make me a QR code for my website https://myportfolio.dev — 400 pixels wide, dark color #1a1a1a, white background, and use high error correction so it still scans if part of it gets worn away."},{"title":"Encode crypto wallet address","prompt":"Generate a QR code for this Bitcoin address bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh — 512 pixels, standard M error correction, and keep the default black and white colors."},{"title":"Wi-Fi password as scannable code","prompt":"Create a QR code that encodes the text WIFI:T:WPA;S:MyHomeNetwork;P:supersecret123;; — 256 pixels, dark green squares (#2d6a2d) on a light grey (#f0f0f0) background, margin of 2 squares."}],"resultDescription":"Returns a JSON object containing the QR code as an SVG string (ready to embed in HTML), a base64 data URL of the same SVG, the number of modules (squares per side, excluding margin), and the QR version number (1-40) and error correction level used.","failureModes":["Missing required 'text' query parameter returns an error","Text exceeding 2000 characters is rejected","Invalid hex color format for dark/light colors causes a validation error","Size outside the 64-2048 pixel range is rejected","Margin outside the 0-16 range is rejected","Payment not settled via x402 before the call may result in a 402 response"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-use QR code generator with no account or API key, accepting USDC micropayments via x402 on Base or Solana. Ideal for agents that need to generate QR codes occasionally without a subscription, or when you need SVG output (infinitely scalable vector format) with fine-grained control over colors, margin, and error correction level.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T02:41:56.257Z","isFirstParty":false,"canonicalSlug":"aayat-ai-qr-code-generator-f10daa3c"}