{"uid":"cap_86ZJdx4khfLySkk5xEc6D","slug":"qr-code-api-styled-qr-code-generator-97dbd35b","name":"QR Code API – Styled QR Code Generator","description":"Generate and decode QR codes with x402 payments and an MCP server.","url":"https://qr.payapi.market/generate/styled?utm_source=zero.xyz","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":{"type":"json","example":{"data":"https://payapi.market","width":370,"border":4,"format":"png","height":370,"modules":29,"version":3,"box_size":10,"back_color":"#ffffff","fill_color":"#1d4ed8","size_bytes":640,"image_base64":"iVBORw0KGgoAAAANSUhEUgAAASIAAAEiCAYAAABdvt+2AAAABmJLR0QA/wD/AP+gvaeTAAAF...","error_correction":"H"}},"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_9vL0Fop_B7h5Jla7PH_J4","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 styled, customizable QR code image (PNG, base64-encoded) from a text string or URL with configurable colors, size, border, and error correction.","exampleAgentPrompt":"Generate a styled QR code for https://myshop.example.com with a dark blue foreground (#1d4ed8) on a white background, H error correction, a border of 4 modules, and 10 pixels per module.","exampleUseCases":[{"title":"Branded QR code for product packaging","prompt":"Create a QR code for https://mybrand.com/product/launch with a navy blue foreground (#1a2e6b) on a white background, H error correction, 4-module border, and 12 pixels per module — I need a high-quality image to put on product packaging."},{"title":"Event check-in QR code","prompt":"Generate a QR code that encodes the text 'EVENT-2024-CHECKIN-VIP' with a black foreground on a white background, Q error correction level, a border of 2 modules, and box size of 15 pixels."},{"title":"Marketing flyer with custom colors","prompt":"Make a QR code for https://promo.example.com/summer-sale using a green foreground color (#16a34a) on a light gray background (#f3f4f6), M error correction, default border and box size — I'm dropping it into a flyer."}],"resultDescription":"Returns a JSON object containing a base64-encoded PNG image of the QR code along with metadata: pixel dimensions (width, height), number of modules, QR version, box size, border, error correction level, file size in bytes, and the echoed color settings. The agent can use the image_base64 field directly to embed or save the image.","failureModes":["Data string exceeds 4296 characters — QR encoding capacity exceeded","Invalid hex color format for back_color or fill_color — malformed input error","box_size out of 1–40 range or border out of 0–20 range — validation error","Payment not settled (x402 micropayment of $0.001 USDC required) — 402 Payment Required response","Invalid error_correction value (must be L, M, Q, or H) — bad request","Empty or missing 'data' field — required parameter absent"],"whenToPreferThis":"Choose this endpoint when you need a styled, customizable QR code image returned as a base64 PNG — especially when brand colors, specific pixel density, or higher error correction are required. It is ideal for programmatic generation at low cost ($0.001 USDC) via x402 micropayment, without requiring an API key or subscription. Prefer it over generic free QR services when color customization, per-call pricing, or machine-to-machine workflows are needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T06:30:41.005Z","isFirstParty":false,"canonicalSlug":"qr-code-api-styled-qr-code-generator-97dbd35b"}