{"uid":"cap_jT73WdkFemK5ysdF1mYRj","slug":"styled-qr-code-generator-9990e84b","name":"Styled QR Code Generator","description":"Generate a styled QR code PNG (base64 in JSON): custom foreground/background hex colours, module size, border, and error-correction level.","url":"https://qr-api-production-1836.up.railway.app/generate/styled","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"type":"string","description":"Text or URL to encode, up to 4296 characters."},"border":{"type":"integer","description":"Quiet-zone border in modules, 0-20. Default 4."},"box_size":{"type":"integer","description":"Pixels per module, 1-40. Default 10."},"back_color":{"type":"string","description":"Background colour as #rgb or #rrggbb hex. Default #ffffff."},"fill_color":{"type":"string","description":"Foreground colour as #rgb or #rrggbb hex. Default #000000."},"error_correction":{"type":"string","description":"Error-correction level: L, M, Q, or H. Default M."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/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_B6rHFQk14BgH1z_zsmi7o","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 customized QR code PNG (base64-encoded in JSON) with configurable foreground/background colors, module size, border width, and error-correction level.","exampleAgentPrompt":"Can you generate a styled QR code for https://myshop.com with a navy blue foreground (#003366) and white background (#ffffff), 12 pixels per module, a 4-module border, and H error correction?","exampleUseCases":[{"title":"Branded QR code for product packaging","prompt":"Generate a QR code for https://acmebeverages.com/promo with our brand colors — dark green foreground (#1a5c2a) on a white background (#ffffff), 15 pixels per module, border of 3, and Q error correction so it scans reliably even if slightly worn."},{"title":"Event poster QR code with large modules","prompt":"Create a high-visibility QR code for https://eventbrite.com/e/summer-gala-2025 to print on a large poster — use 30 pixels per module, black on yellow (#ffdd00), a 5-module border, and H error correction."},{"title":"Minimal contact card QR code","prompt":"Make a compact QR code encoding 'BEGIN:VCARD\\nFN:Jane Doe\\nTEL:5551234567\\nEND:VCARD' with a 1-module border, 8 pixels per module, black on white, and M error correction for a business card."}],"resultDescription":"A JSON object containing a base64-encoded PNG of the styled QR code. The image reflects all specified parameters: foreground and background colors, pixels-per-module size, quiet-zone border width, and the chosen error-correction level. The base64 string can be decoded and rendered or embedded directly in HTML as a data URI.","failureModes":["Invalid hex color format returns a 400 error","Data string exceeding 4296 characters causes encoding failure","Out-of-range box_size (outside 1-40) or border (outside 0-20) returns a validation error","Unsupported error_correction value (not L/M/Q/H) returns a 400 error","Payment not included or insufficient USDC triggers a 402 response","Empty or missing 'data' field returns a 400 error"],"whenToPreferThis":"Choose this endpoint when you need a visually branded or customized QR code — specific hex colors, non-default module size, or a particular error-correction level. Use the plain sibling endpoint for quick black-on-white defaults. Use the batch sibling endpoint when generating multiple QR codes at once. This endpoint is ideal when the QR code must match brand guidelines or be printed at a specific scale.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:30:32.021Z","isFirstParty":false}