{"uid":"cap_3y4R2p8EL0qajX1Ewk_kI","slug":"agentsvc-io-qr-code-generator-55a69490","name":"agentsvc.io QR Code Generator","description":"Generate a QR code for any text or URL. Returns image_base64 (base64 PNG; decode to get raw bytes). Params: text (required), size in px (64-1024, default 256), error_correction (L/M/Q/H, default M). H = highest redundancy, survives up to 30% damage.","url":"https://agentsvc.io/api/v1/proxy/qr-code?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"size":{"type":"integer","default":256,"description":"Output image size in pixels (width and height). Min: 64, Max: 1024."},"text":{"type":"string","description":"The text or URL to encode in the QR code"},"error_correction":{"enum":["L","M","Q","H"],"type":"string","default":"M","description":"Error correction level: L=7%, M=15%, Q=25%, H=30% data recovery. Higher = bigger QR code."}}},"responseSchema":{"type":"json","example":{"data":{"text":"https://agentsvc.io","width":256,"height":256,"generated_at":"2026-04-07T12:00:00.000Z","image_base64":"iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAA..."},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"1.00","reviews":0,"stars":null,"state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uUyymd8oYHeO7bHoiusRX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","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 image from text or a URL, returning a base64-encoded PNG","exampleAgentPrompt":"Can you generate a QR code for https://mystore.com/sale — make it 512 pixels wide and use high error correction (H level) so it's more durable?","exampleUseCases":[{"title":"Event check-in QR code","prompt":"Generate a QR code for https://eventbrite.com/e/my-event-123 at 400 pixels with medium error correction — I need to print it on the check-in flyers."},{"title":"Business card URL QR code","prompt":"Make a QR code for my portfolio site https://janesmith.dev — 256 pixels, and use the highest error correction level H so it still scans if it gets a little worn."},{"title":"Wi-Fi or contact info sharing","prompt":"Create a QR code encoding the text 'WIFI:T:WPA;S:MyHomeNetwork;P:hunter2hunter2;;' at 300 pixels with Q error correction so people can scan it to join my Wi-Fi."}],"resultDescription":"Returns a JSON object containing the original text, image width and height in pixels, a UTC generation timestamp, and a base64-encoded PNG string of the QR code image ready for embedding in HTML or decoding to a file.","failureModes":["Text input missing — returns validation error","Size outside allowed 64–1024 pixel range — returns error","Invalid error_correction value — returns validation error","Text too long for selected size and error correction level — may return error or degraded QR","Network timeout — no response returned"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to generate a QR code on demand without maintaining an API key or account. Ideal for single-call, pay-per-use workflows using USDC on Base via x402. It returns a base64 image directly, making it easy to embed in documents, emails, or web pages without an intermediate file storage step.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-10-26T04:02:38.237Z","lastSuccessfullyRanAt":"2026-10-26T04:02:38.237Z","lastHealthCheckAt":"2026-12-03T22:58:54.906Z","isFirstParty":false,"canonicalSlug":"agentsvc-io-qr-code-generator-55a69490"}