{"uid":"cap_mrm7jIRyg95Kw-4kuNg7-","slug":"relaystation-qr-code-generator-4bec8554","name":"Relaystation QR Code Generator","description":"$0.0002/call. Generate QR codes as PNG or SVG — size, error-correction, and margin control. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny","url":"https://api.relaystation.ai/v1/qr","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"ecc":{"enum":["L","M","Q","H"],"type":"string","description":"Error-correction level (default M)."},"data":{"type":"string","minLength":1,"description":"The data to encode (≤ cputools.qr.max_data_len)."},"size":{"type":"integer","maximum":2048,"minimum":64},"format":{"enum":["png","svg"],"type":"string"},"margin":{"type":"integer","maximum":16,"minimum":0}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9dcVREG5w4nWrbAY5bBsi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generate QR codes as PNG or SVG images with configurable size, error-correction level, and margin","exampleAgentPrompt":"Generate a QR code for 'https://myshop.example.com/checkout' as a PNG, 400 pixels wide, with high error correction and a margin of 2.","exampleUseCases":[{"title":"QR code for product packaging","prompt":"Create a QR code for 'https://brand.com/product/123' as a high-resolution SVG with high error correction so it still scans if partially scratched — I need it for print on a label."},{"title":"Wi-Fi guest network sharing","prompt":"Make a QR code that encodes 'WIFI:T:WPA;S:GuestNetwork;P:password123;;' as a 300px PNG with medium error correction and a margin of 2, so guests can scan and connect instantly."},{"title":"Event ticket deep link","prompt":"Generate a QR code for the URL 'https://events.example.com/ticket?id=TKT-9821' as an SVG with high error correction and no margin — I'm embedding it inside a digital ticket design."}],"resultDescription":"Returns a QR code image file in the requested format (PNG or SVG) encoding the provided data, with the specified size, error-correction level, and margin applied. The image is ready to embed in documents, print, or display digitally.","failureModes":["Invalid or empty data string returns an error","Unsupported output format (not PNG or SVG) returns a format error","Excessively large data payload may exceed QR code capacity limits","Invalid size or margin values may return a validation error","Payment failure or insufficient USDC balance returns a 402 error"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap, programmatic QR code generation without setting up a dedicated QR library — especially useful in agent workflows where you need PNG or SVG output with fine-grained control over error-correction and margin, billed per call at $0.0002 with a $0.01 minimum via x402 micropayment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:50:43.597Z","isFirstParty":false}