{"openapi":"3.1.0","info":{"title":"GEDX402 Images API","version":"6","description":"Resize, fit, and transcode remote or base64 images — one x402 per transform. Bundle: GET /v1/models?bundle=artifacts.","contact":{"email":"jvalamis@gmail.com","url":"https://images-api.gedx402.com"},"x-guidance":"Pay per request with USDC on Base via x402 v2 (Coinbase CDP facilitator). Choose any listed network in the 402 accepts[] response. 1 routes on this shard (competitive heroes default; ?full=1 for all). Full catalog: GET https://gedx402.com/v1/models Start here: POST /v1/images/transform","x-service":{"serviceName":"GEDX402 Images API","tags":["images","transform","resize","format","agents","usdc","multi-chain"],"iconUrl":"https://images-api.gedx402.com/favicon.svg"},"x-hub":"https://gedx402.com","x-payments":[{"x402":{"network":"eip155:8453","asset":"USDC","label":"Base"}}],"x-openapi-scope":"competitive","full_catalog":"https://images-api.gedx402.com/openapi.json?full=1"},"servers":[{"url":"https://images-api.gedx402.com"}],"paths":{"/v1/images/transform":{"post":{"operationId":"images_transform","summary":"Image Transforms Images API","description":"Resize, fit, and transcode an image on images-api.gedx402.com. POST url or image_base64 with optional width, height, format (webp/jpeg/png/avif), and fit; returns base64 bytes. x402 settlement USDC per request (see npm run pricing:report) worst-case. Hero: GET /heroes/images-transform. Bundle: GET /v1/models?bundle=artifacts.","tags":["Images"],"security":[],"x-payment-info":{"protocols":[{"x402":{"network":"eip155:8453","asset":"USDC","label":"Base"}}],"price":{"mode":"dynamic","currency":"USD","min":"0.005000","max":"0.015000"}},"responses":{"200":{"description":"Inference result","content":{"application/json":{"schema":{"type":"object"},"example":{"image_base64":"<base64>","content_type":"image/webp","byte_length":12345,"width":800,"height":600}}}},"400":{"description":"Invalid or over-limit payload"},"402":{"description":"Payment required (x402 v2 USDC on Base)","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired with accepts[] per network","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"HTTPS URL of the source image."},"image_base64":{"type":"string","description":"Raw or data-URI base64 image bytes (max 20 MB)."},"width":{"type":"integer","minimum":1,"maximum":12000,"description":"Output width in pixels."},"height":{"type":"integer","minimum":1,"maximum":12000,"description":"Output height in pixels."},"format":{"type":"string","enum":["webp","jpeg","png","avif"],"description":"Output image format (default webp)."},"fit":{"type":"string","enum":["scale-down","contain","cover","crop","pad"],"description":"Resize fit mode."}}},"example":{"url":"https://example.com/photo.jpg","width":800,"format":"webp","fit":"cover"}}}},"servers":[{"url":"https://images-api.gedx402.com"}],"x-resource-url":"https://images-api.gedx402.com/v1/images/transform"}},"/v1/models":{"get":{"operationId":"models","summary":"Shard route catalog","description":"Free catalog for this shard with pricing and descriptions.","tags":["Catalog"],"security":[],"responses":{"200":{"description":"Catalog JSON"}}}},"/v1/demo":{"get":{"operationId":"demo_index","summary":"Response shape previews","description":"Free cached JSON examples (not charged).","tags":["Catalog"],"security":[],"responses":{"200":{"description":"Demo index"}}}},"/v1/health":{"get":{"operationId":"health","summary":"Service health","tags":["Catalog"],"security":[],"responses":{"200":{"description":"Health JSON"}}}}},"x-agentcash-guidance":{"llmsTxtUrl":"https://images-api.gedx402.com/llms.txt"},"x-agentcash-provenance":{"ownershipProofs":["0xb3C2776cE3F99cb3366520c27b4aC5D436942Ab6","9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin"]},"x-discovery":{"ownershipProofs":["0xb3C2776cE3F99cb3366520c27b4aC5D436942Ab6","9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin"]}}