{"uid":"cap_4i2qhtDV-d-ONeMokn2mb","slug":"agentutility-qr-code-generator-6471942a","name":"AgentUtility QR Code Generator","description":"Generates PNG or SVG QR codes from text, URLs, vCards, WiFi strings, and plain text with configurable size, margin, colors, and error correction. Use it as a QR generator API, create-QR-code endpoint, text-to-QR, or link QR generator.","url":"https://x402.agentutility.ai/qr-generator","method":"POST","headers":{},"bodySchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"properties":{"text":{"type":"string","description":"Text to encode. Any string up to ~4296 chars."},"format":{"type":"string","enum":["png","svg"],"description":"Output image format. Default 'png'."},"size":{"type":"number","description":"Image side length in pixels. Range [64, 1024]. Default 256."},"error_correction":{"type":"string","enum":["L","M","Q","H"],"description":"Reed-Solomon error-correction level."},"margin":{"type":"number","description":"Quiet-zone margin in modules. Range [0, 20]. Default 4."},"foreground":{"type":"string","description":"QR module color as 6 or 8-digit hex."},"background":{"type":"string","description":"Background color as 6 or 8-digit hex."}},"required":["text"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"format":{"type":"string"},"size":{"type":"integer"},"content_type":{"type":"string"}}}},"required":["type"]}},"required":["input"]},"responseSchema":{"type":"json","example":{"size":256,"format":"png","content_type":"image/png"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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_IcfREEurdPtUo3h-kwCMJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates PNG or SVG QR codes from URLs, text, vCards, WiFi strings, and plain text with configurable size, margin, colors, and error correction level","exampleAgentPrompt":"Generate a QR code for https://morningbloom.coffee as a PNG, 300px, with a dark green foreground on white background and high error correction — I need it for our new loyalty card flyers.","exampleUseCases":[{"title":"Business card vCard QR code","prompt":"Make a QR code from this vCard string for my business card: 'BEGIN:VCARD\\nVERSION:3.0\\nFN:Jane Smith\\nORG:Acme Corp\\nTEL:555-1234\\nEMAIL:jane@acme.com\\nEND:VCARD' — output it as a 400px SVG with black on white and the highest error correction level."},{"title":"WiFi network sharing QR code","prompt":"Generate a QR code for my home WiFi — the network is 'CasaDelMar', password is 'Sunshine2024!', WPA2 security — make it 250px PNG so guests can scan it easily."},{"title":"Marketing URL QR code for print","prompt":"Create a QR code for https://sale.mystore.com/summer — SVG format, 500px, dark navy foreground (#002366) on a cream background (#FFFDD0), high error correction so it still scans if part of it gets smudged on our printed posters."}],"resultDescription":"Returns a QR code image file (PNG binary or SVG markup) encoding the provided input data, rendered at the specified size and colors with the requested error correction level","failureModes":["Invalid or malformed input data results in encoding error","Unsupported output format string returns validation error","Size or margin values out of acceptable range return parameter error","Invalid hex color codes cause rendering failure","Payment failure (insufficient USDC balance) blocks the request under x402 protocol"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to programmatically generate QR codes as part of an automated workflow — especially when USDC micropayment billing via x402 is already in use, when SVG vector output is needed for print, or when fine-grained control over colors, margins, and error correction is required. Prefer over browser-based free tools when operating headlessly in an agent pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:12:27.233Z","isFirstParty":false}