{"uid":"cap_f1uAhk6tehe-PKRK5W_EP","slug":"mekler-ai-qr-code-generator-df7b7742","name":"Mekler AI QR Code Generator","description":"Generate a standards-based QR code from supplied UTF-8 text or a payment URI. Return SVG or PNG as base64 with dimensions, SHA-256, QR version and error-correction level. Maximum 1024 UTF-8 bytes, scale 1–8 and fixed four-module quiet zone. Encodes the supplied payload; does not validate a payment destination, execute payment or host an image.","url":"https://api.mekler.ai/v1/images/qr/generate-code?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":1024,"minLength":1},"scale":{"type":"integer","default":4,"maximum":8,"minimum":1},"format":{"enum":["svg","png"],"type":"string","default":"svg"},"request_id":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,64}$"},"error_correction":{"enum":["L","M","Q","H"],"type":"string","default":"M"}}},"responseSchema":{"type":"json","example":{"data":"iVBORw0KGgoAAAANSUhEUgAAAIQAAACEAQAAAAB5P74KAAAAw0lEQVR42u1W0QkCUQwLLpD9t8wGtclDQUEQ4+cVOWo/QpumucO8hXBVXisAOCBOohve45vK4jC/zZIUOCAJDZ20OEPNH3CWGNb9jEd6EPU7jteUKPfl4FMSDT/Wj6wfVjikBD/Y8aPoWVl/gaPVII6oS348muGgSj8LpD2M0Nz1s5O5GXZ61rENk9zdlz2D+VPrOb2wvq8Vj3Lw7b3bxgblvo5tnCFbH4t7qPbDpbnWjyU0ee1oWj90VzO1H15fBR8qd5tY9Osict9SAAAAAElFTkSuQmCC","width":132,"format":"png","height":132,"sha256":"c25a99d2a24dbe4f167e747c2af350ec7360c9630002aff31a5979b6cc665780","status":"ok","version":2,"encoding":"base64","mime_type":"image/png","byte_length":252,"payload_bytes":18,"error_correction":"M","quiet_zone_modules":4}},"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_IjROwgJMxXbeY2WZycd2A","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a standards-based QR code from UTF-8 text or a payment URI, returning SVG or base64-encoded PNG with metadata including dimensions, SHA-256 hash, QR version, and error-correction level.","exampleAgentPrompt":"Generate a QR code for the URL 'https://example.com/checkout' as a PNG at scale 6 with H error-correction so it's robust enough for a printed label.","exampleUseCases":[{"title":"QR code for a payment link","prompt":"Create a QR code for the Lightning payment URI 'lightning:lnbc500n1...' as an SVG at scale 4 with M error-correction so I can embed it on an invoice page."},{"title":"Printed event ticket QR","prompt":"Generate a PNG QR code at scale 8 with H error-correction for the text 'EVENT:CONF2025:SEAT-A42' — I need it big and resilient enough to survive printing and scanning."},{"title":"Shareable URL QR for marketing","prompt":"Make an SVG QR code for 'https://mykickstarter.com/campaign/launch' at the default scale and Q error-correction so I can drop it into a flyer design."}],"resultDescription":"A JSON object containing the encoded image (SVG markup or base64 PNG), image dimensions (width/height in pixels), MIME type, SHA-256 hash of the image bytes, QR version number, error-correction level used, byte length, payload byte count, quiet zone module count, encoding type, and a status field.","failureModes":["Payload exceeds 1024 UTF-8 bytes — rejected with validation error","Scale value outside 1–8 range — returns schema validation error","Empty or missing text field — returns bad request error","Invalid error_correction value not in [L,M,Q,H] — returns validation error","Invalid format value not in [svg,png] — returns validation error","request_id not matching required pattern — returns validation error"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, standards-compliant QR code rendered server-side and returned as a self-contained image (SVG or PNG) with integrity metadata (SHA-256). Ideal when you need to embed QR codes in agent-generated documents, invoices, or UIs without relying on a client-side library. Prefer it over client-side generators when reproducibility, hash verification, or payment URI encoding accuracy matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T12:33:35.496Z","isFirstParty":false,"canonicalSlug":"mekler-ai-qr-code-generator-df7b7742"}