{"uid":"cap_HO3IBJeIpZa4aF_hmgKQh","slug":"24k-labs-qr-code-generator-d1dc5ef0","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/v1/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_ncD0feSyH3gsPWm_xcR6g","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 image 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 — make it 400px with high error correction so it still scans even if partially covered.","exampleUseCases":[{"title":"Restaurant menu QR for table cards","prompt":"Create a QR code for https://tacos-el-rancho.com/menu at 300px size with medium error correction — I'll print it on laminated table cards."},{"title":"WiFi guest network sharing","prompt":"Generate a QR code that lets guests join my WiFi — network name is GuestNet, password is sunshine42, it's WPA2, make it 350px with high error correction."},{"title":"Business card vCard QR code","prompt":"Make a QR code encoding my vCard contact info — name Jane Doe, email jane@acme.com, phone +1-555-0199, company Acme Corp — at 400px with the highest error correction level."}],"resultDescription":"Returns a PNG image of the QR code encoded as a base64 string, ready to embed directly in an img src tag or save as a file. The image size and error-correction level reflect the parameters provided.","failureModes":["Invalid or empty input text returns a 400 error","Unsupported data type (e.g. malformed vCard) may produce an unreadable QR","Extremely long input strings may exceed QR code capacity limits","Invalid size values (negative or zero) return a validation error","Unknown error-correction level value returns a 400 bad request"],"whenToPreferThis":"Choose this endpoint when you need to programmatically generate QR codes from arbitrary text, URLs, WiFi credentials, or vCard contact data and receive a ready-to-use PNG base64 image. It is particularly well-suited for agents that need to embed QR codes in generated documents, emails, web pages, or printed materials. Prefer it over client-side QR libraries when you need a server-side, stateless, pay-per-use solution with no library dependencies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:32.376Z","isFirstParty":false}