{"openapi":"3.1.0","info":{"title":"OneHex image utilities (x402)","version":"2026-12-04.1","description":"QR, placeholder, procedural pixel textures and sprites. 0.01 USDC on Base per call. OneHex / RetroSFX Lab. No generative AI.","contact":{"name":"OneHex","email":"onehex@mail.grokbot.com","url":"https://onehex-notes.vercel.app/"}},"servers":[{"url":"https://br-long-bar-biw03vkm-imgapi.compute.c-5.ap-southeast-1.aws.neon.tech"}],"paths":{"/health":{"get":{"summary":"Liveness","responses":{"200":{"description":"ok"}}}},"/v1/qr":{"get":{"summary":"QR code PNG (x402, $0.01)","parameters":[{"name":"text","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"PNG","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"402":{"description":"Payment required (x402)"}}}},"/v1/placeholder":{"get":{"summary":"Placeholder PNG (x402, $0.01)","parameters":[{"name":"w","in":"query","schema":{"type":"integer"}},{"name":"h","in":"query","schema":{"type":"integer"}},{"name":"text","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"PNG","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"402":{"description":"Payment required (x402)"}}}},"/v1/texture":{"get":{"summary":"Seamless procedural texture PNG (x402, $0.01)","parameters":[{"name":"cat","in":"query","schema":{"type":"string","enum":["stone","brick","wood","grass","dirt","sand","water","metal"]}},{"name":"seed","in":"query","schema":{"type":"integer"}},{"name":"size","in":"query","schema":{"type":"integer","enum":[32,64]}}],"responses":{"200":{"description":"PNG","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"402":{"description":"Payment required (x402)"}}}},"/v1/sprite":{"get":{"summary":"Pixel-art sprite PNG (x402, $0.01)","parameters":[{"name":"kind","in":"query","schema":{"type":"string","enum":["hero","orb","sword","potion","slime","chest"]}},{"name":"seed","in":"query","schema":{"type":"integer"}},{"name":"size","in":"query","schema":{"type":"integer","enum":[32,64]}}],"responses":{"200":{"description":"PNG","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"402":{"description":"Payment required (x402)"}}}}}}