{"slug":"baconservices-com-api-agent-commerce-v1-capabilities-web-ima-e17d15","title":"Web Image Optimizer","host":"baconservices.com","method":"POST","resource":"https://baconservices.com/api/agent-commerce/v1/capabilities/web-image-optimizer/execute","category":"image","description":"Web Image Optimizer: Resizes one image so its longest side is at most max_width pixels (never enlarging it) and encodes it as WebP at the given quality. Transparency is kept. Metadata is not carried over, so a JPEG's EXIF orientation is not applied.","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":721,"reported_calls_30d":4,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"image_url":"https://baconservices.com/assets/img/demos/background-remover-before.png","max_width":1600,"quality":80},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"description":"Give exactly one of image_url or image_base64. The same request body must be sent again with the PAYMENT-SIGNATURE header.","properties":{"image_base64":{"contentEncoding":"base64","description":"The image bytes, base64-encoded.","type":"string"},"image_url":{"description":"A public https URL of a PNG, JPEG or WebP image.","format":"uri","type":"string"},"max_width":{"default":1600,"description":"Longest side of the output, in pixels.","maximum":4096,"minimum":64,"type":"integer"},"quality":{"default":80,"description":"WebP quality.","maximum":95,"minimum":40,"type":"integer"}},"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"headers":{"type":"object"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"queryParams":{"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":721,"error":null}],"description_full":"Web Image Optimizer: Resizes one image so its longest side is at most max_width pixels (never enlarging it) and encodes it as WebP at the given quality. Transparency is kept. Metadata is not carried over, so a JPEG's EXIF orientation is not applied.","last_updated":"2026-10-10T07:01:25.806Z","schemes":["exact"]}