{"uid":"cap_iKiNUcUEqXciSQQTLmDRH","slug":"agent402-tools-qr-code-generator-7c1f6650","name":"agent402.tools QR Code Generator","description":"Generate a QR code PNG from any text or URL.","url":"https://agent402.tools/api/qr?utm_source=zero.xyz","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":"Image width px (128-1024, default 256)"},"text":{"type":"string","description":"Content to encode (max 2KB)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["contentType","body"],"properties":{"body":{"type":"string"},"contentType":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"body":"(binary PNG image)","contentType":"image/png"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.002/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_oqmgQwscgPR8TpzwVbQjc","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 PNG image from any text or URL string, with configurable image size.","exampleAgentPrompt":"Can you generate a QR code PNG for https://myshop.example.com — make it 512 pixels wide so it's high enough resolution to print on a flyer?","exampleUseCases":null,"resultDescription":"A PNG image binary of the QR code encoding the supplied text or URL, rendered at the requested pixel size (128–1024px, default 256px). The agent receives raw image bytes that can be saved as a .png file or embedded directly.","failureModes":["text parameter missing — returns error; text is required","text exceeds 2KB limit — QR capacity exceeded, returns error","size parameter out of range (below 128 or above 1024) — returns validation error","invalid or non-encodable content — returns error","service unavailable or payment failure — HTTP 402 or 5xx error"],"whenToPreferThis":"Use this endpoint when you need to programmatically generate a QR code PNG from arbitrary text or a URL, especially in automated agent workflows where paying per-call via x402 USDC micropayment is acceptable. Prefer this over client-side QR libraries when you need a hosted, server-side PNG output with no dependency management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:42:38.242Z","isFirstParty":false,"canonicalSlug":"agent402-tools-qr-code-generator-7c1f6650"}