{"uid":"cap_jGGN08H4Z5KwBE4FfplUq","slug":"24k-labs-qr-code-generator-22211015","name":"24K Labs QR Code Generator","description":"Generate a QR code (PNG base64) from text/URL/WiFi/vCard with size and error-correction control.","url":"https://api.24klabs.ai/api/qr-generate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"size":{"type":"number"},"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"image_b64":"..."}},"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_lLlRKqnRiGZWdnToDTtcl","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 as a PNG base64 string from text, URL, WiFi credentials, or vCard data with configurable size and error-correction level.","exampleAgentPrompt":"Generate a QR code for https://myshop.com/menu with high error correction and a size of 400 pixels so I can print it on a poster.","exampleUseCases":[{"title":"Restaurant menu QR code for tables","prompt":"Create a QR code for https://bistromaison.com/menu at 300 pixels with high error correction — I need to print it on table cards."},{"title":"WiFi network QR code for guests","prompt":"Make a QR code that lets guests connect to my WiFi — the network is GuestNet, password is Sunny2024, it's WPA2 type, and I want a large 500px version."},{"title":"vCard contact QR code for business cards","prompt":"Generate a QR code from my vCard — name is Sarah Lim, phone +1-415-555-0192, email sarah@lim.design — medium size, medium error correction, so I can embed it on my business card."}],"resultDescription":"A base64-encoded PNG image of the generated QR code, ready to embed in HTML (data URI), save to disk, or pass to another service. The image dimensions and error-correction level match the requested parameters.","failureModes":["Invalid or empty input text returns a 400 error","Unsupported QR data type (e.g. malformed vCard) may cause generation failure","Extremely large size values may be rejected or capped","Missing required fields returns a validation error","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need a server-side, programmatically generated QR code returned as a base64 PNG — especially when you need precise size control, specific error-correction levels, or support for structured QR formats like WiFi or vCard. Ideal for agents automating print assets, contact sharing, or network access flows within the x402 micropayment ecosystem.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:01:40.104Z","isFirstParty":false}