{"uid":"cap_maAKp0bjlv_DlxepYB3xT","slug":"api-x402node-dev-33ee3706","name":"QR Code Generator (Base64 PNG)","description":"QR code generator, QR generator, generate qrcode, text to qr, url to qr code, 2D barcode generator, make qr png, qrcode base64 image, qr code creator, generate qr code from url. Generate QR code as base64 PNG data URL. Use for URL, wifi credentials, business cards. Accepts payment on Base or Solana — either network works.","url":"https://api.x402node.dev/generate/qrcode","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"size":{"type":"string","description":"Size (optional)"},"text":{"type":"string","description":"Input text (required)"},"margin":{"type":"string","description":"Margin (optional)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0022","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.0022/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3orMnBP43xt0A4_vqO0rB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0022","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 from any text or URL and returns it as a base64-encoded PNG data URL","exampleAgentPrompt":"Generate a QR code for https://myshop.example.com/menu — I need it as a base64 PNG image I can embed in a webpage.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing a base64-encoded PNG data URL (dataUrl field) of the QR code, along with the input text and image size. The dataUrl can be used directly in an <img> src attribute or saved as a PNG file.","failureModes":["Missing or empty text input returns an error","Extremely long input strings may exceed QR code data capacity","Network timeout if the service is temporarily unavailable","Invalid request body format returns a 400-style error","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need to programmatically generate a QR code and receive it as a base64 PNG data URL — ideal for embedding directly into HTML, PDFs, or emails without needing a separate image hosting step. Prefer this over redirect-based QR services when you need the raw image data returned inline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:00:15.409Z","isFirstParty":false}