{"slug":"qr-api-production-1836-up-railway-app-generate-styled-da88ac","title":"Generate a styled QR code PNG (base64 in JSON)","host":"qr-api-production-1836.up.railway.app","method":"POST","resource":"https://qr-api-production-1836.up.railway.app/generate/styled","category":"code","description":"Generate a styled QR code PNG (base64 in JSON): custom foreground/background hex colours, module size, border, and error-correction level.","price_listed":0.001,"price_asked":0.001,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":1478,"reported_calls_30d":2,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"back_color":"#ffffff","border":4,"box_size":10,"data":"https://payapi.market","error_correction":"H","fill_color":"#1d4ed8"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"back_color":{"description":"Background colour as #rgb or #rrggbb hex. Default #ffffff.","type":"string"},"border":{"description":"Quiet-zone border in modules, 0-20. Default 4.","type":"integer"},"box_size":{"description":"Pixels per module, 1-40. Default 10.","type":"integer"},"data":{"description":"Text or URL to encode, up to 4296 characters.","type":"string"},"error_correction":{"description":"Error-correction level: L, M, Q, or H. Default M.","type":"string"},"fill_color":{"description":"Foreground colour as #rgb or #rrggbb hex. Default #000000.","type":"string"}},"required":["data"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"back_color":{"description":"Background colour as normalised #rrggbb hex.","type":"string"},"border":{"description":"Quiet-zone border width in modules.","type":"integer"},"box_size":{"description":"Pixels per QR module.","type":"integer"},"data":{"description":"The text or URL encoded into the QR code.","type":"string"},"error_correction":{"description":"Error-correction level used: L, M, Q, or H.","type":"string"},"fill_color":{"description":"Foreground colour as normalised #rrggbb hex.","type":"string"},"format":{"description":"Image format of the returned bytes; always 'png'.","type":"string"},"height":{"description":"PNG height in pixels.","type":"integer"},"image_base64":{"description":"Base64-encoded PNG of the QR code.","type":"string"},"modules":{"description":"QR module count per side (the grid dimension).","type":"integer"},"size_bytes":{"description":"Byte length of the raw PNG.","type":"integer"},"version":{"description":"QR version (1-40) chosen to fit the data.","type":"integer"},"width":{"description":"PNG width in pixels.","type":"integer"}},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":1478,"error":null}],"description_full":"Generate a styled QR code PNG (base64 in JSON): custom foreground/background hex colours, module size, border, and error-correction level.","last_updated":"2026-08-28T17:42:27.423Z","schemes":["exact"]}