{"uid":"cap_OMd243JvpnvFeHin6QRIZ","slug":"agishub-qr-code-generator-45815dc3","name":"AGISHub QR Code Generator","description":"Generate a QR code for any text or URL. Returns an inline SVG plus a data URI, with selectable size, quiet-zone margin and error-correction level.","url":"https://api.agishub.com/v1/qr-generate","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"enum":["http"],"type":"string"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"size":{"type":"integer","maximum":40,"minimum":0,"description":"Pixel size of each QR module/cell in the SVG (default 6).","exclusiveMinimum":true},"text":{"type":"string","minLength":1,"description":"Text or URL to encode in the QR code."},"margin":{"type":"integer","maximum":20,"minimum":0,"description":"Quiet-zone margin around the code, in cells (default 4)."},"ec_level":{"enum":["L","M","Q","H"],"type":"string","description":"Error-correction level: L(7%), M(15%), Q(25%), H(30%). Default M."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"enum":["json"],"type":"string"},"example":{"type":"object"}},"additionalProperties":false}}},"responseSchema":{"type":"json","example":{"result":"Generate a QR code for any text or URL. Returns an inline SVG plus a data URI, with selectable size, quiet-zone margin a"}},"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":null,"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_L1BP5hdGeu0YHbsbDn32x","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 for any text or URL, returning an inline SVG and a data URI with configurable size, margin, and error-correction level.","exampleAgentPrompt":"Can you generate a QR code for https://myshop.example.com — make the cells 8 pixels, use a margin of 5, and set error correction to H so it's robust even if partially covered?","exampleUseCases":[{"title":"QR code for product landing page","prompt":"Generate a QR code for https://acme.com/products/spring-sale, with a cell size of 10 and error correction level Q — I want to print it on flyers and need it to stay scannable even if a corner gets torn."},{"title":"QR code for WiFi credentials sharing","prompt":"Make a QR code for the text 'WIFI:T:WPA;S:GuestNetwork;P:welcome123;;' — use the default size and margin, and set error correction to M so guests can scan it easily off the welcome sign."},{"title":"Embed QR code in email newsletter","prompt":"Create an SVG QR code for https://newsletter.example.com/unsubscribe?uid=abc123 with a cell size of 6 and a quiet-zone margin of 4 — I need the data URI so I can embed it directly in an HTML email."}],"resultDescription":"Returns a JSON object containing an inline SVG string of the QR code and a data URI (base64-encoded image), both ready for direct embedding in HTML, email, or documents. The QR code encodes the provided text or URL at the specified module size, margin, and error-correction level.","failureModes":["Missing required 'text' parameter returns a validation error","'text' value with minLength 0 or empty string is rejected","'size' outside 1–40 range returns a schema validation error","'margin' outside 0–20 range returns a validation error","Invalid 'ec_level' value (not L, M, Q, or H) returns an error","Very long text strings may exceed QR code data capacity for the chosen error-correction level"],"whenToPreferThis":"Choose this endpoint when you need a QR code returned as an inline SVG or data URI ready for embedding in HTML, email templates, or documents without additional image hosting. It is ideal for agents automating marketing materials, onboarding flows, or print assets where the output must be fully self-contained. Prefer this over image-based QR generators when SVG scalability and no external image dependency matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:53:06.947Z","isFirstParty":false}