{"uid":"cap_Apb9x2sJALnacinqzAg_8","slug":"ai-rook-qr-code-generator-7cb7386e","name":"AI Rook QR Code Generator","description":"Generate a QR code from any text or URL. Returns base64-encoded PNG.","url":"https://agents.ai-rook.com/api/qr-generate","method":"GET","headers":{},"bodySchema":{"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"}},"additionalProperties":false}}},"responseSchema":{"type":"json","example":{"size":300,"image":"data:image/png;base64,...","format":"png"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.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_fSDuVjMoELg_U4O7fPm2t","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","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 image as a base64-encoded PNG from a given input (e.g. URL or text), returned as a data URI.","exampleAgentPrompt":"Can you generate a 300px QR code image for the URL https://myshop.example.com and give me the base64 PNG so I can embed it on my landing page?","exampleUseCases":[{"title":"Dynamic invoice payment QR codes","prompt":"Generate a QR code from this Ethereum payment address so I can add it to every invoice my AI sends out to clients."},{"title":"Event ticket distribution workflow","prompt":"Turn this event link into a scannable QR code PNG and embed it in the confirmation emails we're sending to registrants."},{"title":"Contact card sharing for agents","prompt":"Create a QR code that encodes my business contact info so I can include it in automated signatures when my AI responds to partnership inquiries."}],"resultDescription":"Returns a JSON object containing the QR code image as a base64-encoded PNG data URI (e.g. data:image/png;base64,...), the size in pixels, and the format ('png'). The image can be directly embedded in HTML img tags or saved to disk.","failureModes":["Missing or empty input text/URL returns an error","Unsupported size values may return a validation error","Payment failure (insufficient USDC balance) results in HTTP 402 before any QR is generated","Malformed request parameters return a 400-level error","Network timeouts may occur if the Base mainnet payment confirmation is slow"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-use QR code generator with no signup, returning a ready-to-embed base64 PNG. Particularly useful for AI agents operating in crypto-native or x402 payment environments where no API key management is desired and calls are billed at $0.002 USDC per generation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:43:23.511Z","isFirstParty":false}