{"uid":"cap_azwnBmZOUc2N5QXIZbwZ5","slug":"agishub-qr-code-generator-a6e78c7a","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/paid/qr-generate","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"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},"type":{"enum":["http"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"enum":["json"],"type":"string"},"example":{"type":"object"}},"additionalProperties":false}}},"responseSchema":null,"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_P0CJtdFaBELAkO0x_xeTy","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 data URI with configurable size, margin, and error-correction level.","exampleAgentPrompt":"Can you generate a QR code for https://myshop.com/sale — use high error correction (H level), a module size of 8, and a margin of 4 cells?","exampleUseCases":[{"title":"QR code for restaurant menu","prompt":"Generate a QR code for https://tavernabianca.com/menu with high error correction so it scans even if it gets a bit worn — module size 6 and a quiet margin of 4 cells."},{"title":"Business card contact link","prompt":"Make a QR code for https://linkedin.com/in/jane-doe that's large enough for print — use a module size of 10, margin of 5, and Q-level error correction."},{"title":"Event registration URL","prompt":"Create a QR code encoding the text 'Join our event at https://events.example.com/2025-summit' — keep it compact with size 5 modules, margin 3, and M error correction."}],"resultDescription":"Returns a JSON object containing an inline SVG string of the QR code and a data URI (base64-encoded image), ready to embed in HTML or download, encoded with the specified text, module size, margin, and error-correction level.","failureModes":["Missing 'text' query parameter returns a 400 error","Module size or margin values outside allowed ranges (size 1-40, margin 0-20) return a validation error","Empty string for 'text' fails minLength validation","Invalid ec_level value not in [L, M, Q, H] returns a validation error"],"whenToPreferThis":"Choose this endpoint when you need a fast, server-side QR code generated as an SVG (scalable, resolution-independent) plus a data URI — especially when you need fine control over error-correction level, module pixel size, and quiet-zone margin. Prefer this over client-side libraries when generating QR codes in a headless or agent workflow without browser access.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:50:06.332Z","isFirstParty":false}