{"uid":"cap_uRhK0lEoxUueD9cvMZY1G","slug":"call402-com-qr-code-generator-7fc8d4a1","name":"call402.com QR Code Generator","description":"USDC pay-per-call APIs for AI agents via the x402 protocol (v2, exact, Base mainnet). Send a request, receive HTTP 402 with payment requirements, pay with @x402/fetch or any x402 client, retry with the PAYMENT-SIGNATURE header.","url":"https://call402.com/api/qr-code?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"size":{"type":"integer","description":"Image width in px, 128-1024 (default 512)"},"text":{"type":"string","description":"Content to encode (max 2048 chars)"},"format":{"enum":["svg","png"],"type":"string","description":"Default svg"}}},"responseSchema":{"type":"json","example":{"meta":{"renderer":"qrcode (MIT), first-party","text_chars":21},"size":512,"format":"svg","image_svg":"<svg xmlns=...</svg>"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nV7M809qPM9oUKH7cD_tX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","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 (SVG or PNG) encoding arbitrary text or URLs, delivered as a pay-per-call API via the x402 protocol on Base mainnet","exampleAgentPrompt":"Generate a QR code for 'https://myshop.example.com/checkout' as a 512px SVG image so I can embed it in my product flyer.","exampleUseCases":[{"title":"QR code for a product landing page","prompt":"Make a QR code that links to 'https://myproduct.com/launch' — I need it as a 768px SVG so it looks crisp when I embed it in our marketing PDF."},{"title":"Event check-in contact card","prompt":"Generate a PNG QR code at 256 pixels encoding my vCard text 'BEGIN:VCARD\\nFN:Jane Doe\\nEMAIL:jane@example.com\\nEND:VCARD' so attendees can scan it at the event booth."},{"title":"Crypto wallet address QR code","prompt":"Create an SVG QR code for my USDC wallet address '0xAbC123…' at 512px so I can display it on my invoice for clients to scan and pay."}],"resultDescription":"A JSON object containing the rendered QR code image as either an inline SVG string or base64 PNG data, along with metadata: the image size in pixels, the output format, and a meta block indicating the renderer used and the character count of the encoded text.","failureModes":["Text exceeds 2048 characters — request rejected","Size outside 128-1024px range — validation error","Invalid format enum value (not svg or png) — bad request","Payment not provided or signature invalid — HTTP 402 returned with payment requirements","Malformed JSON body — 400 error","Network or facilitator timeout — retry may be needed"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to programmatically generate a QR code image on demand, especially in autonomous or payment-gated workflows using the x402 protocol. It is well-suited for agents that already use USDC micropayments on Base mainnet and need a fast, low-cost ($0.005) QR code rendered as SVG or PNG without managing a self-hosted encoder.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:11:21.246Z","isFirstParty":false,"canonicalSlug":"call402-com-qr-code-generator-7fc8d4a1"}