{"uid":"cap_fn6pUQ7ivXYoon3mZQZrK","slug":"qr-code-render-api-0586d2cc","name":"QR Code Render API","description":"Generate SVG or PNG QR codes for links, text and standard payloads. Includes a four-module quiet zone, selectable error correction and validated foreground/background contrast.","url":"https://qr-api-production-7adc.up.railway.app/v1/qr/render?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"size":{"type":"integer","default":512,"maximum":1024,"minimum":128},"text":{"type":"string","maxLength":1500,"minLength":1},"format":{"enum":["svg","png"],"type":"string","default":"png"},"background":{"type":"string","default":"#ffffff","pattern":"^#[0-9a-fA-F]{6}$"},"foreground":{"type":"string","default":"#10221a","pattern":"^#[0-9a-fA-F]{6}$"},"error_correction":{"enum":["M","Q","H"],"type":"string","default":"H"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cTC0H101bGzxFuAcfNS4z","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates SVG or PNG QR codes from text or URLs with configurable size, colors, error correction, and quiet zone","exampleAgentPrompt":"Generate a 512px PNG QR code for https://myshop.com/checkout with a dark green foreground (#10221a) on white background and high error correction, so I can print it on my packaging.","exampleUseCases":[{"title":"Event check-in QR code","prompt":"Make a 800px PNG QR code for https://eventbrite.com/e/12345 with black on white and H error correction — I need it printed on badges and it must survive some wear and tear."},{"title":"Branded SVG QR for marketing","prompt":"Generate an SVG QR code for https://mybrand.com using our brand green (#2d6a4f) as the foreground on a white background at 600px — I want to embed it in our digital brochure."},{"title":"WiFi credentials QR code","prompt":"Create a QR code for the text WIFI:T:WPA;S:GuestNetwork;P:welcome2024;; at 512px in PNG format with high error correction so guests can scan and connect easily."}],"resultDescription":"Returns a QR code image file (SVG or PNG) encoding the provided text, rendered at the specified pixel size with a four-module quiet zone, the chosen foreground/background hex colors, and the selected error correction level (M, Q, or H).","failureModes":["Text exceeds 1500 character maximum — returns validation error","Size outside 128–1024px range — returns validation error","Malformed hex color code not matching ^#[0-9a-fA-F]{6}$ — returns validation error","Invalid format or error_correction enum value — returns validation error","Empty or missing text field — returns validation error","Payment not received or x402 payment header missing — returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need a server-side QR code rendered as a proper image file (SVG or PNG) with validated color contrast, configurable error correction, and a standard quiet zone — especially useful when producing print-ready or embeddable QR codes at specific dimensions without relying on a client-side library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T00:35:53.800Z","isFirstParty":false,"canonicalSlug":"qr-code-render-api-0586d2cc"}