{"uid":"cap_385kl92G5S6E3KJKBJseo","slug":"agenttools-qr-code-generator-eb79259e","name":"AgentTools QR Code Generator","description":"Generate a QR code for any text, URL or crypto address: returns ready-to-embed SVG markup and a data URI, with configurable size and error-correction level. Use this when an agent needs to any text or URL as a QR code (SVG + PNG data URI).","url":"https://agentstoolshub.com/api/v1/live/qr-code?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":{"ec":{"enum":["L","M","Q","H"],"type":"string","description":"Error correction"},"size":{"type":"number","description":"Size (px)"},"text":{"type":"string","description":"Content"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_e9_VC7xAnvkePlZbfHxT7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","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, URL, or crypto address and returns ready-to-embed SVG markup plus a PNG data URI, with configurable size and error-correction level.","exampleAgentPrompt":"Can you generate a QR code for https://myshop.example.com — make it 300px with high (H) error correction, and give me the SVG so I can embed it on a page?","exampleUseCases":[{"title":"QR code for product landing page","prompt":"Create a QR code for https://acmecorp.com/product-launch that's 400px wide with medium error correction — I need the SVG to drop into our printed flyer."},{"title":"Crypto payment address QR code","prompt":"Turn my Bitcoin address bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh into a QR code at 256px with high error correction, and give me both the SVG and the data URI so I can show it in the checkout UI."},{"title":"Wi-Fi credentials QR code","prompt":"Generate a QR code for the string WIFI:S:GuestNetwork;T:WPA;P:supersecret123;; at 200 pixels — I want to print it so guests can join without typing the password."}],"resultDescription":"Returns SVG markup that can be directly embedded in HTML or documents, plus a PNG data URI suitable for use in img tags or downloads. The QR code encodes the provided text/URL at the requested pixel size and error-correction level (L, M, Q, or H).","failureModes":["Missing required 'text' query parameter returns an error","Invalid error correction level value (not L/M/Q/H) causes a validation error","Very long input strings may exceed QR code data capacity and fail to encode","Network timeout or upstream service unavailability returns a 5xx error","Non-numeric size value causes a validation failure"],"whenToPreferThis":"Choose this endpoint when an agent needs to produce a QR code as embeddable SVG or a PNG data URI without requiring a separate image hosting step. It is ideal for inline embedding in web pages, PDFs, or printable documents. Prefer it over image-file-based QR generators when SVG output or a self-contained data URI is needed directly in markup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:50:05.484Z","isFirstParty":false,"canonicalSlug":"agenttools-qr-code-generator-eb79259e"}